Skip to content

Commit 646ce53

Browse files
committed
0.1.0 (sep 29, 10:55)
1 parent ecaab63 commit 646ce53

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ class IOSGithubSearchViewModel: ObservableObject {
243243

244244
# Building & Develop
245245

246-
- `Android Studio Chipmunk | 2021.2.1` (note: **Java 11 is now the minimum version required**).
247-
- `XCode 13.2` or later (due to use of new Swift 5.5 concurrency APIs).
246+
- `Android Studio Giraffe | 2022.3.1` (note: **Java 17 is now the minimum version required**).
247+
- `Xcode 13.2` or later (due to use of new Swift 5.5 concurrency APIs).
248248
- Clone project: `git clone https://github.com/hoc081098/GithubSearchKMM.git`
249249
- Android: open project by `Android Studio` and run as usual.
250250
- iOS
@@ -281,14 +281,14 @@ class IOSGithubSearchViewModel: ObservableObject {
281281
--------------------------------------------------------------------------------
282282
Language Files Lines Blank Comment Code
283283
--------------------------------------------------------------------------------
284-
Kotlin 105 7647 936 439 6272
284+
Kotlin 106 7789 963 417 6409
285285
JSON 7 3938 0 0 3938
286286
Swift 16 903 118 102 683
287287
Markdown 1 294 54 0 240
288288
Bourne Shell 2 250 28 116 106
289289
Batch 1 92 21 0 71
290290
XML 6 69 6 0 63
291291
--------------------------------------------------------------------------------
292-
Total 138 13193 1163 657 11373
292+
Total 139 13335 1190 635 11510
293293
--------------------------------------------------------------------------------
294294
```

androidApp/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ hilt {
1010
enableAggregatingTask = true
1111
}
1212

13+
kotlin {
14+
jvmToolchain {
15+
languageVersion = JavaLanguageVersion.of(17)
16+
vendor = JvmVendorSpec.AZUL
17+
}
18+
}
19+
1320
android {
1421
namespace = "com.hoc081098.github_search_kmm.android"
1522
compileSdk = appConfig.compileSdkVersion

settings.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ fun copyToBuildSrc(sourcePath: String) {
3131
)
3232
println("[DONE] copied $sourcePath")
3333
}
34+
35+
plugins {
36+
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
37+
}

shared/build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ android {
190190
buildFeatures {
191191
buildConfig = true
192192
}
193+
194+
dependencies {
195+
coreLibraryDesugaring(deps.desugarJdkLibs)
196+
add("kspCommonMainMetadata", deps.dagger.hiltAndroidCompiler)
197+
add("kspAndroid", deps.dagger.hiltAndroidCompiler)
198+
}
193199
}
194200

195201
hilt {
@@ -222,12 +228,6 @@ tasks.withType<KotlinNativeLink>()
222228
}
223229
}
224230

225-
dependencies {
226-
coreLibraryDesugaring(deps.desugarJdkLibs)
227-
add("kspCommonMainMetadata", deps.dagger.hiltAndroidCompiler)
228-
add("kspAndroid", deps.dagger.hiltAndroidCompiler)
229-
}
230-
231231
dependencies {
232232
configurations
233233
.filter { it.name.startsWith("ksp") && it.name.contains("Test") }

0 commit comments

Comments
 (0)