File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ buildscript {
77 }
88
99 dependencies {
10- classpath 'com.android.tools.build:gradle:1.3.1'
10+ // Matches the RN Hello World template
11+ // https://github.com/facebook/react-native/blob/1e8f3b11027fe0a7514b4fc97d0798d3c64bc895/local-cli/templates/HelloWorld/android/build.gradle#L8
12+ classpath 'com.android.tools.build:gradle:2.2.3'
1113 }
1214}
1315
@@ -29,6 +31,12 @@ android {
2931}
3032
3133repositories {
34+ maven {
35+ // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
36+ // Matches the RN Hello World template
37+ // https://github.com/facebook/react-native/blob/1e8f3b11027fe0a7514b4fc97d0798d3c64bc895/local-cli/templates/HelloWorld/android/build.gradle#L21
38+ url "$projectDir/../node_modules/react-native/android"
39+ }
3240 mavenCentral()
3341}
3442
You can’t perform that action at this time.
0 commit comments