File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
app/src/main/java/com/codandotv/streamplayerapp Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,15 @@ import com.codandotv.streamplayerapp.core_navigation.bottomnavigation.StreamPlay
1515import com.codandotv.streamplayerapp.core_navigation.helper.currentRoute
1616import com.codandotv.streamplayerapp.core_navigation.routes.SplashRoutes
1717import com.codandotv.streamplayerapp.core_shared_ui.theme.StreamPlayerTheme
18- import com.codandotv.streamplayerapp.feature_list_streams.di.ListStreamModule
1918import com.codandotv.streamplayerapp.navigation.NavigationGraph
20- import org.koin.core.context.loadKoinModules
21- import org.koin.core.context.unloadKoinModules
2219
2320class MainActivity : ComponentActivity () {
2421 override fun onCreate (savedInstanceState : Bundle ? ) {
2522 super .onCreate(savedInstanceState)
26-
27- loadKoinModules(ListStreamModule .module)
2823 setContent {
2924 StreamPlayerApp ()
3025 }
3126 }
32-
33- override fun onDestroy () {
34- unloadKoinModules(ListStreamModule .module)
35- super .onDestroy()
36- }
3727}
3828
3929@OptIn(ExperimentalMaterial3Api ::class )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.codandotv.streamplayerapp.di
22
33import android.content.res.Resources
44import com.codandotv.streamplayerapp.core_networking.di.NetworkModule
5+ import com.codandotv.streamplayerapp.feature_list_streams.di.ListStreamModule
56import org.koin.android.ext.koin.androidContext
67import org.koin.dsl.module
78
@@ -12,5 +13,5 @@ object AppModule {
1213 }
1314
1415
15- val list = module + NetworkModule .module
16+ val list = module + NetworkModule .module + ListStreamModule .module
1617}
You can’t perform that action at this time.
0 commit comments