Skip to content

Commit 1959ebd

Browse files
authored
Merge pull request #2 from feoh/copilot/fix-android-build-failure
Fix Android build: align JVM target compatibility for all subprojects
2 parents 57e6b21 + 6c2b27c commit 1959ebd

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

android/build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@ subprojects {
1919
project.evaluationDependsOn(":app")
2020
}
2121

22+
subprojects {
23+
afterEvaluate {
24+
extensions.findByType<com.android.build.gradle.BaseExtension>()?.apply {
25+
compileOptions {
26+
sourceCompatibility = JavaVersion.VERSION_17
27+
targetCompatibility = JavaVersion.VERSION_17
28+
}
29+
}
30+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
31+
kotlinOptions {
32+
jvmTarget = "17"
33+
}
34+
}
35+
}
36+
}
37+
2238
tasks.register<Delete>("clean") {
2339
delete(rootProject.layout.buildDirectory)
2440
}

0 commit comments

Comments
 (0)