diff --git a/app/coinLoreAPI/src/main/AndroidManifest.xml b/app/coinLoreAPI/src/main/AndroidManifest.xml index 3262867..c1499cf 100644 --- a/app/coinLoreAPI/src/main/AndroidManifest.xml +++ b/app/coinLoreAPI/src/main/AndroidManifest.xml @@ -1,5 +1,11 @@ + + + \ No newline at end of file diff --git a/app/coinLoreAPI/src/main/java/com/example/coinloreapi/CoinLore.kt b/app/coinLoreAPI/src/main/java/com/example/coinloreapi/CoinLore.kt new file mode 100644 index 0000000..140b88b --- /dev/null +++ b/app/coinLoreAPI/src/main/java/com/example/coinloreapi/CoinLore.kt @@ -0,0 +1,23 @@ +package com.example.coinloreapi + +import android.app.Application +import com.example.coinloreapi.di.coinLoreModule +import com.example.coinloreapi.di.repositoryModule +import org.koin.android.ext.koin.androidContext +import org.koin.android.ext.koin.androidLogger +import org.koin.core.context.startKoin +import org.koin.core.logger.Level + +class CoinLore:Application() { + override fun onCreate() { + super.onCreate() + startKoin{ + androidLogger(Level.DEBUG) + androidContext(applicationContext) + modules(listOf( + coinLoreModule, + repositoryModule + )) + } + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7e2fe29..8ce7397 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,9 +1,9 @@