Skip to content

Commit

Permalink
Register additional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 committed Oct 10, 2022
1 parent 334bea1 commit 53c2d95
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import com.mxt.anitrend.BuildConfig
import com.mxt.anitrend.extension.workManagerFactory
import com.mxt.anitrend.initializer.ApplicationInitializer
import com.mxt.anitrend.koin.appModules
import com.mxt.anitrend.util.Settings
import com.mxt.anitrend.util.locale.LocaleUtil
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin
import org.koin.core.logger.KOIN_TAG
Expand All @@ -23,7 +25,12 @@ class InjectorInitializer : Initializer<Unit> {
*/
override fun create(context: Context) {
startKoin {
androidContext(context)
androidContext(
LocaleUtil.applyConfiguration(
context,
Settings(context)
)
)
logger(KoinLogger())
workManagerFactory()
modules(appModules)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ internal fun Project.configureDependencies() {
)

dependencies.implementation(Libraries.JetBrains.Kotlin.stdlib)
dependencies.implementation(Libraries.JetBrains.Kotlin.reflect)
dependencies.implementation(Libraries.JetBrains.KotlinX.Serialization.json)
dependencies.implementation(Libraries.JetBrains.KotlinX.Coroutines.android)
dependencies.implementation(Libraries.JetBrains.KotlinX.Coroutines.core)
Expand Down Expand Up @@ -57,6 +58,7 @@ internal fun Project.configureDependencies() {
dependencies.implementation(Libraries.AndroidX.StartUp.startUpRuntime)

dependencies.implementation(Libraries.AndroidX.Lifecycle.liveDataCoreKtx)
dependencies.implementation(Libraries.AndroidX.Lifecycle.viewModelKtx)
dependencies.implementation(Libraries.AndroidX.Lifecycle.runTimeKtx)
dependencies.implementation(Libraries.AndroidX.Lifecycle.liveDataKtx)
dependencies.implementation(Libraries.AndroidX.Lifecycle.extensions)
Expand All @@ -65,6 +67,7 @@ internal fun Project.configureDependencies() {
dependencies.implementation (Libraries.Koin.core)
dependencies.implementation (Libraries.Koin.android)
dependencies.implementation (Libraries.Koin.AndroidX.workManager)
dependencies.testImplementation(Libraries.Koin.Test.test)
dependencies.androidTestImplementation(Libraries.Koin.Test.testJUnit4)

/** Glide Libraries */
Expand Down Expand Up @@ -123,6 +126,7 @@ internal fun Project.configureDependencies() {
dependencies.androidTestImplementation(Libraries.AndroidX.Test.coreKtx)
dependencies.androidTestImplementation(Libraries.AndroidX.Test.rules)
dependencies.androidTestImplementation(Libraries.AndroidX.Test.runner)
dependencies.androidTestImplementation(Libraries.AndroidX.Fragment.test)
dependencies.androidTestImplementation(Libraries.AndroidX.Test.Espresso.core)
dependencies.androidTestImplementation(Libraries.AndroidX.Test.Extension.junitKtx)
dependencies.androidTestImplementation(Libraries.Mockito.core)
Expand Down

0 comments on commit 53c2d95

Please sign in to comment.