1
- [ ![ npm version] ( https://badge.fury.io/js/jsc- android.svg )] ( https://badge.fury.io/js/jsc -android )
2
- [ ![ CircleCI ] ( https://circleci .com/gh/react-native-community/ jsc-android-buildscripts.svg?style=svg )] ( https://circleci.com/gh/react-native-community/jsc-android-buildscripts )
1
+ [ ![ npm version] ( https://badge.fury.io/js/%40kudo-ci%2Fjsc- android.svg )] ( https://badge.fury.io/js/%40kudo-ci%2Fjsc -android )
2
+ ![ GitHub Actions CI ] ( https://github .com/Kudo/ jsc-android-buildscripts/workflows/.github/workflows/build_and_test.yml/badge.svg )
3
3
4
4
# JSC build scripts for Android
5
5
@@ -17,8 +17,8 @@ This project is based on [facebook/android-jsc](https://github.com/facebook/andr
17
17
* Run ` sdkmanager --list ` and install all platforms, tools, buildtool v28.0.3, cmake (android images are not needed)
18
18
* Set ` $ANDROID_HOME ` to the correct path (in ~ /.bashrc or similar)
19
19
* Set ` export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools/bin `
20
- * Android NDK r17c : download from [ NDK Archives] ( https://developer.android.com/ndk/downloads/older_releases.html )
21
- * Set ` export ANDROID_NDK=/path/to/android-ndk-r17c `
20
+ * Android NDK r19c : download from [ NDK Archives] ( https://developer.android.com/ndk/downloads/older_releases.html )
21
+ * Set ` export ANDROID_NDK=/path/to/android-ndk-r19c `
22
22
* Make sure you have Ruby (>2.3), Python (>2.7), Git, SVN, gperf
23
23
24
24
## Build instructions
@@ -36,7 +36,7 @@ The library is packaged as a local Maven repository containing AAR files that in
36
36
37
37
## Distribution
38
38
39
- JSC library built using this project is distributed over npm: [ npm/jsc-android] ( https://www.npmjs.com/package/jsc-android ) .
39
+ JSC library built using this project is distributed over npm: [ npm/@ kudo-ci/ jsc-android] ( https://www.npmjs.com/package/@kudo-ci /jsc-android ) .
40
40
The library is packaged as a local Maven repository containing AAR files that include the binaries.
41
41
Please refer to the section below in order to learn how your app can consume this format.
42
42
@@ -48,27 +48,29 @@ Follow steps below in order for your React Native app to use new version of JSC
48
48
49
49
### For React Native version 0.60 and newer
50
50
51
- 1 . Update ` jsc-android ` :
51
+ 1 . Use ` @kudo-ci/jsc-android ` to override stock ` jsc-android ` :
52
52
53
53
```
54
- yarn add jsc-android
54
+ yarn add jsc-android@npm:@kudo-ci/jsc-android
55
55
56
56
# Or if you would like to try latest version
57
- # yarn add 'jsc-android@canary`
57
+ # yarn add 'jsc-android@npm:@kudo-ci/jsc-android@next'
58
58
59
59
```
60
60
61
61
2 . You're done, rebuild your app and enjoy updated version of JSC on android!
62
62
63
63
### For React Native version 0.59
64
64
65
- 1 . Add ` jsc-android ` to the "dependencies" section in your ` package.json ` :
66
- ``` diff
67
- dependencies {
68
- + "jsc-android": "241213.x.x",
65
+ 1 . Add ` @kudo-ci/jsc-android ` :
66
+
69
67
```
68
+ yarn add jsc-android@npm:@kudo-ci/jsc-android
70
69
71
- then run ` npm install ` or ` yarn ` (depending on which npm client you use) in order for the new dependency to be installed in ` node_modules `
70
+ # Or if you would like to try latest version
71
+ # yarn add 'jsc-android@npm:@kudo-ci/jsc-android@next'
72
+
73
+ ```
72
74
73
75
2 . Modify ` android/build.gradle ` file to add the new local maven repository packaged in the ` jsc-android ` package to the search path:
74
76
``` diff
@@ -94,7 +96,7 @@ allprojects {
94
96
95
97
dependencies {
96
98
+ // Make sure to put android-jsc at the top
97
- + implementation "org.webkit:android-jsc:r241213 "
99
+ + implementation "org.webkit:android-jsc:+ "
98
100
+
99
101
compile fileTree(dir: "libs", include: ["*.jar"])
100
102
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
@@ -118,13 +120,15 @@ android {
118
120
119
121
### For React Native version 0.58 below
120
122
121
- 1 . Add ` jsc-android ` to the "dependencies" section in your ` package.json ` :
122
- ``` diff
123
- dependencies {
124
- + "jsc-android": "241213.x.x",
123
+ 1 . Add ` @kudo-ci/jsc-android ` :
124
+
125
125
```
126
+ yarn add jsc-android@npm:@kudo-ci/jsc-android
126
127
127
- then run ` npm install ` or ` yarn ` (depending which npm client you use) in order for the new dependency to be installed in ` node_modules `
128
+ # Or if you would like to try latest version
129
+ # yarn add 'jsc-android@npm:@kudo-ci/jsc-android@next'
130
+
131
+ ```
128
132
129
133
2 . Modify ` android/build.gradle ` file to add new local maven repository packaged in the ` jsc-android ` package to the search path:
130
134
``` diff
@@ -151,7 +155,7 @@ allprojects {
151
155
152
156
+ configurations.all {
153
157
+ resolutionStrategy {
154
- + force 'org.webkit:android-jsc:r241213 '
158
+ + force 'org.webkit:android-jsc:+ '
155
159
+ }
156
160
+ }
157
161
@@ -189,7 +193,7 @@ For React Native version 0.59, replace original artifact id with `android-jsc-in
189
193
190
194
dependencies {
191
195
+ // Make sure to put android-jsc at the the first
192
- + implementation "org.webkit:android-jsc-intl:r241213 "
196
+ + implementation "org.webkit:android-jsc-intl:+ "
193
197
+
194
198
compile fileTree(dir: "libs", include: ["*.jar"])
195
199
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
0 commit comments