Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daraja DI using KOIN #61

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ object Versions {
// Lifecycle
const val lifecycle = "2.2.0"

//DI-KOIN
const val koin = "3.1.2"

// Logging - debug builds
const val timber = "4.7.1"
const val leakCanary = "2.4"
Expand Down Expand Up @@ -85,6 +88,9 @@ object Libraries {
// Lifecycle
const val lifecycle = "androidx.lifecycle:lifecycle-extensions:${Versions.lifecycle}"

//DI - KOIN
const val koin = "io.insert-koin:koin-android:${Versions.koin}"

// Debug - for debug builds only
const val timber = "com.jakewharton.timber:timber:${Versions.timber}"
const val leakCanary = "com.squareup.leakcanary:leakcanary-android:${Versions.leakCanary}"
Expand Down
3 changes: 3 additions & 0 deletions daraja/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ dependencies {
debugImplementation(Libraries.chunkerDebug)
releaseImplementation(Libraries.chunkerRelease)

//DI-KOIN
implementation(Libraries.koin)

// debug
implementation(Libraries.timber)

Expand Down