Add Koin library

This commit is contained in:
MM20 2021-10-02 18:35:30 +02:00
parent de78c385df
commit 023bb2cbb1
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
3 changed files with 23 additions and 0 deletions

View File

@ -116,6 +116,8 @@ dependencies {
implementation(libs.draglinearlayout)
implementation(libs.viewpropertyobjectanimator)
implementation(libs.bundles.koin)
implementation(project(":applications"))
implementation(project(":appsearch"))
implementation(project(":badges"))

View File

@ -185,4 +185,11 @@ val OpenSourceLicenses = arrayOf(
licenseText = R.raw.license_apache_2,
url = "https://material.io/icons/"
),
OpenSourceLibrary(
name = "Koin",
description = "A smart Kotlin injection library to keep you focused on your app, not on your tools",
licenseName = R.string.apache_license_name,
licenseText = R.raw.license_apache_2,
url = "https://insert-koin.io/"
),
)

View File

@ -386,6 +386,20 @@ dependencyResolutionManagement {
alias("protobuf.javalite")
.to("com.google.protobuf", "protobuf-javalite")
.versionRef("protobuf")
version("koin", "3.1.2")
alias("koin.android")
.to("io.insert-koin", "koin-android")
.versionRef("koin")
alias("koin.androidviewmodel")
.to("io.insert-koin", "koin-android-viewmodel")
.versionRef("koin")
bundle(
"koin", listOf(
"koin.android",
"koin.androidviewmodel"
)
)
}
}
}