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 {
|
2015-01-24 04:38:45 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:1.0.1'
|
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-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
|
|
|
}
|
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/"
|
|
|
|
}
|
2015-01-24 04:38:45 +00:00
|
|
|
jcenter()
|
2015-03-02 16:25:19 +00:00
|
|
|
mavenLocal()
|
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'
|
2015-01-21 07:26:58 +00:00
|
|
|
compile 'com.google.android.gms:play-services-base:6.5.87'
|
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-12-30 01:31:41 +00:00
|
|
|
compile 'com.makeramen:roundedimageview:1.5.0'
|
2015-01-24 04:38:45 +00:00
|
|
|
compile 'com.afollestad:material-dialogs:0.6.1.5'
|
2014-12-30 01:31:41 +00:00
|
|
|
compile 'com.soundcloud.android:android-crop:0.9.10@aar'
|
2015-01-21 07:26:58 +00:00
|
|
|
compile 'com.android.support:appcompat-v7:21.0.3'
|
2015-01-19 02:11:30 +00:00
|
|
|
compile 'com.android.support:recyclerview-v7:21.0.3'
|
2015-01-21 07:26:58 +00:00
|
|
|
compile 'com.melnykov:floatingactionbutton:1.1.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'
|
2015-01-21 07:26:58 +00:00
|
|
|
compile ("com.doomonafireball.betterpickers:library:1.5.3") {
|
2014-12-13 00:07:02 +00:00
|
|
|
exclude group: 'com.android.support', module: 'support-v4'
|
|
|
|
}
|
2015-02-12 18:30:45 +00:00
|
|
|
compile 'com.madgag.spongycastle:prov:1.51.0.0'
|
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'
|
2015-01-15 23:06:31 +00:00
|
|
|
compile 'org.whispersystems:libpastelog:1.0.4'
|
2015-03-11 01:59:12 +00:00
|
|
|
compile 'org.whispersystems:textsecure-android:1.2.2'
|
2014-11-28 18:10:47 +00:00
|
|
|
|
2014-12-31 00:49:57 +00:00
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
|
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
|
|
|
|
|
|
|
|
androidTestCompile ('org.assertj:assertj-core:1.7.1') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
|
|
|
androidTestCompile ('com.squareup.assertj:assertj-android:1.0.0') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
|
|
|
androidTestCompile ('com.android.support.test.espresso:espresso-core:2.0') {
|
|
|
|
exclude group: 'javax.inject'
|
|
|
|
}
|
|
|
|
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
|
2015-02-28 17:40:52 +00:00
|
|
|
dependencyVerification {
|
|
|
|
verify = [
|
|
|
|
'me.leolin:ShortcutBadger:027977c718035e5997035e04e05152d6c72d94df645e8b7099a274ada722bd14',
|
|
|
|
'se.emilsjolander:stickylistheaders:89146b46c96fea0e40200474a2625cda10fe94891e4128f53cdb42375091b9b6',
|
|
|
|
'com.google.android.gms:play-services-base:832cb6b3130e871db6a412c4ab585656dbcc5e7948101f190186757785703f75',
|
|
|
|
'com.astuetz:pagerslidingtabstrip:f1641396732c7132a7abb837e482e5ee2b0ebb8d10813fc52bbaec2c15c184c2',
|
|
|
|
'org.w3c:smil:085dc40f2bb249651578bfa07499fd08b16ad0886dbe2c4078586a408da62f9b',
|
|
|
|
'org.apache.httpcomponents:httpclient-android:6f56466a9bd0d42934b90bfbfe9977a8b654c058bf44a12bdc2877c4e1f033f1',
|
|
|
|
'com.github.chrisbanes.photoview:library:8b5344e206f125e7ba9d684008f36c4992d03853c57e5814125f88496126e3cc',
|
|
|
|
'com.makeramen:roundedimageview:7dda2e78c406760e5c356ccce59b0df46b5b171cf18abb891998594405021548',
|
|
|
|
'com.afollestad:material-dialogs:ccb013e6572c86cfcca433855cf0dbfbff9b5e7bb9d1f504b761a6bc6f467b60',
|
|
|
|
'com.soundcloud.android:android-crop:ffd4b973cf6e97f7d64118a0dc088df50e9066fd5634fe6911dd0c0c5d346177',
|
|
|
|
'com.android.support:appcompat-v7:5dbeb5316d0a6027d646ae552804c3baa5e3bd53f7f33db50904d51505c8a0e5',
|
|
|
|
'com.android.support:recyclerview-v7:e525ad3f33c84bb12b73d2dc975b55364a53f0f2d0697e043efba59ba73e22d2',
|
|
|
|
'com.melnykov:floatingactionbutton:0679ad9f7d61eb7aeab91e8dc56358cdedd5b1c1b9c48464499ffa05c40d3985',
|
|
|
|
'com.google.zxing:android-integration:89e56aadf1164bd71e57949163c53abf90af368b51669c0d4a47a163335f95c4',
|
|
|
|
'com.android.support:support-v4-preferencefragment:5470f5872514a6226fa1fc6f4e000991f38805691c534cf0bd2778911fc773ad',
|
|
|
|
'com.squareup.dagger:dagger:789aca24537022e49f91fc6444078d9de8f1dd99e1bfb090f18491b186967883',
|
|
|
|
'com.doomonafireball.betterpickers:library:132ecd685c95a99e7377c4e27bfadbb2d7ed0bea995944060cd62d4369fdaf3d',
|
|
|
|
'com.madgag.spongycastle:prov:b8c3fec3a59aac1aa04ccf4dad7179351e54ef7672f53f508151b614c131398a',
|
|
|
|
'org.whispersystems:jobmanager:01f35586c43aa3806f1c18d3d6a5a972def98103ba1a5a9ca3eec08d15f974b7',
|
|
|
|
'org.whispersystems:libpastelog:3ccf00fe1597eb8ca1e5de99b17fc225387a1b80b5bbc00ec1bc4d4f3ea9cdde',
|
2015-03-11 01:59:12 +00:00
|
|
|
'org.whispersystems:textsecure-android:a5e81ff87a4f531ea4997b9a18437fa5d2679e846a4b9b0b1d85371d77189e44',
|
2015-02-28 17:40:52 +00:00
|
|
|
'com.android.support:support-annotations:fdee2354787ef66b268e75958de3f7f6c4f8f325510a6dac9f49c929f83a63de',
|
|
|
|
'com.nineoldandroids:library:68025a14e3e7673d6ad2f95e4b46d78d7d068343aa99256b686fe59de1b3163a',
|
|
|
|
'javax.inject:javax.inject:91c77044a50c481636c32d916fd89c9118a72195390452c81065080f957de7ff',
|
|
|
|
'com.madgag.spongycastle:core:8d6240b974b0aca4d3da9c7dd44d42339d8a374358aca5fc98e50a995764511f',
|
2015-03-11 01:59:12 +00:00
|
|
|
'org.whispersystems:textsecure-java:d961309064dbf999ed09b336b220d5f2f4d5048a3bd4b2aee93b62726a0289d7',
|
|
|
|
'org.whispersystems:axolotl-android:40d3db5004a84749a73f68d2f0d01b2ae35a73c54df96d8c6c6723b96efb6fc0',
|
2015-02-28 17:40:52 +00:00
|
|
|
'com.googlecode.libphonenumber:libphonenumber:eba17eae81dd622ea89a00a3a8c025b2f25d342e0d9644c5b62e16f15687c3ab',
|
2015-03-02 16:25:19 +00:00
|
|
|
'com.google.protobuf:protobuf-java:e0c1c64575c005601725e7c6a02cebf9e1285e888f756b2a1d73ffa8d725cc74',
|
2015-02-28 17:40:52 +00:00
|
|
|
'com.squareup.okhttp:okhttp:89b7f63e2e5b6c410266abc14f50fe52ea8d2d8a57260829e499b1cd9f0e61af',
|
2015-03-02 16:25:19 +00:00
|
|
|
'com.fasterxml.jackson.core:jackson-databind:835097bcdd11f5bc8a08378c70d4c8054dfa4b911691cc2752063c75534d198d',
|
2015-03-11 01:59:12 +00:00
|
|
|
'org.whispersystems:axolotl-java:6daee739b89d8d7101de6d98f77132fee48495c6ea647d880e77def842f999ea',
|
|
|
|
'org.whispersystems:curve25519-android:3c29a4131a69b0d16baaa3d707678deb39602c3a3ffd75805ce7f9db252e5d0d',
|
2015-03-02 16:25:19 +00:00
|
|
|
'com.squareup.okio:okio:5e1098bd3fdee4c3347f5ab815b40ba851e4ab1b348c5e49a5b0362f0ce6e978',
|
2015-02-28 17:40:52 +00:00
|
|
|
'com.fasterxml.jackson.core:jackson-annotations:0ca408c24202a7626ec8b861e99d85eca5e38b73311dd6dd12e3e9deecc3fe94',
|
|
|
|
'com.fasterxml.jackson.core:jackson-core:cbf4604784b4de226262845447a1ad3bb38a6728cebe86562e2c5afada8be2c0',
|
2015-03-11 01:59:12 +00:00
|
|
|
'org.whispersystems:curve25519-java:9ccef8f5aba05d9942336f023c589d6278b4f9135bdc34a7bade1f4e7ad65fa3',
|
2015-02-28 17:40:52 +00:00
|
|
|
'com.android.support:support-v4:703572d3015a088cc5604b7e38885af3d307c829d0c5ceaf8654ff41c71cd160',
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2015-02-12 18:30:45 +00:00
|
|
|
dexOptions {
|
|
|
|
javaMaxHeapSize "4g"
|
|
|
|
}
|
|
|
|
|
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
|
2015-01-12 04:27:34 +00:00
|
|
|
|
2014-12-31 00:49:57 +00:00
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2015-01-12 04:27:34 +00:00
|
|
|
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
|
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
|
|
|
|
}
|
|
|
|
|
2014-12-31 00:49:57 +00:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'LICENSE.txt'
|
|
|
|
exclude 'LICENSE'
|
|
|
|
exclude 'NOTICE'
|
|
|
|
exclude 'asm-license.txt'
|
|
|
|
}
|
|
|
|
|
2013-10-10 20:52:24 +00:00
|
|
|
signingConfigs {
|
|
|
|
release
|
|
|
|
}
|
2015-01-12 04:27:34 +00:00
|
|
|
|
2013-10-10 20:52:24 +00:00
|
|
|
buildTypes {
|
2015-01-12 04:27:34 +00:00
|
|
|
debug {
|
2015-01-21 07:26:58 +00:00
|
|
|
minifyEnabled true
|
|
|
|
proguardFiles 'proguard.cfg'
|
2015-01-12 04:27:34 +00:00
|
|
|
}
|
2013-10-10 20:52:24 +00:00
|
|
|
release {
|
2015-01-21 07:26:58 +00:00
|
|
|
minifyEnabled true
|
|
|
|
proguardFiles 'proguard.cfg'
|
2013-10-10 20:52:24 +00:00
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
2014-01-11 02:20:25 +00:00
|
|
|
|
2015-01-12 04:27:34 +00:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['src']
|
|
|
|
resources.srcDirs = ['src']
|
|
|
|
aidl.srcDirs = ['src']
|
|
|
|
renderscript.srcDirs = ['src']
|
|
|
|
res.srcDirs = ['res']
|
|
|
|
assets.srcDirs = ['assets']
|
|
|
|
}
|
|
|
|
androidTest {
|
|
|
|
java.srcDirs = ['androidTest/java']
|
|
|
|
resources.srcDirs = ['androidTest/java']
|
|
|
|
aidl.srcDirs = ['androidTest/java']
|
|
|
|
renderscript.srcDirs = ['androidTest/java']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-15 21:35:35 +00:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/NOTICE'
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|