1- import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
21import org.apache.tools.ant.taskdefs.condition.Os
32import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
43
@@ -10,17 +9,12 @@ allprojects {
109 }
1110}
1211
13- buildscript {
14- dependencies {
15- classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10" )
16- }
17- }
1812
1913plugins {
20- id( " org.jetbrains .kotlin.multiplatform" )
14+ alias(libs.plugins .kotlin.multiplatform)
2115 `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)
2418}
2519
2620publishing {
@@ -39,7 +33,7 @@ publishing {
3933android {
4034 namespace = project.group.toString()
4135 compileSdk = 33
42- sourceSets[ " main " ].manifest.srcFile( " src/androidMain/AndroidManifest.xml " )
36+ namespace = " io.rebble.libpebblecommon "
4337 defaultConfig {
4438 minSdk = 21
4539 targetSdk = compileSdk
@@ -84,14 +78,7 @@ kotlin {
8478 }
8579 }
8680 }
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+
9582 sourceSets {
9683 all {
9784 languageSettings {
@@ -102,16 +89,15 @@ kotlin {
10289 }
10390 }
10491 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)
11197 }
11298
11399 sourceSets[" commonTest" ].dependencies {
114- implementation(kotlin( " test" ) )
100+ implementation(libs. kotlin. test)
115101 }
116102
117103 sourceSets[" androidMain" ].dependencies {
@@ -132,11 +118,11 @@ kotlin {
132118 }
133119
134120 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)
140126 }
141127 }
142128}
0 commit comments