@norcy/react-native-toolkit 0.1.148 → 0.1.150

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.
@@ -39,10 +39,4 @@ 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
- }
48
42
  }
@@ -1,10 +1,7 @@
1
1
  package com.norcy.reactnativetoolkit;
2
2
 
3
3
  import android.app.Application;
4
- import android.content.Context;
5
4
 
6
- import com.facebook.react.BuildConfig;
7
- import com.facebook.react.PackageList;
8
5
  import com.facebook.react.ReactApplication;
9
6
  import com.facebook.react.ReactNativeHost;
10
7
  import com.facebook.react.ReactPackage;
@@ -27,9 +24,6 @@ public abstract class BaseToolkitApplication extends Application implements Reac
27
24
 
28
25
  // 让子类提供友盟统计的 AppKey
29
26
  protected abstract String getUmengAppKey();
30
-
31
- // 让子类提供主组件名称
32
- protected abstract String getMainComponentName();
33
27
 
34
28
  protected ReactNativeHost createReactNativeHost() {
35
29
  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.148",
3
+ "version": "0.1.150",
4
4
  "description": "My Toolkit",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",