2013-10-10 13:52:24 -07:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2014-01-06 14:13:01 -08:00
|
|
|
classpath 'com.android.tools.build:gradle:0.7.+'
|
2013-10-10 13:52:24 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'android'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
url "https://raw.github.com/whispersystems/maven/master/gcm-client/releases/"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url "https://raw.github.com/whispersystems/maven/master/gson/releases/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
|
|
|
|
compile 'com.android.support:support-v4:18.0.0'
|
|
|
|
compile 'com.google.android.gcm:gcm-client:1.0.2'
|
2013-10-12 03:09:22 -07:00
|
|
|
|
|
|
|
compile project(':library')
|
2013-10-10 13:52:24 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2013-11-11 16:06:58 -05:00
|
|
|
compileSdkVersion 19
|
|
|
|
buildToolsVersion '19.0.0'
|
2013-10-10 13:52:24 -07:00
|
|
|
|
|
|
|
defaultConfig {
|
2014-01-11 08:44:54 -10:00
|
|
|
minSdkVersion 9
|
2013-11-11 16:06:58 -05:00
|
|
|
targetSdkVersion 19
|
2013-10-10 13:52:24 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['src']
|
|
|
|
resources.srcDirs = ['src']
|
|
|
|
aild.srcDirs = ['src']
|
|
|
|
renderscript.srcDirs = ['src']
|
|
|
|
res.srcDirs = ['res']
|
|
|
|
assets.srcDirs = ['assets']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
2014-01-10 16:20:25 -10:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
2013-10-10 13:52:24 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
def Properties props = new Properties()
|
|
|
|
def propFile = new File('signing.properties')
|
|
|
|
|
|
|
|
if (propFile.canRead()){
|
|
|
|
props.load(new FileInputStream(propFile))
|
|
|
|
|
|
|
|
if (props !=null &&
|
|
|
|
props.containsKey('STORE_FILE') &&
|
|
|
|
props.containsKey('STORE_PASSWORD') &&
|
|
|
|
props.containsKey('KEY_ALIAS') &&
|
|
|
|
props.containsKey('KEY_PASSWORD'))
|
|
|
|
{
|
|
|
|
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
|
|
|
|
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
|
|
|
|
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
|
|
|
|
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
|
|
|
|
} else {
|
|
|
|
println 'signing.properties found but some entries are missing'
|
|
|
|
android.buildTypes.release.signingConfig = null
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
println 'signing.properties not found'
|
|
|
|
android.buildTypes.release.signingConfig = null
|
|
|
|
}
|