fix android6 jni library loading

This commit is contained in:
Adrian Tiberius 2016-09-10 18:08:25 +03:00
parent 64e00a0016
commit 2b54427a25
2 changed files with 2 additions and 7 deletions

View File

@ -16,7 +16,8 @@ public class StatusPackage implements ReactPackage {
@Override @Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) { public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>(); List<NativeModule> modules = new ArrayList<>();
System.loadLibrary("statusgoraw");
System.loadLibrary("statusgo");
modules.add(new StatusModule(reactContext)); modules.add(new StatusModule(reactContext));
return modules; return modules;

View File

@ -58,11 +58,6 @@ public class StatusService extends Service {
sendReply(applicationMessenger, replyMessage); sendReply(applicationMessenger, replyMessage);
} }
static {
System.loadLibrary("statusgoraw");
System.loadLibrary("statusgo");
}
@Nullable @Nullable
@Override @Override
public IBinder onBind(Intent intent) { public IBinder onBind(Intent intent) {
@ -73,7 +68,6 @@ public class StatusService extends Service {
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
} }
@Override @Override