diff --git a/app/src/main/java/st/slex/csplashscreen/ui/MainActivity.kt b/app/src/main/java/st/slex/csplashscreen/ui/MainActivity.kt index 5b7e67ad..f8bcd4f5 100644 --- a/app/src/main/java/st/slex/csplashscreen/ui/MainActivity.kt +++ b/app/src/main/java/st/slex/csplashscreen/ui/MainActivity.kt @@ -28,6 +28,9 @@ class MainActivity : ComponentActivity(), MainUiProvider { val viewModel = buildViewModel() InitialApp( + /*TODO AFTER reconfiguration controller in VM don't change it State, + so it need to have latest instance. + Need Research to find more efficient way */ navController = api.navigator.controller, onBottomAppBarClick = remember { { viewModel.navigate(it) } diff --git a/build-logic/dependencies/src/main/kotlin/AppVersions.kt b/build-logic/dependencies/src/main/kotlin/AppVersions.kt index 59349749..e5567ce0 100644 --- a/build-logic/dependencies/src/main/kotlin/AppVersions.kt +++ b/build-logic/dependencies/src/main/kotlin/AppVersions.kt @@ -1,4 +1,4 @@ object AppVersions { - const val VERSION_NAME = "1.69" - const val VERSION_CODE = 15 + const val VERSION_NAME = "1.70" + const val VERSION_CODE = 16 } \ No newline at end of file diff --git a/core/navigation/src/main/java/st/slex/csplashscreen/core/navigation/AppDestination.kt b/core/navigation/src/main/java/st/slex/csplashscreen/core/navigation/AppDestination.kt index 99264be9..9bf14ed4 100644 --- a/core/navigation/src/main/java/st/slex/csplashscreen/core/navigation/AppDestination.kt +++ b/core/navigation/src/main/java/st/slex/csplashscreen/core/navigation/AppDestination.kt @@ -22,6 +22,7 @@ enum class AppDestination( navArgument(name) { NavType.StringType } } + // TODO Arguments always String - Need research for Parcelable implementation fun parseArguments( navBackStackEntry: NavBackStackEntry ): List = argsNames.map { name -> diff --git a/core/ui/src/main/java/st/slex/csplashscreen/core/ui/base/DaggerViewModel.kt b/core/ui/src/main/java/st/slex/csplashscreen/core/ui/base/DaggerViewModel.kt index 8ad53105..fbb0df7e 100644 --- a/core/ui/src/main/java/st/slex/csplashscreen/core/ui/base/DaggerViewModel.kt +++ b/core/ui/src/main/java/st/slex/csplashscreen/core/ui/base/DaggerViewModel.kt @@ -58,6 +58,8 @@ inline fun NavGraphBuilder.createScreen( builder = featureBuilder, key = arguments.hashCode().toString() ) + /*TODO maybe good point to make instance of state, event, action here + and then send in to Content Screen*/ content(viewModel, arguments) } } \ No newline at end of file