Update build.gradle

This commit is contained in:
Marcos Rodriguez Velez 2024-07-19 19:57:39 -04:00
parent 88d1e3f827
commit 5e2613917c
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7

View file

@ -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
}
}
}
}
}