1+
12import java.io.FileInputStream
2- import java.util.*
3+ import java.util.Properties
34import org.jetbrains.dokka.gradle.DokkaTask
5+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
46import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
57
68plugins {
79 kotlin(" multiplatform" )
8- kotlin(" plugin.serialization" )
10+ kotlin(" plugin.serialization" ) version " 2.1.20 "
911 id(" com.android.library" )
1012 id(" org.jetbrains.compose" )
13+ id(" org.jetbrains.kotlin.plugin.compose" )
1114 id(" maven-publish" )
1215 id(" signing" )
13- id(" org.jetbrains.dokka" ) version " 1.9.20 "
16+ id(" org.jetbrains.dokka" ) version " 2.0.0 "
1417 id(" org.jlleitschuh.gradle.ktlint" )
1518}
1619
@@ -77,8 +80,17 @@ tasks.withType<DokkaTask>().configureEach {
7780}
7881
7982kotlin {
80- androidTarget()
81- jvm()
83+ androidTarget {
84+ compilerOptions {
85+ jvmTarget.set(JvmTarget .JVM_21 )
86+ }
87+ }
88+
89+ jvm {
90+ compilerOptions {
91+ jvmTarget.set(JvmTarget .JVM_21 )
92+ }
93+ }
8294
8395 val xcf = XCFramework ()
8496 val iosTargets = listOf (iosX64(), iosArm64(), iosSimulatorArm64())
@@ -93,18 +105,21 @@ kotlin {
93105 sourceSets {
94106 val commonMain by getting {
95107 dependencies {
96- implementation(" com.aallam.openai:openai-client:3.8.2" )
97- implementation(" io.ktor:ktor-client-core:2.3.12" )
98- implementation(" com.squareup.okio:okio:3.9.0" )
99- implementation(" com.mikepenz:multiplatform-markdown-renderer:0.12.0" )
100- implementation(" co.touchlab:kermit:2.0.4" )
108+ implementation(kotlin(" reflect" ))
109+
101110 implementation(compose.runtime)
102111 implementation(compose.foundation)
103112 implementation(compose.material)
104113 @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary ::class )
105114 implementation(compose.components.resources)
106115 implementation(compose.materialIconsExtended)
107- implementation(kotlin(" reflect" ))
116+
117+ implementation(" ai.koog:koog-agents:0.4.2" )
118+ implementation(" com.aallam.openai:openai-client:4.0.1" )
119+ implementation(" io.ktor:ktor-client-core:3.3.0" )
120+ implementation(" com.squareup.okio:okio:3.16.0" )
121+ implementation(" com.mikepenz:multiplatform-markdown-renderer:0.37.0" )
122+ implementation(" co.touchlab:kermit:2.0.8" )
108123 }
109124 }
110125 val commonTest by getting {
@@ -114,19 +129,21 @@ kotlin {
114129 }
115130 val androidMain by getting {
116131 dependencies {
117- api(" androidx.activity:activity-compose:1.9.1" )
118- api(" androidx.appcompat:appcompat:1.7.0" )
119- api(" androidx.core:core-ktx:1.13.1" )
120132 implementation(compose.uiTooling)
133+
134+ api(" androidx.activity:activity-compose:1.11.0" )
135+ api(" androidx.appcompat:appcompat:1.7.1" )
136+ api(" androidx.core:core-ktx:1.17.0" )
121137 implementation(" com.lordcodes.turtle:turtle:0.10.0" )
122- implementation(" io.ktor:ktor-client-okhttp:2 .3.6 " )
138+ implementation(" io.ktor:ktor-client-okhttp:3 .3.0 " )
123139 }
124140 }
125141 val jvmMain by getting {
126142 dependencies {
127143 implementation(compose.desktop.common)
144+
128145 implementation(" com.lordcodes.turtle:turtle:0.10.0" )
129- implementation(" io.ktor:ktor-client-okhttp:2 .3.6 " )
146+ implementation(" io.ktor:ktor-client-okhttp:3 .3.0 " )
130147 }
131148 }
132149 val jvmTest by getting {
@@ -144,7 +161,7 @@ kotlin {
144161 iosSimulatorArm64Main.dependsOn(this )
145162
146163 dependencies {
147- implementation(" io.ktor:ktor-client-darwin:2 .3.6 " )
164+ implementation(" io.ktor:ktor-client-darwin:3 .3.0 " )
148165 }
149166 }
150167 }
@@ -172,11 +189,11 @@ android {
172189 minSdk = (findProperty(" android.minSdk" ) as String ).toInt()
173190 }
174191 compileOptions {
175- sourceCompatibility = JavaVersion .VERSION_17
176- targetCompatibility = JavaVersion .VERSION_17
192+ sourceCompatibility = JavaVersion .VERSION_21
193+ targetCompatibility = JavaVersion .VERSION_21
177194 }
178195 kotlin {
179- jvmToolchain(17 )
196+ jvmToolchain(21 )
180197 }
181198}
182199
0 commit comments