@op-engineering/op-sqlite 2.0.5 → 2.0.6

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.
@@ -8,6 +8,10 @@ import java.util.HashMap;
8
8
  import java.util.Map;
9
9
 
10
10
  class OPSQLiteModule extends ReactContextBaseJavaModule {
11
+ static {
12
+ System.loadLibrary("op-sqlite");
13
+ }
14
+
11
15
  public static final String NAME = "OPSQLite";
12
16
 
13
17
  public OPSQLiteModule(ReactApplicationContext context) {
@@ -42,7 +46,6 @@ class OPSQLiteModule extends ReactContextBaseJavaModule {
42
46
  @ReactMethod(isBlockingSynchronousMethod = true)
43
47
  public boolean install() {
44
48
  try {
45
- System.loadLibrary("op-sqlite");
46
49
  OPSQLiteBridge.instance.install(getReactApplicationContext());
47
50
  return true;
48
51
  } catch (Exception exception) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@op-engineering/op-sqlite",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Next generation SQLite for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",