Skip to content

Commit

Permalink
removed all ExperimentalAnimationApi
Browse files Browse the repository at this point in the history
  • Loading branch information
giannis-rdx committed Jan 21, 2024
1 parent ca6135c commit 39212ed
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.babylon.wallet.android.presentation.account.settings.devsettings
import androidx.annotation.VisibleForTesting
import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.SavedStateHandle
import androidx.navigation.NavController
Expand All @@ -27,7 +26,6 @@ fun NavController.devSettings(address: String) {
navigate("dev_account_settings_route/$address")
}

@OptIn(ExperimentalAnimationApi::class)
fun NavGraphBuilder.devSettings(
onBackClick: () -> Unit
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.babylon.wallet.android.presentation.account.settings.specificassets

import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.runtime.remember
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavController
Expand All @@ -15,7 +14,6 @@ fun NavController.specificAssets() {
navigate("account_specific_assets_route")
}

@OptIn(ExperimentalAnimationApi::class)
fun NavGraphBuilder.specificAssets(navController: NavController, onBackClick: () -> Unit) {
composable(
route = "account_specific_assets_route",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.babylon.wallet.android.presentation.dapp.authorized.personaongoing

import android.net.Uri
import androidx.annotation.VisibleForTesting
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.runtime.remember
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.SavedStateHandle
Expand Down Expand Up @@ -41,7 +40,6 @@ fun NavController.personaDataOngoing(personaAddress: String, request: RequiredPe
}

@Suppress("LongParameterList")
@OptIn(ExperimentalAnimationApi::class)
fun NavGraphBuilder.personaDataOngoing(
onEdit: (PersonaDataOngoingEvent.OnEditPersona) -> Unit,
onBackClick: () -> Unit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.babylon.wallet.android.presentation.navigation

import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.hilt.navigation.compose.hiltViewModel
Expand Down Expand Up @@ -73,7 +72,6 @@ import com.babylon.wallet.android.presentation.transfer.transferScreen
import kotlinx.coroutines.flow.StateFlow
import rdx.works.profile.domain.backup.BackupType

@OptIn(ExperimentalAnimationApi::class)
@Composable
fun NavigationHost(
modifier: Modifier = Modifier,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.babylon.wallet.android.presentation.onboarding

import androidx.activity.compose.BackHandler
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
Expand All @@ -28,7 +27,6 @@ import com.babylon.wallet.android.designsystem.composable.RadixTextButton
import com.babylon.wallet.android.designsystem.theme.RadixTheme
import com.babylon.wallet.android.designsystem.theme.RadixWalletTheme

@ExperimentalAnimationApi
@Composable
fun OnboardingScreen(
viewModel: OnboardingViewModel,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.babylon.wallet.android.presentation.settings.accountsecurity.seedphrases.confirm

import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.SavedStateHandle
import androidx.navigation.NavController
Expand Down Expand Up @@ -29,7 +28,6 @@ internal class ConfirmSeedPhraseArgs(val factorSourceId: String, val mnemonicSiz
)
}

@OptIn(ExperimentalAnimationApi::class)
fun NavGraphBuilder.confirmSeedPhrase(
onMnemonicBackedUp: () -> Unit,
onDismiss: () -> Unit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.babylon.wallet.android.presentation.settings.appsettings

import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
Expand Down Expand Up @@ -43,7 +42,6 @@ fun NavGraphBuilder.appSettingsNavGraph(
}
}

@OptIn(ExperimentalAnimationApi::class)
fun NavGraphBuilder.appSettingsScreen(
navController: NavController
) {
Expand Down Expand Up @@ -87,7 +85,6 @@ fun NavGraphBuilder.appSettingsScreen(
}
}

@OptIn(ExperimentalAnimationApi::class)
private fun NavGraphBuilder.settingsGateway(navController: NavController) {
composable(
route = Screen.SettingsEditGatewayApiDestination.route,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.babylon.wallet.android.presentation.settings.personas.createpersona
import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
Expand Down Expand Up @@ -68,7 +67,6 @@ fun NavGraphBuilder.personaInfoScreen(
}
}

@OptIn(ExperimentalAnimationApi::class)
fun NavGraphBuilder.createPersonaScreen(
onBackClick: () -> Unit,
onContinueClick: (personaId: String) -> Unit
Expand Down Expand Up @@ -98,7 +96,6 @@ fun NavGraphBuilder.createPersonaScreen(
}
}

@OptIn(ExperimentalAnimationApi::class)
fun NavGraphBuilder.personasScreen(
onBackClick: () -> Unit,
createPersonaScreen: (Boolean) -> Unit,
Expand Down

0 comments on commit 39212ed

Please sign in to comment.