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
0b111fb89c
commit
54381898cd
1 changed files with 25 additions and 0 deletions
|
@ -57,3 +57,28 @@ allprojects {
|
|||
maven { url 'https://www.jitpack.io' }
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
afterEvaluate { project ->
|
||||
if (project.hasProperty("android")) {
|
||||
android {
|
||||
buildToolsVersion "34.0.0"
|
||||
compileSdkVersion 33
|
||||
defaultConfig {
|
||||
minSdkVersion 24
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check if the project name is 'rn-ldk' before applying the Kotlin compile options
|
||||
if (project.name == 'rn-ldk') {
|
||||
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