Skip to content

Commit b078d19

Browse files
Make corrections to dependency structure, sourceSets, version usages, properties
1 parent 0eac6be commit b078d19

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

composeApp/build.gradle.kts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,19 @@ kotlin {
5959
androidMain.dependencies {
6060
implementation(compose.preview)
6161
implementation(libs.androidx.activity.compose)
62-
implementation("io.insert-koin:koin-android:3.5.3")
62+
implementation(libs.koin.android)
63+
implementation(libs.koin.androidx.compose)
64+
implementation(compose.components.uiToolingPreview)
6365
}
6466
commonMain.dependencies {
6567
implementation(compose.runtime)
6668
implementation(compose.foundation)
6769
implementation(compose.material)
6870
implementation(compose.ui)
6971
implementation(compose.components.resources)
70-
implementation(compose.components.uiToolingPreview)
7172
implementation(libs.androidx.lifecycle.viewmodel)
7273
implementation(libs.androidx.lifecycle.runtime.compose)
74+
implementation(libs.androidx.navigation.compose)
7375

7476
implementation(project.dependencies.platform(libs.ktor.bom))
7577
implementation(libs.ktor.client.android)
@@ -78,10 +80,12 @@ kotlin {
7880
implementation(libs.ktor.client.logging)
7981
implementation(libs.ktor.client.mock)
8082
implementation(libs.ktor.client.serialization)
83+
implementation(libs.kotlinx.serialization.json)
8184

82-
implementation("androidx.navigation:navigation-compose:2.9.0")
83-
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:<version>")
84-
implementation("io.insert-koin:koin-core:3.5.3")
85+
implementation(project.dependencies.platform(libs.koin.bom))
86+
api(libs.koin.core)
87+
implementation(libs.koin.compose)
88+
implementation(libs.koin.compose.viewmodel)
8589
}
8690
desktopMain.dependencies {
8791
implementation(compose.desktop.currentOs)

gradle.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8
77

88
#Android
99
android.nonTransitiveRClass=true
10-
android.useAndroidX=true
10+
android.useAndroidX=true
11+
12+
# Kotlin/Native targets cannot be built on windows machine and are disabled:
13+
kotlin.native.ignoreDisabledTargets=true

gradle/libs.versions.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ compose-multiplatform = "1.7.3"
1515
junit = "4.13.2"
1616
kotlin = "2.1.10"
1717
kotlinx-coroutines = "1.10.1"
18+
kotlinx-serialization-json = "1.7.3"
1819
ktor-bom = "3.0.1"
20+
koin = "4.0.4"
21+
navigation-compose = "2.9.0"
1922

2023
[libraries]
24+
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "navigation-compose" }
2125
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
2226
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
2327
junit = { group = "junit", name = "junit", version.ref = "junit" }
@@ -31,6 +35,7 @@ androidx-activity-compose = { module = "androidx.activity:activity-compose", ver
3135
androidx-lifecycle-viewmodel = { group = "org.jetbrains.androidx.lifecycle", name = "lifecycle-viewmodel", version.ref = "androidx-lifecycle" }
3236
androidx-lifecycle-runtime-compose = { group = "org.jetbrains.androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "androidx-lifecycle" }
3337
kotlinx-coroutines-swing = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-swing", version.ref = "kotlinx-coroutines" }
38+
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization-json" }
3439
ktor-bom = { module = "io.ktor:ktor-bom", version.ref = "ktor-bom" }
3540
ktor-client-android = { module = "io.ktor:ktor-client-android" }
3641
ktor-client-content-negotiation = { module = "io.ktor:ktor-client-content-negotiation" }
@@ -39,6 +44,13 @@ ktor-client-mock = { module = "io.ktor:ktor-client-mock" }
3944
ktor-client-serialization = { module = "io.ktor:ktor-client-serialization" }
4045
ktor-serialization-kotlinx-json = { module = "io.ktor:ktor-serialization-kotlinx-json" }
4146

47+
koin-android = { module = "io.insert-koin:koin-android" }
48+
koin-androidx-compose = { module = "io.insert-koin:koin-androidx-compose" }
49+
koin-bom = { module = "io.insert-koin:koin-bom", version.ref = "koin" }
50+
koin-compose = { module = "io.insert-koin:koin-compose" }
51+
koin-compose-viewmodel = { module = "io.insert-koin:koin-compose-viewmodel", version.ref = "koin" }
52+
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koin" }
53+
4254
[plugins]
4355
androidApplication = { id = "com.android.application", version.ref = "agp" }
4456
androidLibrary = { id = "com.android.library", version.ref = "agp" }

0 commit comments

Comments
 (0)