@@ -5,13 +5,13 @@ buildscript {
55 apply from : " $buildscriptDir /../test-app-util.gradle"
66
77 repositories {
8- jcenter()
98 google()
9+ jcenter()
1010 }
1111
1212 dependencies {
1313 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion "
14- classpath " com.android.tools.build:gradle:3.6.1 "
14+ classpath " com.android.tools.build:gradle:3.6.2 "
1515 }
1616}
1717
@@ -20,8 +20,8 @@ repositories {
2020 url(" ${ findNodeModulesPath(rootDir, "react-native")} /android" )
2121 }
2222
23- jcenter()
2423 google()
24+ jcenter()
2525}
2626
2727apply plugin : " com.android.application"
@@ -35,8 +35,8 @@ apply from: file("${testAppDir}/test-app.gradle")
3535applyTestAppModule(project, " com.sample" )
3636
3737project. ext. react = [
38- enableFlipper : getFlipperVersion(rootDir),
39- enableHermes : true ,
38+ enableFlipper : getFlipperVersion(rootDir),
39+ enableHermes : true ,
4040]
4141
4242android {
@@ -87,7 +87,11 @@ dependencies {
8787 releaseImplementation files(" $hermesPath /hermes-release.aar" )
8888 debugImplementation files(" $hermesPath /hermes-debug.aar" )
8989
90- implementation " com.facebook.react:react-native:+"
90+ if (buildReactNativeFromSource(rootDir)) {
91+ implementation project(' :ReactAndroid' )
92+ } else {
93+ implementation " com.facebook.react:react-native:+"
94+ }
9195
9296 implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion "
9397 implementation " androidx.appcompat:appcompat:1.1.0"
0 commit comments