@norcy/react-native-toolkit 0.3.4 → 0.3.5

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.
@@ -40,7 +40,7 @@ repositories {
40
40
  }
41
41
 
42
42
  dependencies {
43
- implementation("com.facebook.react:react-android")
43
+ implementation "com.facebook.react:react-android:+"
44
44
 
45
45
  // react-native-splash-screen 强制依赖 - 宿主 App 必须安装
46
46
  implementation project(':react-native-splash-screen')
@@ -8,6 +8,7 @@ import com.facebook.react.ReactPackage;
8
8
  import com.facebook.react.soloader.OpenSourceMergedSoMapping;
9
9
  import com.facebook.soloader.SoLoader;
10
10
 
11
+ import java.io.IOException;
11
12
  import java.util.List;
12
13
 
13
14
  public abstract class BaseToolkitApplication extends Application implements ReactApplication {
@@ -58,7 +59,11 @@ public abstract class BaseToolkitApplication extends Application implements Reac
58
59
  @Override
59
60
  public void onCreate() {
60
61
  super.onCreate();
61
- SoLoader.init(this, OpenSourceMergedSoMapping);
62
+ try {
63
+ SoLoader.init(this, OpenSourceMergedSoMapping.INSTANCE);
64
+ } catch (IOException e) {
65
+ throw new RuntimeException(e);
66
+ }
62
67
  UMengManager.getInstance().setup(this, getUmengAppKey());
63
68
  }
64
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norcy/react-native-toolkit",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "private": false,
5
5
  "description": "My Toolkit",
6
6
  "main": "lib/commonjs/index",