We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c21be8 commit 7399492Copy full SHA for 7399492
android/build.gradle
@@ -36,7 +36,11 @@ def getExtOrIntegerDefault(name) {
36
37
android {
38
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
39
- namespace = "com.reactnativepagerview"
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
40
+ if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
41
+ namespace = "com.reactnativepagerview"
42
+ }
43
+
44
defaultConfig {
45
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
46
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
android/src/main/AndroidManifest.xml
@@ -1,3 +1,4 @@
1
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
package="com.reactnativepagerview">
3
4
</manifest>
0 commit comments