2014-02-13 20:33:21 -05:00
|
|
|
// please leave this here, so this library builds on its own
|
2014-01-27 08:44:20 -05:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2014-02-17 12:40:11 -05:00
|
|
|
classpath 'com.android.tools.build:gradle:0.8.3'
|
2014-01-27 08:44:20 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'android'
|
|
|
|
|
|
|
|
dependencies {
|
2014-01-28 19:49:59 -05:00
|
|
|
compile 'com.android.support:support-v4:19.0.1'
|
2014-02-09 13:22:14 -05:00
|
|
|
compile project(':libraries:keychain-api-library')
|
2014-01-27 08:44:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 19
|
2014-03-05 08:14:22 -05:00
|
|
|
buildToolsVersion "19.0.3"
|
2014-01-27 08:44:20 -05:00
|
|
|
|
|
|
|
defaultConfig {
|
2014-02-13 20:33:21 -05:00
|
|
|
minSdkVersion 9
|
2014-01-27 08:44:20 -05:00
|
|
|
targetSdkVersion 19
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* To sign release build, create file gradle.properties in ~/.gradle/ with this content:
|
|
|
|
*
|
|
|
|
* signingStoreLocation=/home/key.store
|
|
|
|
* signingStorePassword=xxx
|
|
|
|
* signingKeyAlias=alias
|
|
|
|
* signingKeyPassword=xxx
|
|
|
|
*/
|
|
|
|
if (project.hasProperty('signingStoreLocation') &&
|
|
|
|
project.hasProperty('signingStorePassword') &&
|
|
|
|
project.hasProperty('signingKeyAlias') &&
|
|
|
|
project.hasProperty('signingKeyPassword')) {
|
|
|
|
println "Found sign properties in gradle.properties! Signing build…"
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
storeFile file(signingStoreLocation)
|
|
|
|
storePassword signingStorePassword
|
|
|
|
keyAlias signingKeyAlias
|
|
|
|
keyPassword signingKeyPassword
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes.release.signingConfig = signingConfigs.release
|
|
|
|
} else {
|
|
|
|
buildTypes.release.signingConfig = null
|
|
|
|
}
|
|
|
|
|
|
|
|
// Do not abort build if lint finds errors
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
}
|