File tree Expand file tree Collapse file tree 4 files changed +4
-31
lines changed
packages/create-react-native-library/templates/native-common Expand file tree Collapse file tree 4 files changed +4
-31
lines changed Original file line number Diff line number Diff line change @@ -34,30 +34,13 @@ def getExtOrIntegerDefault(name) {
34
34
return rootProject. ext. has(name) ? rootProject. ext. get(name) : (project. properties[" <%- project.name -%>_" + name]). toInteger()
35
35
}
36
36
37
- def supportsNamespace () {
38
- def parsed = com.android.Version . ANDROID_GRADLE_PLUGIN_VERSION . tokenize(' .' )
39
- def major = parsed[0 ]. toInteger()
40
- def minor = parsed[1 ]. toInteger()
41
-
42
- // Namespace support was added in 7.3.0
43
- return (major == 7 && minor >= 3 ) || major >= 8
44
- }
45
-
46
37
android {
47
- if (supportsNamespace()) {
48
38
< % if (project. moduleConfig === ' nitro-modules' ) { -% >
49
- namespace " com.margelo.nitro.<%- project.package -%>"
39
+ namespace " com.margelo.nitro.<%- project.package -%>"
50
40
< % } else { -% >
51
- namespace " com.<%- project.package -%>"
41
+ namespace " com.<%- project.package -%>"
52
42
< % } -% >
53
43
54
- sourceSets {
55
- main {
56
- manifest. srcFile " src/main/AndroidManifestNew.xml"
57
- }
58
- }
59
- }
60
-
61
44
compileSdkVersion getExtOrIntegerDefault(" compileSdkVersion" )
62
45
63
46
defaultConfig {
Original file line number Diff line number Diff line change 1
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" com.<%- project.package -%>" >
1
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
3
2
</manifest >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,11 +25,4 @@ Pod::Spec.new do |s|
25
25
add_nitrogen_files(s)
26
26
<% } -%>
27
27
28
- # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
29
- # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
30
- if respond_to?(:install_modules_dependencies, true)
31
- install_modules_dependencies(s)
32
- else
33
- s.dependency "React-Core"
34
- end
35
- end
28
+ install_modules_dependencies(s)
You can’t perform that action at this time.
0 commit comments