Skip to content

Commit

Permalink
> add todo
Browse files Browse the repository at this point in the history
> update app version
  • Loading branch information
stslex committed Nov 22, 2023
1 parent 936111d commit 3490e9c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/st/slex/csplashscreen/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down
4 changes: 2 additions & 2 deletions build-logic/dependencies/src/main/kotlin/AppVersions.kt
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> = argsNames.map { name ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ inline fun <reified VM : ViewModel, F : Feature> 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)
}
}

0 comments on commit 3490e9c

Please sign in to comment.