Skip to content

Commit 985fd56

Browse files
committed
[ISSUE-25] Loading the module in the right place
1 parent 004e07e commit 985fd56

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

app/src/main/java/com/codandotv/streamplayerapp/MainActivity.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,15 @@ import com.codandotv.streamplayerapp.core_navigation.bottomnavigation.StreamPlay
1515
import com.codandotv.streamplayerapp.core_navigation.helper.currentRoute
1616
import com.codandotv.streamplayerapp.core_navigation.routes.SplashRoutes
1717
import com.codandotv.streamplayerapp.core_shared_ui.theme.StreamPlayerTheme
18-
import com.codandotv.streamplayerapp.feature_list_streams.di.ListStreamModule
1918
import com.codandotv.streamplayerapp.navigation.NavigationGraph
20-
import org.koin.core.context.loadKoinModules
21-
import org.koin.core.context.unloadKoinModules
2219

2320
class 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)

app/src/main/java/com/codandotv/streamplayerapp/di/AppModule.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.codandotv.streamplayerapp.di
22

33
import android.content.res.Resources
44
import com.codandotv.streamplayerapp.core_networking.di.NetworkModule
5+
import com.codandotv.streamplayerapp.feature_list_streams.di.ListStreamModule
56
import org.koin.android.ext.koin.androidContext
67
import 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
}

0 commit comments

Comments
 (0)