File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ This project is based on [facebook/android-jsc](https://github.com/facebook/andr
23
23
## Build instructions
24
24
25
25
1 . Clone this repo
26
- 1 . Update the config section under ` package.json ` to the desired build configuration
27
- 1 . ` npm run download ` : downloads all needed sources
28
- 1 . ` npm run start ` : builds jsc (this might take some time...)
26
+ 2 . ` npm run clean ` will clean everything (artifacts, downloaded sources)
27
+ 3 . Update the config section under ` package.json ` to the desired build configuration
28
+ 4 . Update patches if needed (don't forget to update the ` printVersion ` patch in jsc.patch)
29
+ 5 . ` npm run download ` : downloads all needed sources
30
+ 6 . ` npm run start ` : builds jsc (this might take some time...)
29
31
30
32
The zipfile containing the android-jsc AAR will be available at ` /dist ` .
31
33
The library is packaged as a local Maven repository containing AAR files that include the binaries.
@@ -36,6 +38,8 @@ JSC library built using this project is distributed over npm: [npm/jsc-android](
36
38
The library is packaged as a local Maven repository containing AAR files that include the binaries.
37
39
Please refer to the section below in order to learn how your app can consume this format.
38
40
41
+ On load, JSC prints the version out to logcat, under "JavaScriptCore.Version" tag.
42
+
39
43
## How to use it with my React Native app
40
44
41
45
Follow steps below in order for your React Native app to use new version of JSC VM on android:
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ diff -aur target-org/webkit/Source/JavaScriptCore/API/JSBase.cpp target/webkit/S
258
258
+ extern "C" int __android_log_print(int prio, const char *tag, const char *fmt, ...);
259
259
+ __attribute__((constructor))
260
260
+ void printVersion() {
261
- + __android_log_print(3, "JavaScriptCore- Version", "%s", "224109.1.0");
261
+ + __android_log_print(3, "JavaScriptCore. Version", "%s", "224109.1.0");
262
262
+ }
263
263
diff -aur target-org/webkit/Source/JavaScriptCore/CMakeLists.txt target/webkit/Source/JavaScriptCore/CMakeLists.txt
264
264
--- target-org/webkit/Source/JavaScriptCore/CMakeLists.txt 2017-10-16 15:19:26.000000000 +0300
You can’t perform that action at this time.
0 commit comments