File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 22buildscript {
33 repositories {
44 google()
5- jcenter ()
5+ mavenCentral ()
66 }
77
88 dependencies {
@@ -18,12 +18,32 @@ def getExtOrIntegerDefault(name) {
1818 return rootProject. ext. has(name) ? rootProject. ext. get(name) : (project. properties[' RNImageEditor_' + name]). toInteger()
1919}
2020
21+ def supportsNamespace () {
22+ def parsed = com.android.Version . ANDROID_GRADLE_PLUGIN_VERSION . tokenize(' .' )
23+ def major = parsed[0 ]. toInteger()
24+ def minor = parsed[1 ]. toInteger()
25+
26+ // Namespace support was added in 7.3.0
27+ return (major == 7 && minor >= 3 ) || major >= 8
28+ }
29+
30+
2131apply plugin : ' com.android.library'
2232
2333android {
2434 compileSdkVersion getExtOrIntegerDefault(' compileSdkVersion' )
2535 buildToolsVersion getExtOrDefault(' buildToolsVersion' )
2636
37+ if (supportsNamespace()) {
38+ namespace " com.reactnativecommunity.imageeditor"
39+
40+ sourceSets {
41+ main {
42+ manifest. srcFile " src/main/AndroidManifestNew.xml"
43+ }
44+ }
45+ }
46+
2747 defaultConfig {
2848 minSdkVersion getExtOrIntegerDefault(' minSdkVersion' )
2949 targetSdkVersion getExtOrIntegerDefault(' targetSdkVersion' )
Original file line number Diff line number Diff line change 1+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
2+ </manifest >
You can’t perform that action at this time.
0 commit comments