1+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
12import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
23
34plugins {
@@ -22,10 +23,9 @@ publishing {
2223android {
2324 namespace = " com.kape.regions"
2425
25- compileSdk = 34
26+ compileSdk = 35
2627 defaultConfig {
2728 minSdk = 21
28- targetSdk = 34
2929 }
3030
3131 buildTypes {
@@ -38,20 +38,20 @@ android {
3838@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi ::class )
3939kotlin {
4040 group = " com.kape.android"
41- version = " 1.7.0"
41+ version = " 1.7.1"
42+
43+ jvmToolchain(17 )
4244
4345 // Enable the default target hierarchy.
4446 // It's a template for all possible targets and their shared source sets hardcoded in the
4547 // Kotlin Gradle plugin.
46- targetHierarchy.default ()
48+ applyDefaultHierarchyTemplate ()
4749
4850 // Android
49- android {
51+ androidTarget {
5052 publishLibraryVariants(" release" )
51- compilations.all {
52- kotlinOptions {
53- jvmTarget = " 17"
54- }
53+ compilerOptions {
54+ jvmTarget.set(JvmTarget .JVM_17 )
5555 }
5656 }
5757
@@ -78,37 +78,36 @@ kotlin {
7878 sourceSets {
7979 val commonMain by getting {
8080 dependencies {
81- implementation(" io.ktor:ktor-client-core:2.3.3 " )
81+ implementation(" io.ktor:ktor-client-core:3.1.1 " )
8282 implementation(" org.jetbrains.kotlin:kotlin-stdlib-common" )
83- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3 " )
84- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-core:1.5.1 " )
85- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1 " )
83+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1 " )
84+ implementation(" org.jetbrains.kotlinx:kotlinx-serialization-core:1.8.0 " )
85+ implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0 " )
8686 }
8787 }
8888 val commonTest by getting {
8989 dependencies {
9090 implementation(kotlin(" test" ))
91- implementation(kotlin(" test-junit" ))
9291 implementation(kotlin(" test-common" ))
9392 implementation(kotlin(" test-annotations-common" ))
9493 }
9594 }
9695 val androidMain by getting {
9796 dependencies {
9897 implementation(" com.madgag.spongycastle:core:1.58.0.0" )
99- implementation(" io.ktor:ktor-client-okhttp:2.3.3 " )
98+ implementation(" io.ktor:ktor-client-okhttp:3.1.1 " )
10099 implementation(" org.jetbrains.kotlin:kotlin-stdlib" )
101100 }
102101 }
103102 val androidUnitTest by getting {
104103 dependencies {
105- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3 " )
106- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3 " )
104+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1 " )
105+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.1 " )
107106 }
108107 }
109108 val iosMain by getting {
110109 dependencies {
111- implementation(" io.ktor:ktor-client-darwin:2.3.3 " )
110+ implementation(" io.ktor:ktor-client-darwin:3.1.0 " )
112111 }
113112 }
114113 val iosTest by getting {
@@ -117,8 +116,13 @@ kotlin {
117116 }
118117 val tvosMain by getting {
119118 dependencies {
120- implementation(" io.ktor:ktor-client-darwin:2.3.3 " )
119+ implementation(" io.ktor:ktor-client-darwin:3.1.0 " )
121120 }
122121 }
123122 }
124123}
124+
125+ java {
126+ sourceCompatibility = JavaVersion .VERSION_17
127+ targetCompatibility = JavaVersion .VERSION_17
128+ }
0 commit comments