@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.
package/android/build.gradle
CHANGED
@@ -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
|
-
|
133
|
-
|
135
|
+
implementation 'com.umeng.umsdk:common:9.6.3'
|
136
|
+
implementation 'com.umeng.umsdk:asms:1.8.0'
|
134
137
|
}
|
@@ -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) {
|