File tree 1 file changed +2
-0
lines changed
androidApp/src/androidMain/kotlin/com/hoc081098/compose_multiplatform_kmpviewmodel_sample
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
12
12
import io.github.aakira.napier.Napier
13
13
import kotlinx.collections.immutable.toImmutableSet
14
14
import org.koin.androidx.compose.KoinAndroidContext
15
+ import org.koin.compose.koinInject
15
16
import org.koin.core.annotation.KoinExperimentalAPI
16
17
17
18
@OptIn(KoinExperimentalAPI ::class )
@@ -26,6 +27,7 @@ class MainActivity : AppCompatActivity() {
26
27
startRoute = SearchPhotoScreenRoute ,
27
28
destinations = koinInjectSetMultibinding<NavDestination >(AllDestinationsQualifier )
28
29
.let { remember(it) { it.toImmutableSet() } },
30
+ navEventNavigator = koinInject(),
29
31
destinationChangedCallback = { route ->
30
32
Napier .d(message = " Destination changed: $route " , tag = " MainActivity" )
31
33
},
You can’t perform that action at this time.
0 commit comments