@norcy/react-native-toolkit 0.1.146 → 0.1.148

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.
@@ -128,7 +128,10 @@ dependencies {
128
128
  api 'com.facebook.react:react-native:+'
129
129
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
130
130
 
131
+ // react-native-splash-screen 强制依赖 - 宿主 App 必须安装
132
+ implementation project(':react-native-splash-screen')
133
+
131
134
  // 友盟统计
132
- compileOnly 'com.umeng.umsdk:common:9.6.3'
133
- compileOnly 'com.umeng.umsdk:asms:1.8.0'
135
+ implementation 'com.umeng.umsdk:common:9.6.3'
136
+ implementation 'com.umeng.umsdk:asms:1.8.0'
134
137
  }
@@ -0,0 +1,2 @@
1
+ include ':react-native-splash-screen'
2
+ project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android')
@@ -39,4 +39,10 @@ public abstract class BaseToolkitActivity extends ReactActivity {
39
39
  protected Uri getAppLinkData() {
40
40
  return getIntent().getData();
41
41
  }
42
+
43
+ @Override
44
+ protected String getMainComponentName() {
45
+ BaseToolkitApplication app = (BaseToolkitApplication) getApplication();
46
+ return app.getMainComponentName();
47
+ }
42
48
  }
@@ -27,6 +27,9 @@ public abstract class BaseToolkitApplication extends Application implements Reac
27
27
 
28
28
  // 让子类提供友盟统计的 AppKey
29
29
  protected abstract String getUmengAppKey();
30
+
31
+ // 让子类提供主组件名称
32
+ protected abstract String getMainComponentName();
30
33
 
31
34
  protected ReactNativeHost createReactNativeHost() {
32
35
  return new ReactNativeHost(this) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norcy/react-native-toolkit",
3
- "version": "0.1.146",
3
+ "version": "0.1.148",
4
4
  "description": "My Toolkit",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",