Skip to content

Commit cba9e53

Browse files
committed
test(e2e, android): fix build using "official" workaround
1 parent 8fdb7f7 commit cba9e53

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/android/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,18 @@ buildscript {
3939
}
4040
}
4141

42+
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
43+
4244
allprojects {
4345
println "${project.name} ${projectDir} ${rootDir}"
4446

47+
48+
configurations.all {
49+
resolutionStrategy {
50+
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
51+
}
52+
}
53+
4554
repositories {
4655
maven {
4756
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm

0 commit comments

Comments
 (0)