Skip to content

Commit 37aee04

Browse files
authored
Fix Android build: lock rnn version and add exclusiveContent to build.gradle (#2092)
1 parent 88b3abf commit 37aee04

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

android/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ buildscript {
3333

3434
allprojects {
3535
repositories {
36+
exclusiveContent {
37+
// We get React Native's Android binaries exclusively through npm,
38+
// from a local Maven repo inside node_modules/react-native/.
39+
// (The use of exclusiveContent prevents looking elsewhere like Maven Central
40+
// and potentially getting a wrong version.)
41+
filter {
42+
includeGroup "com.facebook.react"
43+
}
44+
forRepository {
45+
maven {
46+
url "$rootDir/../node_modules/react-native/android"
47+
}
48+
}
49+
}
3650
mavenCentral {
3751
// We don't want to fetch react-native from Maven Central as there are
3852
// older versions over there.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"react": "17.0.2",
7474
"react-component-driver": "^0.10.0",
7575
"react-native": "0.68.3",
76-
"react-native-navigation": "^7.29.0",
76+
"react-native-navigation": "7.30.0",
7777
"react-recipes": "^1.4.0",
7878
"react-test-renderer": "^17.0.2",
7979
"reassure": "^0.4.1",

0 commit comments

Comments
 (0)