Commit 84d93999 authored by Tankred Hase's avatar Tankred Hase

Patch build.gradle files to use libv8.so instead of libjsc.so

parent 4981cf97
......@@ -137,6 +137,10 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
// Make sure libjsc.so does not packed in APK
exclude "**/libjsc.so"
}
}
dependencies {
......@@ -150,6 +154,8 @@ dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
// Add v8-android - prebuilt libv8.so into APK
implementation 'org.chromium:v8-android:+'
addUnimodulesDependencies()
implementation project(":Lndmobile")
......
......@@ -26,8 +26,12 @@ allprojects {
google()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
// Replace AAR from original RN with AAR from react-native-v8
url("$rootDir/../node_modules/react-native-v8/dist")
}
maven {
// prebuilt libv8.so
url("$rootDir/../node_modules/v8-android/dist")
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment