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.
2 parents 83aaf5c + 77ffd29 commit 7320969Copy full SHA for 7320969
android/build.gradle
@@ -5,6 +5,13 @@ def safeExtGet(prop, fallback) {
5
}
6
7
android {
8
+
9
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
10
+ // Check AGP version for backward compatibility w/react-native versions still on gradle plugin 6
11
+ if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
12
+ namespace "com.ianlin.RNCarrierInfo"
13
+ }
14
15
compileSdkVersion safeExtGet('compileSdkVersion', 28)
16
17
defaultConfig {
0 commit comments