mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
ca6d8a8a0d
* unify single and multi contact selection activities * follow android listview design recommendations more closely * add contact photos to selection * change indicator for push to be more obvious * cache circle-cropped bitmaps * dedupe numbers when contact has multiple of same phone number // FREEBIE
92 lines
2.3 KiB
Groovy
92 lines
2.3 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:0.9.+'
|
|
}
|
|
}
|
|
|
|
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:19.0.1'
|
|
compile 'com.google.android.gcm:gcm-client:1.0.2'
|
|
compile 'se.emilsjolander:stickylistheaders:2.2.0'
|
|
|
|
compile project(':library')
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 19
|
|
buildToolsVersion '19.0.2'
|
|
|
|
defaultConfig {
|
|
minSdkVersion 9
|
|
targetSdkVersion 19
|
|
}
|
|
|
|
android {
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
java.srcDirs = ['src']
|
|
resources.srcDirs = ['src']
|
|
aidl.srcDirs = ['src']
|
|
renderscript.srcDirs = ['src']
|
|
res.srcDirs = ['res']
|
|
assets.srcDirs = ['assets']
|
|
}
|
|
}
|
|
}
|
|
|
|
signingConfigs {
|
|
release
|
|
}
|
|
buildTypes {
|
|
release {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|