@norcy/react-native-toolkit 0.1.150 → 0.1.151

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.
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Norcy Toolkit - Common Android Dependencies
3
+ *
4
+ * 提供通用的 Android 依赖管理函数
5
+ * 包含 React Native 基础依赖、AndroidX、友盟统计等
6
+ */
7
+
8
+ /**
9
+ * 应用通用依赖
10
+ *
11
+ * @param targetProject 当前项目
12
+ * @param enableHermes 是否启用 Hermes 引擎
13
+ * @param jscFlavor JSC 的 flavor (如果不使用 Hermes)
14
+ */
15
+ ext.applyNorcyCommonDependencies = { targetProject, enableHermes, jscFlavor ->
16
+ targetProject.dependencies {
17
+ // 基础依赖
18
+ implementation fileTree(dir: "libs", include: ["*.jar"])
19
+
20
+ // React Native 核心
21
+ //noinspection GradleDynamicVersion
22
+ implementation "com.facebook.react:react-native:0.62.2.9.1" // From node_modules
23
+
24
+ // AndroidX
25
+ implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
26
+
27
+ // MultiDex
28
+ implementation 'com.android.support:multidex:2.0.1'
29
+
30
+ // 友盟统计
31
+ implementation 'com.umeng.umsdk:common:9.6.3' // 必选
32
+ implementation 'com.umeng.umsdk:asms:1.8.0' // 必选
33
+ implementation 'com.umeng.umsdk:uyumao:1.1.2' // 高级运营分析功能依赖库
34
+
35
+ // Toolkit 相关的通用项目依赖
36
+ implementation targetProject.project(':react-native-splash-screen')
37
+ implementation targetProject.project(':react-native-blob-util')
38
+
39
+ // JavaScript 引擎依赖
40
+ if (enableHermes) {
41
+ def hermesPath = "../../node_modules/hermes-engine/android/"
42
+ debugImplementation files(hermesPath + "hermes-debug.aar")
43
+ releaseImplementation files(hermesPath + "hermes-release.aar")
44
+ } else {
45
+ implementation jscFlavor
46
+ }
47
+ }
48
+ }
49
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norcy/react-native-toolkit",
3
- "version": "0.1.150",
3
+ "version": "0.1.151",
4
4
  "description": "My Toolkit",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",