|
|
|
@ -10,7 +10,7 @@ buildscript {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileSdkVersion 22
|
|
|
|
|
buildToolsVersion "22.0.1"
|
|
|
|
|
compileSdkVersion 23
|
|
|
|
|
buildToolsVersion "23.0.1"
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
versionCode 375
|
|
|
|
@ -74,7 +74,7 @@ android {
|
|
|
|
|
android.applicationVariants.all { variant ->
|
|
|
|
|
variant.mergeResources.doLast {
|
|
|
|
|
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.getText('UTF-8').replaceAll(/<string name="gapi_key">.*<\/string>/, "<string name=\"gapi_key\">${project.property('gapiKey')}</string>"),
|
|
|
|
|
'UTF-8')
|
|
|
|
|