1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-14 18:27:44 +02:00

Added JSC to improve performances of Android app

This commit is contained in:
Laurent Cozic 2019-06-14 18:37:46 +01:00
parent 1a7a87e170
commit 68cde202a4
4 changed files with 26 additions and 11 deletions

View File

@ -139,9 +139,14 @@ android {
}
}
}
packagingOptions {
pickFirst '**/libjsc.so'
pickFirst '**/libc++_shared.so'
}
}
dependencies {
implementation "org.webkit:android-jsc:r241213"
implementation project(':react-native-webview')
compile project(':react-native-push-notification')
implementation (project(':react-native-camera')) {

View File

@ -32,18 +32,22 @@ allprojects {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 26
buildToolsVersion "27.0.3"
}
maven {
url "$rootDir/../node_modules/jsc-android/dist"
}
}
}
// TODO: Maybe remove this (forgot why it was needed - probably to make some module work)
// subprojects {
// afterEvaluate {project ->
// if (project.hasProperty("android")) {
// android {
// compileSdkVersion 28
// buildToolsVersion "28.0.3"
// }
// }
// }
// }

View File

@ -3704,6 +3704,11 @@
"esprima": "^4.0.0"
}
},
"jsc-android": {
"version": "241213.1.0",
"resolved": "https://registry.npmjs.org/jsc-android/-/jsc-android-241213.1.0.tgz",
"integrity": "sha512-AH8NYyMNLNhcUEF97QbMxPNLNW+oiSBlvm1rsMNzgJ1d5TQzdh/AOJGsxeeESp3m9YIWGLCgUvGTVoVLs0p68A=="
},
"jsesc": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz",

View File

@ -13,6 +13,7 @@
"base-64": "^0.1.0",
"buffer": "^5.0.8",
"diacritics": "^1.3.0",
"jsc-android": "241213.1.0",
"diff-match-patch": "^1.0.4",
"events": "^1.1.1",
"form-data": "^2.1.4",