mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-15 11:59:21 +01:00
Update build.gradle
This commit is contained in:
parent
88d1e3f827
commit
5e2613917c
1 changed files with 15 additions and 27 deletions
|
@ -27,6 +27,7 @@ buildscript {
|
|||
classpath 'com.google.gms:google-services:4.4.2' // Google Services plugin
|
||||
classpath("com.facebook.react:react-native-gradle-plugin")
|
||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -66,21 +67,8 @@ subprojects {
|
|||
defaultConfig {
|
||||
minSdkVersion 24
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_11
|
||||
targetCompatibility JavaVersion.VERSION_11
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(11))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 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) {
|
||||
if (project.plugins.hasPlugin("com.android.application") || project.plugins.hasPlugin("com.android.library")) {
|
||||
kotlinOptions.jvmTarget = android.compileOptions.sourceCompatibility
|
||||
|
@ -88,6 +76,6 @@ subprojects {
|
|||
kotlinOptions.jvmTarget = sourceCompatibility
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue