Turn more dependencies to const vals

This commit is contained in:
Ali Khaleqi Yekta 2021-06-20 11:34:15 +04:30 committed by John O'Reilly
parent 26d1d81946
commit 7bc2918873
4 changed files with 30 additions and 19 deletions

View file

@ -13,6 +13,11 @@ object Deps {
const val osmdroidAndroid = "org.osmdroid:osmdroid-android:${Versions.osmdroidAndroid}"
const val kotlinCoroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}"
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 {
const val junit = "junit:junit:${Versions.junit}"

View file

@ -6,6 +6,11 @@ object Versions {
const val koin = "3.1.0"
const val sqlDelight = "1.5.0"
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 compose = "1.0.0-beta09"

View file

@ -71,31 +71,32 @@ kotlin {
}
sourceSets {
sourceSets["commonMain"].dependencies {
// Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}") {
implementation(Deps.kotlinCoroutinesCore) {
isForce = true
}
// Ktor
implementation(Deps.Ktor.clientCore)
implementation(Deps.Ktor.clientJson)
implementation(Deps.Ktor.clientLogging)
implementation(Deps.Ktor.clientSerialization)
with(Deps.Ktor){
implementation(clientCore)
implementation(clientJson)
implementation(clientLogging)
implementation(clientSerialization)
}
// Kotlinx Serialization
implementation(Deps.Serialization.core)
// SQL Delight
implementation(Deps.SqlDelight.runtime)
implementation(Deps.SqlDelight.coroutineExtensions)
with(Deps.SqlDelight){
implementation(runtime)
implementation(coroutineExtensions)
}
// koin
api(Deps.Koin.core)
api(Deps.Koin.test)
with(Deps.Koin){
api(core)
api(test)
}
// kermit
api(Deps.kermit)
}
sourceSets["commonTest"].dependencies {

View file

@ -6,11 +6,11 @@ plugins {
dependencies {
implementation(kotlin("stdlib-js"))
implementation("org.jetbrains.kotlinx:kotlinx-html-js:0.7.3")
implementation("org.jetbrains:kotlin-styled:5.2.1-pre.146-kotlin-1.4.30")
implementation("org.jetbrains:kotlin-react:17.0.1-pre.146-kotlin-1.4.30")
implementation("org.jetbrains:kotlin-react-dom:17.0.1-pre.146-kotlin-1.4.30")
implementation("org.jetbrains:kotlin-react-router-dom:5.1.2-pre.110-kotlin-1.4.0")
implementation(Deps.kotlinxHtmlJs)
implementation(Deps.kotlinStyled)
implementation(Deps.kotlinReact)
implementation(Deps.kotlinReactDom)
implementation(Deps.kotlinReactRouterDom)
implementation(npm("react", "16.13.0"))
implementation(npm("react-dom", "16.13.0"))