Skip to content

Commit 385e0d8

Browse files
Update build.gradle
1 parent 0c709a5 commit 385e0d8

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/android/build.gradle

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,27 @@ buildscript {
2020
apply plugin: 'com.android.library'
2121

2222
android {
23-
compileSdkVersion safeExtGet('compileSdkVersion', 26)
24-
publishNonDefault true
23+
compileSdkVersion 26
24+
buildToolsVersion "26.0.1"
2525

2626
defaultConfig {
27-
minSdkVersion safeExtGet('minSdkVersion', 16)
28-
targetSdkVersion safeExtGet('targetSdkVersion', 26)
29-
}
30-
lintOptions {
31-
abortOnError false
27+
minSdkVersion 16
28+
targetSdkVersion 26
29+
versionCode 1
30+
versionName computeVersionName()
3231
}
32+
3333
}
3434

3535
repositories {
36-
mavenCentral()
36+
maven {
37+
jcenter()
38+
// All of React Native (JS, Android binaries) is installed from npm
39+
url "$rootDir/../node_modules/react-native/android"
40+
}
3741
}
3842

3943
dependencies {
40-
api 'com.facebook.react:react-native:+'
44+
compile "com.facebook.react:react-native:+" // From node_modules
4145
}
4246

0 commit comments

Comments
 (0)