Skip to content

Commit 419ca54

Browse files
committed
Update distribution section.
1 parent 78c740e commit 419ca54

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,17 @@ The Maven repo containing the android-jsc AAR will be available at `./lib/androi
3939

4040
## Distribution
4141

42-
(TODO)
42+
Pre-build version of the JSC library built using this project is distributed over npm: [npm/jsc-android](https://www.npmjs.com/package/jsc-android).
43+
44+
The library is packaged as a local Maven repository containing AAR files that include the binaries. In order for this format to be consumed by the React Native app one need to add `jsc-android` in `package.json` and also change `android/build.gradle` such that local Maven repo is added to the list of available repositories:
45+
```diff
46+
+ maven {
47+
+ // Local Maven repo containing AARs with JSC library built for Android
48+
+ url "$rootDir/../node_modules/jsc-android/android"
49+
+ }
50+
```
51+
52+
Once that's done Gradle during the build step should be able to locate `android-jsc` AAR installed under `node_modules/jsc-android` that is defined as a dependency of the react-native android module [here](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle#L289).
4353

4454
## How to use it with React Native
4555

0 commit comments

Comments
 (0)