You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-2Lines changed: 36 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,29 @@ This project is based on [facebook/android-jsc](https://github.com/facebook/andr
8
8
9
9
## Requirements
10
10
11
-
You can try the provided Docker image.
12
-
To use it prefix each command with `docker run -vLOCAL_WORKDIR_PATH:/bitrise/src --rm swmansion/jsc-android-buildscripts`.
11
+
12
+
There is a huge list of requirements that needs to be installed on your system in order to be able to cross-compile JSC for android. To simplify the process of setting up the environment we provide a docker image that comes with everything you will need. If you decide to use our docker the only thing you need to do is to prefix each command with this:
13
+
```sh
14
+
docker run -vLOCAL_WORKDIR_PATH:/bitrise/src --rm swmansion/jsc-android-buildscripts
15
+
```
16
+
17
+
##### Example:
18
+
19
+
```sh
20
+
docker run -vLOCAL_WORKDIR_PATH:/bitrise/src --rm swmansion/jsc-android-buildscripts ./fetch_sources.sh
21
+
```
22
+
23
+
#### Don't want to use docker
24
+
25
+
As mentioned the list of dependencies is huge, we tried to list everything what's needed below:
@@ -24,10 +42,26 @@ The maven repo containing android-jsc aar will be available at `LOCAL_WORKDIR_PA
24
42
25
43
## Distribution
26
44
45
+
(TODO)
46
+
27
47
## How to use it with React Native
28
48
49
+
We will be working on getting react-native core updated in order to use new version of JSC. Once that gets approved the only thing you will need to do is to update your RN version! Until then you can fork react-native and patch it with the following patch: (TODO)
50
+
29
51
## Testing
30
52
53
+
As a part of this project we provide a patch to react-native source code that allows for measuring react native application cold-start time. The methodology behind this test is to modify the part of the code that is responsible for loading JS bundle into the JS VM such that we measure and store the execution time, then we modify the process of instantiating the bridge in a way that allows for running in multiple times. To learn more about how the perf tests work and how to perform them refer to [this document](../blob/master/TESTING). Results for Samsung Galaxy S4 are presented below:
0 commit comments