mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 02:58:28 +01:00
Update build.gradle
This commit is contained in:
parent
a402c7a4d6
commit
457c983455
1 changed files with 6 additions and 9 deletions
|
@ -81,16 +81,13 @@ subprojects {
|
|||
|
||||
// Apply the JVM target configuration only to 'rn-ldk' and 'react-native-true-sheet'
|
||||
if (project.name == 'rn-ldk' || project.name == 'react-native-true-sheet') {
|
||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = "11"
|
||||
}
|
||||
kotlin {
|
||||
jvmToolchain {
|
||||
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11))
|
||||
}
|
||||
}
|
||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
|
||||
if (project.plugins.hasPlugin("com.android.application") || project.plugins.hasPlugin("com.android.library")) {
|
||||
kotlinOptions.jvmTarget = android.compileOptions.sourceCompatibility
|
||||
} else {
|
||||
kotlinOptions.jvmTarget = sourceCompatibility
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue