2013-10-10 20:52:24 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2014-10-01 04:46:13 +00:00
|
|
|
maven {
|
|
|
|
url "https://repo1.maven.org/maven2"
|
|
|
|
}
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2014-12-08 22:17:09 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:1.0.0'
|
2014-06-05 17:16:36 +00:00
|
|
|
classpath files('libs/gradle-witness.jar')
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-23 22:40:45 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2014-11-20 11:16:18 +00:00
|
|
|
apply from: 'strip_play_services.gradle'
|
2014-06-05 17:16:36 +00:00
|
|
|
apply plugin: 'witness'
|
2013-10-10 20:52:24 +00:00
|
|
|
|
|
|
|
repositories {
|
2014-10-01 04:46:13 +00:00
|
|
|
maven {
|
2014-12-30 09:36:51 +00:00
|
|
|
url "https://repo1.maven.org/maven2/"
|
2014-10-01 04:46:13 +00:00
|
|
|
}
|
2013-10-10 20:52:24 +00:00
|
|
|
maven {
|
2014-06-29 03:40:57 +00:00
|
|
|
url "https://raw.github.com/whispersystems/maven/master/preferencefragment/releases/"
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url "https://raw.github.com/whispersystems/maven/master/gson/releases/"
|
|
|
|
}
|
2014-06-28 21:06:15 +00:00
|
|
|
maven {
|
|
|
|
url "https://raw.github.com/whispersystems/maven/master/smil/releases/"
|
|
|
|
}
|
2014-12-12 01:12:10 +00:00
|
|
|
maven {
|
|
|
|
url "https://raw.github.com/whispersystems/maven/master/shortcutbadger/releases/"
|
|
|
|
}
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2014-12-13 00:12:49 +00:00
|
|
|
compile 'me.leolin:ShortcutBadger:1.0.2-WS2'
|
2014-03-18 06:25:09 +00:00
|
|
|
compile 'se.emilsjolander:stickylistheaders:2.2.0'
|
2014-06-29 03:40:57 +00:00
|
|
|
compile 'com.google.android.gms:play-services:6.1.71'
|
2014-05-29 03:53:34 +00:00
|
|
|
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
|
2014-06-28 21:06:15 +00:00
|
|
|
compile 'org.w3c:smil:1.0.0'
|
2014-09-16 23:21:41 +00:00
|
|
|
compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
|
2014-08-12 19:11:23 +00:00
|
|
|
compile 'com.github.chrisbanes.photoview:library:1.2.3'
|
2014-11-24 17:09:33 +00:00
|
|
|
compile 'com.android.support:appcompat-v7:20.0.0'
|
2014-11-21 00:46:35 +00:00
|
|
|
compile 'com.madgag.spongycastle:prov:1.51.0.0'
|
2014-11-22 17:47:02 +00:00
|
|
|
compile 'com.google.zxing:android-integration:3.1.0'
|
2014-06-29 03:40:57 +00:00
|
|
|
compile ('com.android.support:support-v4-preferencefragment:1.0.0@aar'){
|
|
|
|
exclude module: 'support-v4'
|
|
|
|
}
|
2014-11-12 03:57:53 +00:00
|
|
|
compile 'com.squareup.dagger:dagger:1.2.2'
|
2014-12-13 00:07:02 +00:00
|
|
|
compile ("com.doomonafireball.betterpickers:library:1.5.2") {
|
|
|
|
exclude group: 'com.android.support', module: 'support-v4'
|
|
|
|
}
|
2014-11-12 03:57:53 +00:00
|
|
|
provided 'com.squareup.dagger:dagger-compiler:1.2.2'
|
2013-10-12 10:09:22 +00:00
|
|
|
|
2014-12-29 21:12:45 +00:00
|
|
|
compile 'org.whispersystems:jobmanager:0.10.0'
|
2014-06-27 21:34:51 +00:00
|
|
|
compile 'org.whispersystems:libpastelog:1.0.2'
|
2014-11-28 18:10:47 +00:00
|
|
|
|
2014-04-24 23:40:54 +00:00
|
|
|
androidTestCompile 'com.squareup:fest-android:1.0.8'
|
2014-07-13 01:06:22 +00:00
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker:1.1'
|
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.1'
|
2014-08-04 23:15:13 +00:00
|
|
|
|
2014-11-12 05:21:09 +00:00
|
|
|
compile project(':libtextsecure')
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
|
2014-06-05 17:16:36 +00:00
|
|
|
dependencyVerification {
|
|
|
|
verify = [
|
2014-12-13 00:12:49 +00:00
|
|
|
'me.leolin:ShortcutBadger:027977c718035e5997035e04e05152d6c72d94df645e8b7099a274ada722bd14',
|
2014-10-21 04:06:09 +00:00
|
|
|
'se.emilsjolander:stickylistheaders:89146b46c96fea0e40200474a2625cda10fe94891e4128f53cdb42375091b9b6',
|
2014-06-29 03:40:57 +00:00
|
|
|
'com.google.android.gms:play-services:32e7d1834a1cf8fa4b17e8d359db580c286e26c1eefbf84fdb9996eac8d74919',
|
2014-10-21 04:06:09 +00:00
|
|
|
'com.astuetz:pagerslidingtabstrip:f1641396732c7132a7abb837e482e5ee2b0ebb8d10813fc52bbaec2c15c184c2',
|
|
|
|
'org.w3c:smil:085dc40f2bb249651578bfa07499fd08b16ad0886dbe2c4078586a408da62f9b',
|
|
|
|
'org.apache.httpcomponents:httpclient-android:6f56466a9bd0d42934b90bfbfe9977a8b654c058bf44a12bdc2877c4e1f033f1',
|
2014-11-21 00:46:35 +00:00
|
|
|
'com.github.chrisbanes.photoview:library:8b5344e206f125e7ba9d684008f36c4992d03853c57e5814125f88496126e3cc',
|
2014-11-24 17:09:33 +00:00
|
|
|
'com.android.support:appcompat-v7:736f576ab0b68d27bdf18b1e7931566e6d8254b73965175313e87f8866b91547',
|
2014-11-21 00:46:35 +00:00
|
|
|
'com.madgag.spongycastle:prov:b8c3fec3a59aac1aa04ccf4dad7179351e54ef7672f53f508151b614c131398a',
|
2014-11-22 17:47:02 +00:00
|
|
|
'com.google.zxing:android-integration:89e56aadf1164bd71e57949163c53abf90af368b51669c0d4a47a163335f95c4',
|
2014-06-29 03:40:57 +00:00
|
|
|
'com.android.support:support-v4-preferencefragment:5470f5872514a6226fa1fc6f4e000991f38805691c534cf0bd2778911fc773ad',
|
2014-11-19 01:01:34 +00:00
|
|
|
'com.squareup.dagger:dagger:789aca24537022e49f91fc6444078d9de8f1dd99e1bfb090f18491b186967883',
|
2014-12-13 00:12:49 +00:00
|
|
|
'com.doomonafireball.betterpickers:library:1c2dd66b0f4555e9e68427b28eed8826b7cd2e7074b8c038c88836a6aa9abe64',
|
|
|
|
'org.whispersystems:libpastelog:9798b3c93a91082c2c68542ce5b5c182e18556aebdcb7c8cebbd89eb48ac4047',
|
2014-12-29 21:12:45 +00:00
|
|
|
'org.whispersystems:jobmanager:01f35586c43aa3806f1c18d3d6a5a972def98103ba1a5a9ca3eec08d15f974b7',
|
2014-11-24 17:09:33 +00:00
|
|
|
'com.android.support:support-v4:81f2b1c2c94efd5a4ec7fcd97b6cdcd00e87a933905c5c86103c7319eb024572',
|
2014-11-21 00:46:35 +00:00
|
|
|
'com.madgag.spongycastle:core:8d6240b974b0aca4d3da9c7dd44d42339d8a374358aca5fc98e50a995764511f',
|
|
|
|
'javax.inject:javax.inject:91c77044a50c481636c32d916fd89c9118a72195390452c81065080f957de7ff',
|
2014-12-13 00:12:49 +00:00
|
|
|
'com.nineoldandroids:library:68025a14e3e7673d6ad2f95e4b46d78d7d068343aa99256b686fe59de1b3163a',
|
|
|
|
'org.whispersystems:gson:08f4f7498455d1539c9233e5aac18e9b1805815ef29221572996508eb512fe51',
|
2014-10-21 04:06:09 +00:00
|
|
|
'com.google.protobuf:protobuf-java:e0c1c64575c005601725e7c6a02cebf9e1285e888f756b2a1d73ffa8d725cc74',
|
|
|
|
'com.googlecode.libphonenumber:libphonenumber:eba17eae81dd622ea89a00a3a8c025b2f25d342e0d9644c5b62e16f15687c3ab',
|
2014-12-09 00:07:16 +00:00
|
|
|
'org.whispersystems:axolotl-android:7617256d05aaecd7b5475cd55e42773d7079167a22ca48512bcb0f84f8473cc9',
|
2014-11-24 17:09:33 +00:00
|
|
|
'com.android.support:support-annotations:1aa96ef0cc4a445bfc2f93ccf762305bc57fa107b12afe9d11f3863ae8a11036',
|
2014-06-05 17:16:36 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2013-10-10 20:52:24 +00:00
|
|
|
android {
|
2014-06-29 03:40:57 +00:00
|
|
|
compileSdkVersion 21
|
2014-12-12 18:06:15 +00:00
|
|
|
buildToolsVersion '21.1.2'
|
2013-10-10 20:52:24 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2014-01-11 18:44:54 +00:00
|
|
|
minSdkVersion 9
|
2014-11-20 23:58:32 +00:00
|
|
|
targetSdkVersion 19
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
|
2014-04-22 21:33:29 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
|
|
|
|
2013-10-10 20:52:24 +00:00
|
|
|
android {
|
2014-10-29 17:55:35 +00:00
|
|
|
buildTypes {
|
|
|
|
debug {
|
2014-11-20 11:16:18 +00:00
|
|
|
minifyEnabled false
|
2014-10-29 17:55:35 +00:00
|
|
|
}
|
|
|
|
release {
|
2014-11-20 11:16:18 +00:00
|
|
|
minifyEnabled false
|
2014-10-29 17:55:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-10 20:52:24 +00:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['src']
|
|
|
|
resources.srcDirs = ['src']
|
2014-02-25 08:35:55 +00:00
|
|
|
aidl.srcDirs = ['src']
|
2013-10-10 20:52:24 +00:00
|
|
|
renderscript.srcDirs = ['src']
|
|
|
|
res.srcDirs = ['res']
|
|
|
|
assets.srcDirs = ['assets']
|
|
|
|
}
|
2014-04-24 23:40:54 +00:00
|
|
|
androidTest {
|
2014-07-13 01:06:22 +00:00
|
|
|
java.srcDirs = ['androidTest/java']
|
|
|
|
resources.srcDirs = ['androidTest/java']
|
|
|
|
aidl.srcDirs = ['androidTest/java']
|
|
|
|
renderscript.srcDirs = ['androidTest/java']
|
2014-04-24 23:40:54 +00:00
|
|
|
}
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
2014-01-11 02:20:25 +00:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
|
2014-04-21 15:40:19 +00:00
|
|
|
tasks.whenTaskAdded { task ->
|
|
|
|
if (task.name.equals("lint")) {
|
|
|
|
task.enabled = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-10 20:52:24 +00: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
|
|
|
|
}
|