@norcy/react-native-toolkit 0.2.33 → 0.2.34

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 = "29.0.3"
2
+ ext.buildToolsVersion = "33.0.0"
3
3
  ext.minSdkVersion = 21
4
4
  ext.compileSdkVersion = 33
5
5
  ext.targetSdkVersion = 33
6
- ext.kotlinVersion = "1.6.0"
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.ext.react.get("enableHermes", false)
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
- //noinspection GradleDynamicVersion
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 'com.android.support:multidex:2.0.1'
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
- def hermesPath = "../../node_modules/hermes-engine/android/"
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.VERSION_1_8
94
- targetCompatibility JavaVersion.VERSION_1_8
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
- lintOptions {
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)
@@ -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,13 @@ allprojects {
15
13
  mavenCentral()
16
14
  google()
17
15
  }
18
-
19
- configurations.all {
20
- resolutionStrategy {
21
- force "com.facebook.react:react-native:" + '0.62.2.9.1'
22
- force 'androidx.core:core-ktx:1.6.0'
23
- }
24
- }
25
-
16
+
26
17
  afterEvaluate { project ->
27
18
  if (project.hasProperty("android")) {
28
19
  android {
29
20
  compileOptions {
30
- sourceCompatibility JavaVersion.VERSION_1_8
31
- targetCompatibility JavaVersion.VERSION_1_8
21
+ sourceCompatibility JavaVersion.VERSION_11
22
+ targetCompatibility JavaVersion.VERSION_11
32
23
  }
33
24
  }
34
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norcy/react-native-toolkit",
3
- "version": "0.2.33",
3
+ "version": "0.2.34",
4
4
  "private": false,
5
5
  "description": "My Toolkit",
6
6
  "main": "lib/commonjs/index",