File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
packages/react-native-performance/android Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ android {
50
50
compileSdkVersion safeExtGet(' compileSdkVersion' , 31 )
51
51
buildToolsVersion safeExtGet(' buildToolsVersion' , " 31.0.0" )
52
52
53
+ def agpVersion = com.android.Version . ANDROID_GRADLE_PLUGIN_VERSION . tokenize(' .' )[0 ]. toInteger()
54
+ if (agpVersion >= 7 ) {
55
+ namespace ' com.oblador.performance'
56
+ }
57
+
53
58
defaultConfig {
54
59
minSdkVersion safeExtGet(' minSdkVersion' , 21 )
55
60
targetSdkVersion safeExtGet(' targetSdkVersion' , 31 )
@@ -73,9 +78,11 @@ android {
73
78
}
74
79
}
75
80
76
- compileOptions {
77
- sourceCompatibility JavaVersion . VERSION_1_8
78
- targetCompatibility JavaVersion . VERSION_1_8
81
+ if (agpVersion < 8 ) {
82
+ compileOptions {
83
+ sourceCompatibility JavaVersion . VERSION_1_8
84
+ targetCompatibility JavaVersion . VERSION_1_8
85
+ }
79
86
}
80
87
}
81
88
You can’t perform that action at this time.
0 commit comments