File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ def safeExtGet(prop, fallback) {
23
23
}
24
24
25
25
android {
26
+ // Compatibility for AGP v. <4.2/Gradle 8
27
+ def agpVersion = com.android.Version . ANDROID_GRADLE_PLUGIN_VERSION . tokenize(' .' )[0 ]. toInteger()
28
+ if (agpVersion >= 7 ) {
29
+ namespace ' com.intercom.reactnative'
30
+ }
31
+
26
32
compileSdkVersion safeExtGet(' IntercomReactNative_compileSdkVersion' , 34 )
27
33
defaultConfig {
28
34
minSdkVersion safeExtGet(' IntercomReactNative_minSdkVersion' , 21 )
@@ -40,9 +46,12 @@ android {
40
46
lintOptions {
41
47
disable ' GradleCompatible'
42
48
}
43
- compileOptions {
44
- sourceCompatibility JavaVersion . VERSION_1_8
45
- targetCompatibility JavaVersion . VERSION_1_8
49
+
50
+ if (agpVersion < 8 ) {
51
+ compileOptions {
52
+ sourceCompatibility JavaVersion . VERSION_1_8
53
+ targetCompatibility JavaVersion . VERSION_1_8
54
+ }
46
55
}
47
56
}
48
57
Original file line number Diff line number Diff line change 1
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" com.intercom.reactnative" >
1
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
3
2
4
3
</manifest >
You can’t perform that action at this time.
0 commit comments