Skip to content

Commit 66ff832

Browse files
committed
Add react-native patch
1 parent 292b56d commit 66ff832

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The maven repo containing android-jsc aar will be available at `LOCAL_WORKDIR_PA
4646

4747
## How to use it with React Native
4848

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)
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 [this patch](./patches/react-native.patch).
5050

5151
## Testing
5252

patches/react-native.patch

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle
2+
index cebce68f6..4b79f631f 100644
3+
--- a/ReactAndroid/build.gradle
4+
+++ b/ReactAndroid/build.gradle
5+
@@ -271,6 +271,12 @@ android {
6+
}
7+
}
8+
9+
+repositories {
10+
+ maven {
11+
+ url "LOCAL_WORKDIR_PATH/lib/android"
12+
+ }
13+
+}
14+
+
15+
dependencies {
16+
compile fileTree(dir: 'src/main/third-party/java/infer-annotations/', include: ['*.jar'])
17+
compile 'javax.inject:javax.inject:1'
18+
@@ -284,7 +290,7 @@ dependencies {
19+
compile 'com.squareup.okhttp3:okhttp-urlconnection:3.4.1'
20+
compile 'com.squareup.okhttp3:okhttp-ws:3.4.1'
21+
compile 'com.squareup.okio:okio:1.9.0'
22+
- compile 'org.webkit:android-jsc:r174650'
23+
+ compile "org.webkit:android-jsc:+"
24+
25+
testCompile "junit:junit:${JUNIT_VERSION}"
26+
testCompile "org.powermock:powermock-api-mockito:${POWERMOCK_VERSION}"

0 commit comments

Comments
 (0)