mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-14 03:16:24 +00:00
Remove v8
This commit is contained in:
parent
2596ab5c28
commit
d83da82629
@ -9,13 +9,10 @@ import com.facebook.react.ReactNativeHost;
|
|||||||
import com.facebook.react.ReactPackage;
|
import com.facebook.react.ReactPackage;
|
||||||
import com.facebook.react.config.ReactFeatureFlags;
|
import com.facebook.react.config.ReactFeatureFlags;
|
||||||
import com.facebook.soloader.SoLoader;
|
import com.facebook.soloader.SoLoader;
|
||||||
import com.facebook.react.bridge.JavaScriptExecutorFactory;
|
|
||||||
import com.facebook.react.modules.systeminfo.AndroidInfoHelpers;
|
|
||||||
import android.webkit.WebView;
|
import android.webkit.WebView;
|
||||||
import com.robosats.newarchitecture.MainApplicationReactNativeHost;
|
import com.robosats.newarchitecture.MainApplicationReactNativeHost;
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.csie.kudo.reactnative.v8.executor.V8ExecutorFactory;
|
|
||||||
|
|
||||||
public class MainApplication extends Application implements ReactApplication {
|
public class MainApplication extends Application implements ReactApplication {
|
||||||
|
|
||||||
@ -39,15 +36,6 @@ public class MainApplication extends Application implements ReactApplication {
|
|||||||
protected String getJSMainModuleName() {
|
protected String getJSMainModuleName() {
|
||||||
return "index";
|
return "index";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected JavaScriptExecutorFactory getJavaScriptExecutorFactory() {
|
|
||||||
return new V8ExecutorFactory(
|
|
||||||
getApplicationContext(),
|
|
||||||
getPackageName(),
|
|
||||||
AndroidInfoHelpers.getFriendlyDeviceName(),
|
|
||||||
getUseDeveloperSupport());
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
private final ReactNativeHost mNewArchitectureNativeHost =
|
private final ReactNativeHost mNewArchitectureNativeHost =
|
||||||
|
@ -20,6 +20,14 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
maven {
|
||||||
|
// Replace AAR from original RN with AAR from react-native-v8
|
||||||
|
url("$rootDir/../node_modules/react-native-v8/dist")
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
// prebuilt libv8android.so
|
||||||
|
url("$rootDir/../node_modules/v8-android/dist")
|
||||||
|
}
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
4
mobile/package-lock.json
generated
4
mobile/package-lock.json
generated
@ -14,9 +14,7 @@
|
|||||||
"react-native": "^0.71.8",
|
"react-native": "^0.71.8",
|
||||||
"react-native-encrypted-storage": "^4.0.3",
|
"react-native-encrypted-storage": "^4.0.3",
|
||||||
"react-native-tor": "^0.1.8",
|
"react-native-tor": "^0.1.8",
|
||||||
"react-native-v8": "^2.1.3",
|
"react-native-webview": "^12.1.0"
|
||||||
"react-native-webview": "^12.1.0",
|
|
||||||
"v8-android-nointl": "^11.110.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.21.4",
|
"@babel/core": "^7.21.4",
|
||||||
|
@ -18,9 +18,7 @@
|
|||||||
"react-native": "^0.71.8",
|
"react-native": "^0.71.8",
|
||||||
"react-native-encrypted-storage": "^4.0.3",
|
"react-native-encrypted-storage": "^4.0.3",
|
||||||
"react-native-tor": "^0.1.8",
|
"react-native-tor": "^0.1.8",
|
||||||
"react-native-v8": "^2.1.3",
|
"react-native-webview": "^12.1.0"
|
||||||
"react-native-webview": "^12.1.0",
|
|
||||||
"v8-android-nointl": "^11.110.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.21.4",
|
"@babel/core": "^7.21.4",
|
||||||
|
Loading…
Reference in New Issue
Block a user