File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ // As of today (Oct 23) react-native is broken on Android
4
+ // We're fixing this by patching the repository order in the main gradle file of the Android project
5
+ // See:
6
+ // - https://github.com/facebook/react-native/pull/21910
7
+ // - https://github.com/facebook/react-native/issues/21907#issuecomment-432319128
8
+
9
+ const fs = require ( 'fs' )
10
+ const path = require ( 'path' )
11
+
12
+ const gradlePath = path . resolve ( __dirname , 'project/android/build.gradle' )
13
+
14
+ fs . writeFileSync (
15
+ gradlePath ,
16
+ fs
17
+ . readFileSync ( gradlePath , 'utf-8' )
18
+ . replace ( / g o o g l e \( \) / g, '' )
19
+ . replace ( / j c e n t e r \( \) / g, 'google()\njcenter()' )
20
+ )
Original file line number Diff line number Diff line change @@ -32,3 +32,5 @@ analytics
32
32
.setup('$SEGMENT_WRITE_TOKEN ')
33
33
.then(() => console.log('Analytics ready'))
34
34
EOF
35
+
36
+ ../android-workaround.js
You can’t perform that action at this time.
0 commit comments