Skip to content

Commit

Permalink
👷 Unifiedly set dependency versions in toml (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
guiyanakuang authored Feb 2, 2024
1 parent 1a576d4 commit b7173bf
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 23 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ plugins {
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.kotlinSerialization) apply false
id("io.realm.kotlin") version "1.13.0" apply false
alias(libs.plugins.realmKotlin) apply false
}
34 changes: 17 additions & 17 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.kotlinSerialization)
id("io.realm.kotlin") version "1.13.0"
alias(libs.plugins.realmKotlin)
}

kotlin {
Expand All @@ -22,35 +22,35 @@ kotlin {

desktopMain.dependencies {
implementation(compose.desktop.currentOs)
implementation("net.java.dev.jna:jna:5.14.0")
implementation("net.java.dev.jna:jna-platform:5.14.0")
implementation("com.google.zxing:core:3.5.3")
implementation("com.google.zxing:javase:3.5.3")
implementation("ch.qos.logback:logback-classic:1.4.14")
implementation(libs.jmdns)
implementation(libs.jna)
implementation(libs.jna.platform)
implementation(libs.jnativehook)
implementation(libs.koin.core)
implementation(libs.ktor.server.core)
implementation(libs.ktor.server.netty)
implementation(libs.ktor.server.content.negotiation)
implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.cio)
implementation("org.signal:libsignal-client:0.39.3")
implementation("br.com.devsrsouza.compose.icons:tabler-icons-desktop:1.1.0")
implementation("io.insert-koin:koin-core:3.5.3")
implementation("com.github.kwhat:jnativehook:2.2.2")
implementation("com.github.Dansoftowner:jSystemThemeDetector:3.8")
implementation("org.jmdns:jmdns:3.5.9")
implementation(libs.logback.classic)
implementation(libs.signal.client)
implementation(libs.theme.detector)
implementation(libs.zxing.core)
implementation(libs.zxing.javase)
}
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
@OptIn(ExperimentalComposeLibrary::class)
implementation(compose.components.resources)
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
implementation("io.github.oshai:kotlin-logging-jvm:6.0.3")
implementation("io.realm.kotlin:library-base:1.13.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("org.jetbrains.compose.material:material-desktop:1.5.12")
implementation(libs.kotlin.logging)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.serialization.json)
implementation(libs.material.desktop)
implementation(libs.realm.kotlin.base)
implementation(libs.tabler.icons)
}

val commonTest by getting {
Expand Down
43 changes: 38 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,60 @@
compose = "1.5.4"
compose-plugin = "1.5.12"
compose-compiler = "1.5.8"
kotlin = "1.9.22"
jmdns = "3.5.9"
jna = "5.14.0"
jnativehook = "2.2.2"
junit = "4.13.2"
koin = "3.5.3"
kotlin = "1.9.22"
kotlin-logging = "6.0.3"
kotlinx-coroutines = "1.7.3"
kotlinx-serialization = "1.6.2"
ktor = "2.3.8"
logback = "1.4.14"
realm = "1.13.0"
signal = "0.39.3"
tabler-icons = "1.1.0"
theme-detector = "3.8"
zxing = "3.5.3"

[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose" }
compose-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "compose" }
compose-material = { module = "androidx.compose.material:material", version.ref = "compose" }
jmdns = { module = "org.jmdns:jmdns", version.ref = "jmdns" }
jna = { module = "net.java.dev.jna:jna", version.ref = "jna" }
jna-platform = { module = "net.java.dev.jna:jna-platform", version.ref = "jna" }
jnativehook = { module = "com.github.kwhat:jnativehook", version.ref = "jnativehook" }
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koin" }
kotlin-logging = { module = "io.github.oshai:kotlin-logging-jvm", version.ref = "kotlin-logging" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }
ktor-server-core = { module = "io.ktor:ktor-server-core", version.ref = "ktor" }
ktor-server-netty = { module = "io.ktor:ktor-server-netty", version.ref = "ktor" }
ktor-server-content-negotiation = { module = "io.ktor:ktor-server-content-negotiation", version.ref = "ktor" }
ktor-serialization-kotlinx-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-client-cio = { module = "io.ktor:ktor-client-cio", version.ref = "ktor" }
logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
material-desktop = { module = "org.jetbrains.compose.material:material-desktop", version.ref = "compose-plugin" }
realm-kotlin-base = { module = "io.realm.kotlin:library-base", version.ref = "realm" }
signal-client = { module = "org.signal:libsignal-client", version.ref = "signal" }
tabler-icons = { module = "br.com.devsrsouza.compose.icons:tabler-icons-desktop", version.ref = "tabler-icons" }
theme-detector = { module = "com.github.Dansoftowner:jSystemThemeDetector", version.ref = "theme-detector" }
zxing-core = { module = "com.google.zxing:core", version.ref = "zxing" }
zxing-javase = { module = "com.google.zxing:javase", version.ref = "zxing" }

# test libs
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
junit = { group = "junit", name = "junit", version.ref = "junit" }


[plugins]
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kotlinSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
realmKotlin = { id = "io.realm.kotlin", version.ref = "realm" }

0 comments on commit b7173bf

Please sign in to comment.