Remove v8

This commit is contained in:
Reckless_Satoshi 2023-05-23 04:31:57 -07:00
parent 2596ab5c28
commit d83da82629
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
4 changed files with 10 additions and 18 deletions

View File

@ -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 =

View File

@ -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()
} }

View File

@ -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",

View File

@ -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",