File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
androidApp/src/androidMain/kotlin/com/hoc081098/compose_multiplatform_kmpviewmodel_sample Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import com.hoc081098.solivagant.navigation.NavHost
1212import io.github.aakira.napier.Napier
1313import kotlinx.collections.immutable.toImmutableSet
1414import org.koin.androidx.compose.KoinAndroidContext
15+ import org.koin.compose.koinInject
1516import org.koin.core.annotation.KoinExperimentalAPI
1617
1718@OptIn(KoinExperimentalAPI ::class )
@@ -26,6 +27,7 @@ class MainActivity : AppCompatActivity() {
2627 startRoute = SearchPhotoScreenRoute ,
2728 destinations = koinInjectSetMultibinding<NavDestination >(AllDestinationsQualifier )
2829 .let { remember(it) { it.toImmutableSet() } },
30+ navEventNavigator = koinInject(),
2931 destinationChangedCallback = { route ->
3032 Napier .d(message = " Destination changed: $route " , tag = " MainActivity" )
3133 },
You can’t perform that action at this time.
0 commit comments