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()
|
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'
|
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'
|
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
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|