Turn more dependencies to const val
s
This commit is contained in:
parent
26d1d81946
commit
7bc2918873
4 changed files with 30 additions and 19 deletions
|
@ -13,6 +13,11 @@ object Deps {
|
||||||
const val osmdroidAndroid = "org.osmdroid:osmdroid-android:${Versions.osmdroidAndroid}"
|
const val osmdroidAndroid = "org.osmdroid:osmdroid-android:${Versions.osmdroidAndroid}"
|
||||||
const val kotlinCoroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}"
|
const val kotlinCoroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}"
|
||||||
const val logback = "ch.qos.logback:logback-classic:${Versions.logback}"
|
const val logback = "ch.qos.logback:logback-classic:${Versions.logback}"
|
||||||
|
const val kotlinxHtmlJs = "org.jetbrains.kotlinx:kotlinx-html-js:${Versions.kotlinxHtmlJs}"
|
||||||
|
const val kotlinStyled = "org.jetbrains:kotlin-styled:${Versions.kotlinStyled}"
|
||||||
|
const val kotlinReact = "org.jetbrains:kotlin-react:${Versions.kotlinReact}"
|
||||||
|
const val kotlinReactDom = "org.jetbrains:kotlin-react-dom:${Versions.kotlinReactDom}"
|
||||||
|
const val kotlinReactRouterDom = "org.jetbrains:kotlin-react-router-dom:${Versions.kotlinReactRouterDom}"
|
||||||
|
|
||||||
object Test {
|
object Test {
|
||||||
const val junit = "junit:junit:${Versions.junit}"
|
const val junit = "junit:junit:${Versions.junit}"
|
||||||
|
|
|
@ -6,6 +6,11 @@ object Versions {
|
||||||
const val koin = "3.1.0"
|
const val koin = "3.1.0"
|
||||||
const val sqlDelight = "1.5.0"
|
const val sqlDelight = "1.5.0"
|
||||||
const val kermit = "0.1.9"
|
const val kermit = "0.1.9"
|
||||||
|
const val kotlinxHtmlJs = "0.7.3"
|
||||||
|
const val kotlinStyled = "5.2.1-pre.146-kotlin-1.4.30"
|
||||||
|
const val kotlinReact = "17.0.1-pre.146-kotlin-1.4.30"
|
||||||
|
const val kotlinReactDom = "17.0.1-pre.146-kotlin-1.4.30"
|
||||||
|
const val kotlinReactRouterDom = "5.1.2-pre.110-kotlin-1.4.0"
|
||||||
|
|
||||||
const val slf4j = "1.7.30"
|
const val slf4j = "1.7.30"
|
||||||
const val compose = "1.0.0-beta09"
|
const val compose = "1.0.0-beta09"
|
||||||
|
|
|
@ -71,31 +71,32 @@ kotlin {
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|
||||||
sourceSets["commonMain"].dependencies {
|
sourceSets["commonMain"].dependencies {
|
||||||
// Coroutines
|
// Coroutines
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}") {
|
implementation(Deps.kotlinCoroutinesCore) {
|
||||||
isForce = true
|
isForce = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ktor
|
with(Deps.Ktor){
|
||||||
implementation(Deps.Ktor.clientCore)
|
implementation(clientCore)
|
||||||
implementation(Deps.Ktor.clientJson)
|
implementation(clientJson)
|
||||||
implementation(Deps.Ktor.clientLogging)
|
implementation(clientLogging)
|
||||||
implementation(Deps.Ktor.clientSerialization)
|
implementation(clientSerialization)
|
||||||
|
}
|
||||||
|
|
||||||
// Kotlinx Serialization
|
// Kotlinx Serialization
|
||||||
implementation(Deps.Serialization.core)
|
implementation(Deps.Serialization.core)
|
||||||
|
|
||||||
// SQL Delight
|
with(Deps.SqlDelight){
|
||||||
implementation(Deps.SqlDelight.runtime)
|
implementation(runtime)
|
||||||
implementation(Deps.SqlDelight.coroutineExtensions)
|
implementation(coroutineExtensions)
|
||||||
|
}
|
||||||
|
|
||||||
// koin
|
with(Deps.Koin){
|
||||||
api(Deps.Koin.core)
|
api(core)
|
||||||
api(Deps.Koin.test)
|
api(test)
|
||||||
|
}
|
||||||
|
|
||||||
// kermit
|
|
||||||
api(Deps.kermit)
|
api(Deps.kermit)
|
||||||
}
|
}
|
||||||
sourceSets["commonTest"].dependencies {
|
sourceSets["commonTest"].dependencies {
|
||||||
|
|
|
@ -6,11 +6,11 @@ plugins {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("stdlib-js"))
|
implementation(kotlin("stdlib-js"))
|
||||||
|
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-html-js:0.7.3")
|
implementation(Deps.kotlinxHtmlJs)
|
||||||
implementation("org.jetbrains:kotlin-styled:5.2.1-pre.146-kotlin-1.4.30")
|
implementation(Deps.kotlinStyled)
|
||||||
implementation("org.jetbrains:kotlin-react:17.0.1-pre.146-kotlin-1.4.30")
|
implementation(Deps.kotlinReact)
|
||||||
implementation("org.jetbrains:kotlin-react-dom:17.0.1-pre.146-kotlin-1.4.30")
|
implementation(Deps.kotlinReactDom)
|
||||||
implementation("org.jetbrains:kotlin-react-router-dom:5.1.2-pre.110-kotlin-1.4.0")
|
implementation(Deps.kotlinReactRouterDom)
|
||||||
implementation(npm("react", "16.13.0"))
|
implementation(npm("react", "16.13.0"))
|
||||||
implementation(npm("react-dom", "16.13.0"))
|
implementation(npm("react-dom", "16.13.0"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue