@norcy/react-native-toolkit 0.2.33 → 0.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
ext.applyBuildscriptExt = {
|
|
2
|
-
ext.buildToolsVersion = "
|
|
2
|
+
ext.buildToolsVersion = "33.0.0"
|
|
3
3
|
ext.minSdkVersion = 21
|
|
4
4
|
ext.compileSdkVersion = 33
|
|
5
5
|
ext.targetSdkVersion = 33
|
|
6
|
-
ext.
|
|
6
|
+
ext.ndkVersion = "23.1.7779620"
|
|
7
|
+
ext.kotlinVersion = "1.8.0"
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
ext.applyBuildscriptRepos = { handler ->
|
|
@@ -13,3 +14,9 @@ ext.applyBuildscriptRepos = { handler ->
|
|
|
13
14
|
handler.google()
|
|
14
15
|
}
|
|
15
16
|
|
|
17
|
+
ext.applyBuildscriptDependencies = { handler ->
|
|
18
|
+
handler.classpath("com.android.tools.build:gradle")
|
|
19
|
+
handler.classpath("com.facebook.react:react-native-gradle-plugin")
|
|
20
|
+
handler.classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
ext.applyDefaultConfig = { targetProject ->
|
|
2
2
|
targetProject.android {
|
|
3
3
|
compileSdkVersion targetProject.rootProject.ext.compileSdkVersion
|
|
4
|
+
ndkVersion targetProject.rootProject.ext.ndkVersion
|
|
4
5
|
|
|
5
6
|
defaultConfig {
|
|
6
7
|
minSdkVersion targetProject.rootProject.ext.minSdkVersion
|
|
@@ -41,16 +42,15 @@ ext.applyDefaultConfig = { targetProject ->
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
ext.applyCommonDependencies = { targetProject ->
|
|
44
|
-
def enableHermes = targetProject.
|
|
45
|
+
def enableHermes = targetProject.findProperty('hermesEnabled')?.toBoolean() ?: true
|
|
45
46
|
def jscFlavor = 'org.webkit:android-jsc:+'
|
|
46
47
|
|
|
47
48
|
targetProject.dependencies {
|
|
48
49
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
implementation "com.facebook.react:react-native:0.62.2.9.1"
|
|
51
|
+
implementation "com.facebook.react:react-android"
|
|
52
52
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
|
53
|
-
implementation '
|
|
53
|
+
implementation 'androidx.multidex:multidex:2.0.1'
|
|
54
54
|
|
|
55
55
|
implementation 'com.umeng.umsdk:common:9.6.3'
|
|
56
56
|
implementation 'com.umeng.umsdk:asms:1.8.0'
|
|
@@ -60,9 +60,7 @@ ext.applyCommonDependencies = { targetProject ->
|
|
|
60
60
|
implementation targetProject.project(':react-native-blob-util')
|
|
61
61
|
|
|
62
62
|
if (enableHermes) {
|
|
63
|
-
|
|
64
|
-
debugImplementation files(hermesPath + "hermes-debug.aar")
|
|
65
|
-
releaseImplementation files(hermesPath + "hermes-release.aar")
|
|
63
|
+
implementation("com.facebook.react:hermes-android")
|
|
66
64
|
} else {
|
|
67
65
|
implementation jscFlavor
|
|
68
66
|
}
|
|
@@ -90,8 +88,8 @@ ext.applyBuildTypes = { targetProject ->
|
|
|
90
88
|
ext.applyCommonAndroidConfig = { targetProject ->
|
|
91
89
|
targetProject.android {
|
|
92
90
|
compileOptions {
|
|
93
|
-
sourceCompatibility JavaVersion.
|
|
94
|
-
targetCompatibility JavaVersion.
|
|
91
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
92
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
packagingOptions {
|
|
@@ -101,7 +99,7 @@ ext.applyCommonAndroidConfig = { targetProject ->
|
|
|
101
99
|
pickFirst "lib/x86_64/libc++_shared.so"
|
|
102
100
|
}
|
|
103
101
|
|
|
104
|
-
|
|
102
|
+
lint {
|
|
105
103
|
checkReleaseBuilds false
|
|
106
104
|
}
|
|
107
105
|
|
|
@@ -116,11 +114,6 @@ ext.applyCommonAndroidConfig = { targetProject ->
|
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
116
|
}
|
|
119
|
-
|
|
120
|
-
targetProject.tasks.create('copyDownloadableDepsToLibs', Copy) {
|
|
121
|
-
from targetProject.configurations.compile
|
|
122
|
-
into 'libs'
|
|
123
|
-
}
|
|
124
117
|
}
|
|
125
118
|
|
|
126
119
|
ext.applyCommonPlugins = { targetProject ->
|
|
@@ -137,9 +130,6 @@ ext.applyCommonPlugins = { targetProject ->
|
|
|
137
130
|
}
|
|
138
131
|
|
|
139
132
|
ext.applyAll = { targetProject ->
|
|
140
|
-
targetProject.ext.react = [enableHermes: true]
|
|
141
|
-
targetProject.apply from: targetProject.file("../../node_modules/react-native/react.gradle")
|
|
142
|
-
|
|
143
133
|
applyDefaultConfig(targetProject)
|
|
144
134
|
applyBuildTypes(targetProject)
|
|
145
135
|
applyCommonAndroidConfig(targetProject)
|
package/android/root.gradle
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
|
|
2
|
-
|
|
3
1
|
allprojects {
|
|
4
2
|
repositories {
|
|
5
3
|
maven { url 'https://raw.githubusercontent.com/Norcy/maven/master/repository/' }
|
|
@@ -15,20 +13,20 @@ allprojects {
|
|
|
15
13
|
mavenCentral()
|
|
16
14
|
google()
|
|
17
15
|
}
|
|
18
|
-
|
|
16
|
+
|
|
19
17
|
configurations.all {
|
|
20
18
|
resolutionStrategy {
|
|
21
|
-
force
|
|
22
|
-
force 'androidx.
|
|
19
|
+
force 'androidx.viewpager2:viewpager2:1.0.0'
|
|
20
|
+
force 'androidx.annotation:annotation-experimental:1.3.1'
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
|
-
|
|
23
|
+
|
|
26
24
|
afterEvaluate { project ->
|
|
27
25
|
if (project.hasProperty("android")) {
|
|
28
26
|
android {
|
|
29
27
|
compileOptions {
|
|
30
|
-
sourceCompatibility JavaVersion.
|
|
31
|
-
targetCompatibility JavaVersion.
|
|
28
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
29
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
32
|
}
|