1
- import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
2
1
import org.apache.tools.ant.taskdefs.condition.Os
3
2
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
4
3
@@ -10,17 +9,12 @@ allprojects {
10
9
}
11
10
}
12
11
13
- buildscript {
14
- dependencies {
15
- classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10" )
16
- }
17
- }
18
12
19
13
plugins {
20
- id( " org.jetbrains .kotlin.multiplatform" )
14
+ alias(libs.plugins .kotlin.multiplatform)
21
15
`maven- publish`
22
- id( " org.jetbrains .kotlin.plugin. serialization" )
23
- id( " com. android.library" )
16
+ alias(libs.plugins .kotlin.serialization)
17
+ alias(libs.plugins. android.library)
24
18
}
25
19
26
20
publishing {
@@ -84,14 +78,7 @@ kotlin {
84
78
}
85
79
}
86
80
}
87
-
88
- val klockVersion = " 2.4.13"
89
- val ktorVersion = " 1.6.7"
90
- val coroutinesVersion = " 1.8.0"
91
- val uuidVersion = " 0.4.1"
92
- val kotlinxSerVersion = " 1.5.0"
93
- val kermitVersion = " 2.0.0-RC4"
94
-
81
+
95
82
sourceSets {
96
83
all {
97
84
languageSettings {
@@ -102,16 +89,15 @@ kotlin {
102
89
}
103
90
}
104
91
sourceSets[" commonMain" ].dependencies {
105
- implementation(kotlin(" stdlib-common" ))
106
- implementation(" com.benasher44:uuid:$uuidVersion " )
107
- implementation(" com.soywiz.korlibs.klock:klock:$klockVersion " )
108
- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion " )
109
- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxSerVersion " )
110
- implementation(" co.touchlab:kermit:$kermitVersion " )
92
+ implementation(libs.uuid)
93
+ implementation(libs.klock)
94
+ implementation(libs.coroutines)
95
+ implementation(libs.serialization)
96
+ implementation(libs.kermit)
111
97
}
112
98
113
99
sourceSets[" commonTest" ].dependencies {
114
- implementation(kotlin( " test" ) )
100
+ implementation(libs. kotlin. test)
115
101
}
116
102
117
103
sourceSets[" androidMain" ].dependencies {
@@ -132,11 +118,11 @@ kotlin {
132
118
}
133
119
134
120
sourceSets[" jvmTest" ].dependencies {
135
- implementation(kotlin( " test" ) )
136
- implementation(kotlin( " test- junit" ) )
137
- implementation(" io .ktor:ktor-client- websockets: $ktorVersion " )
138
- implementation(" io .ktor:ktor-client- cio: $ktorVersion " )
139
- implementation(" io .ktor:ktor-client- okhttp: $ktorVersion " )
121
+ implementation(libs. kotlin. test)
122
+ implementation(libs. kotlin. test. junit)
123
+ implementation(libs .ktor. websockets)
124
+ implementation(libs .ktor. cio)
125
+ implementation(libs .ktor. okhttp)
140
126
}
141
127
}
142
128
}
0 commit comments