-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coinLoreAPI standalone for koin initialization
- Loading branch information
Showing
4 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.example.coinloreapi"> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<application | ||
android:name=".CoinLore" | ||
> | ||
|
||
</application> | ||
</manifest> |
23 changes: 23 additions & 0 deletions
23
app/coinLoreAPI/src/main/java/com/example/coinloreapi/CoinLore.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
)) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters