Update gradle plugin and build tools

pull/322/head
Alex Baker 9 years ago
parent 6aaefdf44f
commit 2535ca97ab

@ -3,12 +3,12 @@ sudo: false
jdk: oraclejdk7 jdk: oraclejdk7
env: env:
matrix: matrix:
- ANDROID_SDKS=android-22,sysimg-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a - ANDROID_SDKS=android-23,sysimg-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
android: android:
components: components:
- android-22 - android-23
- platform-tools-22 - platform-tools-23.0.1
- build-tools-22.0.1 - build-tools-23.0.1
- extra-android-m2repository - extra-android-m2repository
- extra-google-m2repository - extra-google-m2repository
licenses: licenses:

@ -10,7 +10,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:1.2.3' classpath 'com.android.tools.build:gradle:1.3.0'
} }
} }
@ -23,8 +23,8 @@ android {
lintConfig file("lint.xml") lintConfig file("lint.xml")
} }
compileSdkVersion 22 compileSdkVersion 23
buildToolsVersion "22.0.1" buildToolsVersion "23.0.1"
defaultConfig { defaultConfig {
versionCode 375 versionCode 375
@ -74,7 +74,7 @@ android {
android.applicationVariants.all { variant -> android.applicationVariants.all { variant ->
variant.mergeResources.doLast { variant.mergeResources.doLast {
if (project.hasProperty('gapiKey')) { if (project.hasProperty('gapiKey')) {
File values = file("${buildDir}/intermediates/res/${variant.dirName}/values/values.xml") File values = file("${buildDir}/intermediates/res/merged/${variant.dirName}/values/values.xml")
values.write( values.write(
values.getText('UTF-8').replaceAll(/<string name="gapi_key">.*<\/string>/, "<string name=\"gapi_key\">${project.property('gapiKey')}</string>"), values.getText('UTF-8').replaceAll(/<string name="gapi_key">.*<\/string>/, "<string name=\"gapi_key\">${project.property('gapiKey')}</string>"),
'UTF-8') 'UTF-8')

Loading…
Cancel
Save