We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b64ae commit e3c4aaeCopy full SHA for e3c4aae
android/build.gradle
@@ -58,13 +58,16 @@ afterEvaluate {
58
android {
59
compileSdkVersion safeExtGet("compileSdkVersion", 33)
60
61
- compileOptions {
62
- sourceCompatibility JavaVersion.VERSION_11
63
- targetCompatibility JavaVersion.VERSION_11
64
- }
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
+ if (agpVersion.tokenize('.')[0].toInteger() < 8) {
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_11
65
+ targetCompatibility JavaVersion.VERSION_11
66
+ }
67
- kotlinOptions {
- jvmTarget = JavaVersion.VERSION_11.majorVersion
68
+ kotlinOptions {
69
+ jvmTarget = JavaVersion.VERSION_11.majorVersion
70
71
}
72
73
namespace "uk.co.playerdata.reactnativemcumanager"
0 commit comments