File tree 5 files changed +38
-26
lines changed
src/commonMain/kotlin/com/inspiredandroid/kai
5 files changed +38
-26
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,25 @@ kotlin {
122
122
123
123
android {
124
124
namespace = " com.inspiredandroid.kai"
125
- compileSdk = libs.versions.android.compileSdk.get().toInt()
125
+ compileSdk =
126
+ libs.versions.android.compileSdk
127
+ .get()
128
+ .toInt()
126
129
127
130
defaultConfig {
128
131
applicationId = " com.inspiredandroid.kai"
129
- minSdk = libs.versions.android.minSdk.get().toInt()
130
- targetSdk = libs.versions.android.targetSdk.get().toInt()
131
- versionCode = libs.versions.android.versionCode.get().toInt()
132
+ minSdk =
133
+ libs.versions.android.minSdk
134
+ .get()
135
+ .toInt()
136
+ targetSdk =
137
+ libs.versions.android.targetSdk
138
+ .get()
139
+ .toInt()
140
+ versionCode =
141
+ libs.versions.android.versionCode
142
+ .get()
143
+ .toInt()
132
144
versionName = libs.versions.appVersion.get()
133
145
}
134
146
packaging {
@@ -177,7 +189,11 @@ compose.desktop {
177
189
class VersionGeneratorPlugin : Plugin <Project > {
178
190
override fun apply (project : Project ) {
179
191
project.afterEvaluate {
180
- val versionFile = layout.buildDirectory.file(" generated/src/commonMain/kotlin/com/inspiredandroid/kai/Version.kt" ).get().asFile
192
+ val versionFile =
193
+ layout.buildDirectory
194
+ .file(" generated/src/commonMain/kotlin/com/inspiredandroid/kai/Version.kt" )
195
+ .get()
196
+ .asFile
181
197
versionFile.parentFile.mkdirs()
182
198
versionFile.writeText(
183
199
"""
Original file line number Diff line number Diff line change @@ -159,8 +159,6 @@ class RemoteDataRepository(
159
159
}
160
160
}
161
161
162
- override fun isUsingSharedKey (): Boolean {
163
- return settings.getString(Key .CURRENT_SERVICE_ID , Value .DEFAULT_SERVICE ) == Value .SERVICE_GROQ &&
164
- settings.getStringOrNull(Key .GROQ_API_KEY ) == null
165
- }
162
+ override fun isUsingSharedKey (): Boolean = settings.getString(Key .CURRENT_SERVICE_ID , Value .DEFAULT_SERVICE ) == Value .SERVICE_GROQ &&
163
+ settings.getStringOrNull(Key .GROQ_API_KEY ) == null
166
164
}
Original file line number Diff line number Diff line change @@ -134,14 +134,12 @@ class Requests(private val settings: Settings) {
134
134
}
135
135
}
136
136
137
- suspend fun getGroqModels (): Result <GroqModelResponseDto > {
138
- return try {
139
- val response: HttpResponse =
140
- groqClient.get(" https://api.groq.com/openai/v1/models" )
141
- Result .success(response.body())
142
- } catch (exception: Throwable ) {
143
- Result .failure(exception)
144
- }
137
+ suspend fun getGroqModels (): Result <GroqModelResponseDto > = try {
138
+ val response: HttpResponse =
139
+ groqClient.get(" https://api.groq.com/openai/v1/models" )
140
+ Result .success(response.body())
141
+ } catch (exception: Throwable ) {
142
+ Result .failure(exception)
145
143
}
146
144
}
147
145
Original file line number Diff line number Diff line change 1
1
[versions ]
2
- agp = " 8.7.3 "
3
- appVersion = " 1.0.2 "
4
- android-versionCode = " 5 "
2
+ agp = " 8.8.0 "
3
+ appVersion = " 1.0.3 "
4
+ android-versionCode = " 6 "
5
5
android-compileSdk = " 35"
6
6
android-minSdk = " 26"
7
7
android-targetSdk = " 35"
8
- androidx-activityCompose = " 1.9.3 "
8
+ androidx-activityCompose = " 1.10.0 "
9
9
androidx-lifecycle = " 2.8.4"
10
10
compose-multiplatform = " 1.7.3"
11
11
compottieDot = " 2.0.0-rc02"
12
- koinCompose = " 4.0.1 "
13
- kotlin = " 2.1.0 "
12
+ koinCompose = " 4.0.2 "
13
+ kotlin = " 2.1.10 "
14
14
kotlinx-coroutines = " 1.9.0"
15
- kotlinxSerializationJson = " 1.8.0-RC "
15
+ kotlinxSerializationJson = " 1.8.0"
16
16
ktor = " 3.0.3"
17
17
material = " 1.12.0"
18
18
multiplatformMarkdownRenderer = " 0.26.0"
19
19
multiplatformSettings = " 1.2.0"
20
20
navigationComposeVersion = " 2.8.0-alpha11"
21
- spotless = " 6.25.0 "
21
+ spotless = " 7.0.2 "
22
22
tts = " 2.5.0"
23
23
24
24
[libraries ]
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.9 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10.2 -bin.zip
4
4
networkTimeout =10000
5
5
validateDistributionUrl =true
6
6
zipStoreBase =GRADLE_USER_HOME
You can’t perform that action at this time.
0 commit comments