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 2
2
buildscript {
3
3
repositories {
4
4
google()
5
- jcenter ()
5
+ mavenCentral ()
6
6
}
7
7
8
8
dependencies {
@@ -18,12 +18,32 @@ def getExtOrIntegerDefault(name) {
18
18
return rootProject. ext. has(name) ? rootProject. ext. get(name) : (project. properties[' RNImageEditor_' + name]). toInteger()
19
19
}
20
20
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
+
21
31
apply plugin : ' com.android.library'
22
32
23
33
android {
24
34
compileSdkVersion getExtOrIntegerDefault(' compileSdkVersion' )
25
35
buildToolsVersion getExtOrDefault(' buildToolsVersion' )
26
36
37
+ if (supportsNamespace()) {
38
+ namespace " com.reactnativecommunity.imageeditor"
39
+
40
+ sourceSets {
41
+ main {
42
+ manifest. srcFile " src/main/AndroidManifestNew.xml"
43
+ }
44
+ }
45
+ }
46
+
27
47
defaultConfig {
28
48
minSdkVersion getExtOrIntegerDefault(' minSdkVersion' )
29
49
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