File tree Expand file tree Collapse file tree 12 files changed +50
-3
lines changed
src/main/java/com/codandotv/streamplayerapp/di
java/com/codandotv/streamplayerapp/core_shared/qualifier
src/main/java/com/codandotv/streamplayerapp/feature_list_streams/list/di Expand file tree Collapse file tree 12 files changed +50
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ dependencies {
1515 implementation(project(Dependencies .Module .core_networking))
1616 implementation(project(Dependencies .Module .core_shared_ui))
1717 implementation(project(Dependencies .Module .core_navigation))
18+ implementation(project(Dependencies .Module .core_shared))
19+
1820 implementation(Dependencies .Koin .koin)
1921 Dependencies .Kotlin .list.forEach { implementation(it) }
2022 Dependencies .Support .list.forEach { implementation(it) }
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.core_shared.qualifier.QualifierDispatcherIO
56import kotlinx.coroutines.Dispatchers
67import org.koin.android.ext.koin.androidContext
78import org.koin.core.qualifier.named
@@ -10,7 +11,7 @@ import org.koin.dsl.module
1011object AppModule {
1112 private val module = module {
1213 single<Resources > { androidContext().resources }
13- single(named( " DispatcherIO " ) ) { Dispatchers .IO }
14+ single(QualifierDispatcherIO ) { Dispatchers .IO }
1415 }
1516 val list = module + NetworkModule .module
1617}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ object Dependencies {
1212 object Module {
1313 const val core_networking = " :core-networking"
1414 const val core_shared_ui = " :core-shared-ui"
15+ const val core_shared = " :core-shared"
1516 const val feature_list_streams = " :feature-list-streams"
1617 const val core_navigation = " :core-navigation"
1718 }
Original file line number Diff line number Diff line change 1+ /build
Original file line number Diff line number Diff line change 1+ android{
2+ namespace = " ${Config .packageName} core_shared"
3+ }
4+ dependencies {
5+ implementation(Dependencies .Koin .koin)
6+ }
Original file line number Diff line number Diff line change 1+ # Add project specific ProGuard rules here.
2+ # You can control the set of applied configuration files using the
3+ # proguardFiles setting in build.gradle.
4+ #
5+ # For more details, see
6+ # http://developer.android.com/guide/developing/tools/proguard.html
7+
8+ # If your project uses WebView with JS, uncomment the following
9+ # and specify the fully qualified class name to the JavaScript interface
10+ # class:
11+ #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+ # public *;
13+ #}
14+
15+ # Uncomment this to preserve the line number information for
16+ # debugging stack traces.
17+ #-keepattributes SourceFile,LineNumberTable
18+
19+ # If you keep the line number information, uncomment this to
20+ # hide the original source file name.
21+ #-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
3+ <uses-permission android : name =" android.permission.INTERNET" />
4+ </manifest >
Original file line number Diff line number Diff line change 1+ package com.codandotv.streamplayerapp.core_shared.qualifier
2+
3+ import org.koin.core.qualifier.Qualifier
4+ import org.koin.core.qualifier.QualifierValue
5+
6+ object QualifierDispatcherIO : Qualifier {
7+ override val value: QualifierValue
8+ get() = " dispatcherIO"
9+ }
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ android {
1414 implementation(project(Dependencies .Module .core_networking))
1515 implementation(project(Dependencies .Module .core_shared_ui))
1616 implementation(project(Dependencies .Module .core_navigation))
17+ implementation(project(Dependencies .Module .core_shared))
1718 Dependencies .Koin .list.forEach { implementation(it) }
1819 Dependencies .Retrofit .list.forEach { implementation(it) }
1920 Dependencies .Kotlin .list.forEach { implementation(it) }
You can’t perform that action at this time.
0 commit comments