2013-10-10 13:52:24 -07:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2014-09-30 21:46:13 -07:00
|
|
|
maven {
|
|
|
|
url "https://repo1.maven.org/maven2"
|
|
|
|
}
|
2013-10-10 13:52:24 -07:00
|
|
|
}
|
|
|
|
dependencies {
|
2014-09-06 15:38:55 -07:00
|
|
|
classpath 'com.android.tools.build:gradle:0.12.2'
|
2014-06-05 10:16:36 -07:00
|
|
|
classpath files('libs/gradle-witness.jar')
|
2013-10-10 13:52:24 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-23 15:40:45 -07:00
|
|
|
apply plugin: 'com.android.application'
|
2014-06-05 10:16:36 -07:00
|
|
|
apply plugin: 'witness'
|
2013-10-10 13:52:24 -07:00
|
|
|
|
|
|
|
repositories {
|
2014-09-30 21:46:13 -07:00
|
|
|
maven {
|
|
|
|
url "https://repo1.maven.org/maven2"
|
|
|
|
}
|
2013-10-10 13:52:24 -07:00
|
|
|
maven {
|
|
|
|
url "https://raw.github.com/whispersystems/maven/master/gcm-client/releases/"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url "https://raw.github.com/whispersystems/maven/master/gson/releases/"
|
|
|
|
}
|
2014-06-28 14:06:15 -07:00
|
|
|
maven {
|
|
|
|
url "https://raw.github.com/whispersystems/maven/master/smil/releases/"
|
|
|
|
}
|
2013-10-10 13:52:24 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
|
2014-08-14 23:29:23 -07:00
|
|
|
compile 'com.android.support:support-v4:20.0.0'
|
2014-03-17 23:25:09 -07:00
|
|
|
compile 'se.emilsjolander:stickylistheaders:2.2.0'
|
2014-08-12 20:11:41 -07:00
|
|
|
compile 'com.google.android.gms:play-services:5.0.89'
|
2014-05-28 20:53:34 -07:00
|
|
|
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
|
2014-06-28 14:06:15 -07:00
|
|
|
compile 'org.w3c:smil:1.0.0'
|
2014-09-16 16:21:41 -07:00
|
|
|
compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
|
2013-10-12 03:09:22 -07:00
|
|
|
|
2014-04-24 16:40:54 -07:00
|
|
|
androidTestCompile 'com.squareup:fest-android:1.0.8'
|
|
|
|
|
2013-10-12 03:09:22 -07:00
|
|
|
compile project(':library')
|
2014-07-12 18:06:22 -07:00
|
|
|
|
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker:1.1'
|
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.1'
|
2013-10-10 13:52:24 -07:00
|
|
|
}
|
|
|
|
|
2014-06-05 10:16:36 -07:00
|
|
|
dependencyVerification {
|
|
|
|
verify = [
|
|
|
|
'com.actionbarsherlock:actionbarsherlock:5ab04d74101f70024b222e3ff9c87bee151ec43331b4a2134b6cc08cf8565819',
|
2014-08-14 23:29:23 -07:00
|
|
|
'com.android.support:support-v4:81f2b1c2c94efd5a4ec7fcd97b6cdcd00e87a933905c5c86103c7319eb024572',
|
2014-06-05 10:16:36 -07:00
|
|
|
'se.emilsjolander:stickylistheaders:89146b46c96fea0e40200474a2625cda10fe94891e4128f53cdb42375091b9b6',
|
2014-08-12 20:11:41 -07:00
|
|
|
'com.google.android.gms:play-services:38f326e525830f1d70f60f594ceafcbdf5b312287ddbecd338fd1ed7958a4b1e',
|
2014-05-28 20:53:34 -07:00
|
|
|
'com.astuetz:pagerslidingtabstrip:f1641396732c7132a7abb837e482e5ee2b0ebb8d10813fc52bbaec2c15c184c2',
|
2014-06-28 14:06:15 -07:00
|
|
|
'org.w3c:smil:085dc40f2bb249651578bfa07499fd08b16ad0886dbe2c4078586a408da62f9b',
|
2014-09-16 16:21:41 -07:00
|
|
|
'org.apache.httpcomponents:httpclient-android:6f56466a9bd0d42934b90bfbfe9977a8b654c058bf44a12bdc2877c4e1f033f1',
|
2014-07-05 12:47:01 -07:00
|
|
|
'com.google.protobuf:protobuf-java:e0c1c64575c005601725e7c6a02cebf9e1285e888f756b2a1d73ffa8d725cc74',
|
2014-06-05 10:16:36 -07:00
|
|
|
'com.madgag:sc-light-jdk15on:931f39d351429fb96c2f749e7ecb1a256a8ebbf5edca7995c9cc085b94d1841d',
|
2014-04-24 16:40:54 -07:00
|
|
|
'com.googlecode.libphonenumber:libphonenumber:eba17eae81dd622ea89a00a3a8c025b2f25d342e0d9644c5b62e16f15687c3ab',
|
2014-06-05 10:16:36 -07:00
|
|
|
'org.whispersystems:gson:08f4f7498455d1539c9233e5aac18e9b1805815ef29221572996508eb512fe51',
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2013-10-10 13:52:24 -07:00
|
|
|
android {
|
2013-11-11 16:06:58 -05:00
|
|
|
compileSdkVersion 19
|
2014-06-09 23:31:52 -07:00
|
|
|
buildToolsVersion '19.1.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
|
|
|
}
|
|
|
|
|
2014-04-22 14:33:29 -07:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
|
|
|
|
2013-10-10 13:52:24 -07:00
|
|
|
android {
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['src']
|
|
|
|
resources.srcDirs = ['src']
|
2014-02-25 09:35:55 +01:00
|
|
|
aidl.srcDirs = ['src']
|
2013-10-10 13:52:24 -07:00
|
|
|
renderscript.srcDirs = ['src']
|
|
|
|
res.srcDirs = ['res']
|
|
|
|
assets.srcDirs = ['assets']
|
|
|
|
}
|
2014-04-24 16:40:54 -07:00
|
|
|
androidTest {
|
2014-07-12 18:06:22 -07:00
|
|
|
java.srcDirs = ['androidTest/java']
|
|
|
|
resources.srcDirs = ['androidTest/java']
|
|
|
|
aidl.srcDirs = ['androidTest/java']
|
|
|
|
renderscript.srcDirs = ['androidTest/java']
|
2014-04-24 16:40:54 -07:00
|
|
|
}
|
2013-10-10 13:52:24 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2014-04-21 08:40:19 -07:00
|
|
|
tasks.whenTaskAdded { task ->
|
|
|
|
if (task.name.equals("lint")) {
|
|
|
|
task.enabled = 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
|
|
|
|
}
|