[Fix #2834] Migrate android build to latest gradle plugin

Signed-off-by: Oskar Thoren <ot@oskarthoren.com>
This commit is contained in:
pacamara 2017-12-28 18:53:18 +00:00 committed by Oskar Thoren
parent 343f5c1e8e
commit 86be7071a0
No known key found for this signature in database
GPG Key ID: 5128AB0637CD85AF
4 changed files with 9 additions and 4 deletions

View File

@ -117,7 +117,7 @@ def getVersionName = { ->
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "im.status.ethereum"
@ -189,7 +189,7 @@ android {
dependencies {
compile project(':react-native-svg')
compile project(':react-native-mapbox-gl')
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:multidex:1.0.2'
compile project(':react-native-http-bridge')
compile project(':nfc-react-native')
compile project(':instabug-reactnative')

View File

@ -2,10 +2,11 @@
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
@ -15,6 +16,7 @@ buildscript {
allprojects {
repositories {
google()
mavenLocal()
jcenter()
maven { url "$rootDir/../node_modules/react-native/android" }

View File

@ -24,3 +24,6 @@ STATUS_RELEASE_STORE_FILE=~/.gradle/status-im.keystore
STATUS_RELEASE_STORE_PASSWORD=password
STATUS_RELEASE_KEY_ALIAS=status
STATUS_RELEASE_KEY_PASSWORD=password
# Workaround for issue https://github.com/facebook/react-native/issues/16906
android.enableAapt2=false

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip