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-07-22 21:29:50 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:1.2.3'
|
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-05-04 18:36:18 +00:00
|
|
|
maven { // textdrawable
|
|
|
|
url 'https://dl.bintray.com/amulyakhare/maven'
|
|
|
|
}
|
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 {
|
2015-05-07 17:08:30 +00:00
|
|
|
compile 'me.leolin:ShortcutBadger:1.1.0-WS1'
|
2015-06-05 00:45:04 +00:00
|
|
|
compile 'se.emilsjolander:stickylistheaders:2.7.0'
|
2015-12-18 22:37:11 +00:00
|
|
|
compile 'com.google.android.gms:play-services-gcm:8.1.0'
|
|
|
|
compile 'com.google.android.gms:play-services-maps:8.1.0'
|
|
|
|
compile 'com.google.android.gms:play-services-location:8.1.0'
|
2015-05-06 20:53:55 +00:00
|
|
|
compile 'com.jpardogo.materialtabstrip:library:1.0.9'
|
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'
|
2015-07-15 20:42:59 +00:00
|
|
|
compile 'com.github.bumptech.glide:glide:3.6.1'
|
2015-06-12 22:31:12 +00:00
|
|
|
compile 'com.makeramen:roundedimageview:2.1.0'
|
2015-06-27 03:14:51 +00:00
|
|
|
compile 'com.pnikosis:materialish-progress:1.5'
|
|
|
|
compile 'de.greenrobot:eventbus:2.4.0'
|
2015-06-29 15:49:32 +00:00
|
|
|
compile 'pl.tajchert:waitingdots:0.1.0'
|
2014-12-30 01:31:41 +00:00
|
|
|
compile 'com.soundcloud.android:android-crop:0.9.10@aar'
|
2015-11-03 01:40:41 +00:00
|
|
|
compile 'com.android.support:appcompat-v7:22.2.1'
|
|
|
|
compile 'com.android.support:recyclerview-v7:22.2.1'
|
2015-11-17 01:39:13 +00:00
|
|
|
compile 'com.android.support:design:22.2.1'
|
2015-11-19 18:21:19 +00:00
|
|
|
compile 'com.android.support:cardview-v7:22.2.1'
|
2015-09-29 20:14:22 +00:00
|
|
|
compile 'com.melnykov:floatingactionbutton:1.3.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'
|
|
|
|
}
|
2015-06-24 20:17:58 +00:00
|
|
|
compile ('com.android.support:gridlayout-v7:22.2.0') {
|
|
|
|
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
|
|
|
|
2015-09-30 23:19:50 +00:00
|
|
|
compile 'org.whispersystems:jobmanager:1.0.2'
|
2015-03-14 00:52:31 +00:00
|
|
|
compile 'org.whispersystems:libpastelog:1.0.6'
|
2015-05-04 18:36:18 +00:00
|
|
|
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
|
2015-11-16 20:03:47 +00:00
|
|
|
compile 'org.whispersystems:textsecure-android:1.8.3'
|
2015-08-24 22:24:31 +00:00
|
|
|
compile 'com.h6ah4i.android.compat:mulsellistprefcompat:1.0.0'
|
2015-11-19 18:21:19 +00:00
|
|
|
compile 'com.google.zxing:core:3.2.1'
|
2014-11-28 18:10:47 +00:00
|
|
|
|
2015-09-03 23:31:26 +00:00
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
testCompile 'org.assertj:assertj-core:1.7.1'
|
|
|
|
testCompile 'org.mockito:mockito-core:1.9.5'
|
|
|
|
testCompile 'org.powermock:powermock-api-mockito:1.6.1'
|
|
|
|
testCompile 'org.powermock:powermock-module-junit4:1.6.1'
|
|
|
|
testCompile 'org.powermock:powermock-module-junit4-rule:1.6.1'
|
|
|
|
testCompile 'org.powermock:powermock-classloading-xstream:1.6.1'
|
|
|
|
|
2015-08-10 16:30:59 +00:00
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
|
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
|
2014-12-31 00:49:57 +00:00
|
|
|
androidTestCompile ('org.assertj:assertj-core:1.7.1') {
|
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
|
|
|
androidTestCompile ('com.squareup.assertj:assertj-android:1.0.0') {
|
2015-06-02 04:44:10 +00:00
|
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
}
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
|
|
|
|
2015-02-28 17:40:52 +00:00
|
|
|
dependencyVerification {
|
|
|
|
verify = [
|
2015-05-07 17:08:30 +00:00
|
|
|
'me.leolin:ShortcutBadger:3142d017234bfa0cdd69ccded7cc5ea63f13b97574803c8c616c9bbeaad33ad9',
|
2015-06-05 00:45:04 +00:00
|
|
|
'se.emilsjolander:stickylistheaders:a08ca948aa6b220f09d82f16bbbac395f6b78897e9eeac6a9f0b0ba755928eeb',
|
2015-12-18 22:37:11 +00:00
|
|
|
'com.google.android.gms:play-services-gcm:757ecd2c837ac81c98f4cc7dc783e7454c6d0506f6cc66b10417126b675248c9',
|
|
|
|
'com.google.android.gms:play-services-maps:c58a9d98a98889fb0b27f78100f2d9341ed7722db24ccf832df62b6e8ce1b42e',
|
|
|
|
'com.google.android.gms:play-services-location:8226f778aa86bd15b9143f62425262cc53d64021990f62eb1aaec108d4e25f35',
|
2015-05-18 22:16:27 +00:00
|
|
|
'com.jpardogo.materialtabstrip:library:c6ef812fba4f74be7dc4a905faa4c2908cba261a94c13d4f96d5e67e4aad4aaa',
|
2015-02-28 17:40:52 +00:00
|
|
|
'org.w3c:smil:085dc40f2bb249651578bfa07499fd08b16ad0886dbe2c4078586a408da62f9b',
|
|
|
|
'org.apache.httpcomponents:httpclient-android:6f56466a9bd0d42934b90bfbfe9977a8b654c058bf44a12bdc2877c4e1f033f1',
|
|
|
|
'com.github.chrisbanes.photoview:library:8b5344e206f125e7ba9d684008f36c4992d03853c57e5814125f88496126e3cc',
|
2015-07-15 20:42:59 +00:00
|
|
|
'com.github.bumptech.glide:glide:4718ac4c57ebabe56e673dc3265950b9dbf940d1c43c0adc363e8b95c0abdf75',
|
2015-06-12 22:31:12 +00:00
|
|
|
'com.makeramen:roundedimageview:1f5a1865796b308c6cdd114acc6e78408b110f0a62fc63553278fbeacd489cd1',
|
2015-06-27 03:14:51 +00:00
|
|
|
'com.pnikosis:materialish-progress:d71d80e00717a096784482aee21001a9d299fec3833e4ebd87739ed36cf77c54',
|
|
|
|
'de.greenrobot:eventbus:61d743a748156a372024d083de763b9e91ac2dcb3f6a1cbc74995c7ddab6e968',
|
2015-06-29 23:09:23 +00:00
|
|
|
'pl.tajchert:waitingdots:2835d49e0787dbcb606c5a60021ced66578503b1e9fddcd7a5ef0cd5f095ba2c',
|
2015-02-28 17:40:52 +00:00
|
|
|
'com.soundcloud.android:android-crop:ffd4b973cf6e97f7d64118a0dc088df50e9066fd5634fe6911dd0c0c5d346177',
|
2015-11-03 01:40:41 +00:00
|
|
|
'com.android.support:appcompat-v7:4b5ccba8c4557ef04f99aa0a80f8aa7d50f05f926a709010a54afd5c878d3618',
|
|
|
|
'com.android.support:recyclerview-v7:b0f530a5b14334d56ce0de85527ffe93ac419bc928e2884287ce1dddfedfb505',
|
2015-11-17 01:39:13 +00:00
|
|
|
'com.android.support:design:58be3ca6a73789615f7ece0937d2f683b98b594bb90aa10565fa760fb10b07ee',
|
2015-11-19 18:21:19 +00:00
|
|
|
'com.android.support:cardview-v7:2c2354761a4e20ba451ae903ab808f15c9acc8343b1e74001869c2d0a672c1fc',
|
2015-09-29 20:14:22 +00:00
|
|
|
'com.melnykov:floatingactionbutton:15d58d4fac0f7a288d0e5301bbaf501a146f5b3f5921277811bf99bd3b397263',
|
2015-02-28 17:40:52 +00:00
|
|
|
'com.google.zxing:android-integration:89e56aadf1164bd71e57949163c53abf90af368b51669c0d4a47a163335f95c4',
|
|
|
|
'com.android.support:support-v4-preferencefragment:5470f5872514a6226fa1fc6f4e000991f38805691c534cf0bd2778911fc773ad',
|
2015-06-29 23:09:23 +00:00
|
|
|
'com.android.support:gridlayout-v7:a9b770cffca2c7c5cd83cba4dd12503365de5e8d9c79c479165adf18ab3bc25b',
|
2015-02-28 17:40:52 +00:00
|
|
|
'com.squareup.dagger:dagger:789aca24537022e49f91fc6444078d9de8f1dd99e1bfb090f18491b186967883',
|
|
|
|
'com.doomonafireball.betterpickers:library:132ecd685c95a99e7377c4e27bfadbb2d7ed0bea995944060cd62d4369fdaf3d',
|
|
|
|
'com.madgag.spongycastle:prov:b8c3fec3a59aac1aa04ccf4dad7179351e54ef7672f53f508151b614c131398a',
|
2015-10-01 01:33:35 +00:00
|
|
|
'org.whispersystems:jobmanager:506f679fc2fcf7bb6d10f00f41d6f6ea0abf75c70dc95b913398661ad538a181',
|
2015-03-14 00:52:31 +00:00
|
|
|
'org.whispersystems:libpastelog:550d33c565380d90f4c671e7b8ed5f3a6da55a9fda468373177106b2eb5220b2',
|
2015-05-04 18:36:18 +00:00
|
|
|
'com.amulyakhare:com.amulyakhare.textdrawable:54c92b5fba38cfd316a07e5a30528068f45ce8515a6890f1297df4c401af5dcb',
|
2015-11-19 19:35:38 +00:00
|
|
|
'org.whispersystems:textsecure-android:aec5fc59952d9f5482491091091687816f46be1144342a0244f48fd55d6ab393',
|
2015-09-09 20:54:29 +00:00
|
|
|
'com.h6ah4i.android.compat:mulsellistprefcompat:47167c5cb796de1a854788e9ff318358e36c8fb88123baaa6e38fb78511dfabe',
|
2015-11-19 18:21:19 +00:00
|
|
|
'com.google.zxing:core:b4d82452e7a6bf6ec2698904b332431717ed8f9a850224f295aec89de80f2259',
|
2015-12-18 22:37:11 +00:00
|
|
|
'com.google.android.gms:play-services-base:ef36e50fa5c0415ed41f74dd399a889efd2fa327c449036e140c7c3786aa0e1f',
|
2015-11-16 20:03:47 +00:00
|
|
|
'com.android.support:support-annotations:104f353b53d5dd8d64b2f77eece4b37f6b961de9732eb6b706395e91033ec70a',
|
2015-02-28 17:40:52 +00:00
|
|
|
'com.nineoldandroids:library:68025a14e3e7673d6ad2f95e4b46d78d7d068343aa99256b686fe59de1b3163a',
|
|
|
|
'javax.inject:javax.inject:91c77044a50c481636c32d916fd89c9118a72195390452c81065080f957de7ff',
|
|
|
|
'com.madgag.spongycastle:core:8d6240b974b0aca4d3da9c7dd44d42339d8a374358aca5fc98e50a995764511f',
|
2015-11-16 20:03:47 +00:00
|
|
|
'org.whispersystems:textsecure-java:b407ca6d1430204dfabf38e27db22d5177409072a9668238bd1877de7676ad3f',
|
2015-03-11 01:59:12 +00:00
|
|
|
'org.whispersystems:axolotl-android:40d3db5004a84749a73f68d2f0d01b2ae35a73c54df96d8c6c6723b96efb6fc0',
|
2015-12-18 22:37:11 +00:00
|
|
|
'com.google.android.gms:play-services-basement:e1d29b21e02fd2a63e5a31807415cbb17a59568e27e3254181c01ffae10659bf',
|
2015-11-10 02:09:12 +00:00
|
|
|
'com.googlecode.libphonenumber:libphonenumber:9625de9d2270e9a280ff4e6d9ef3106573fb4828773fd32c9b7614f4e17d2811',
|
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-09-22 00:41:27 +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-09-22 00:41:27 +00:00
|
|
|
'org.whispersystems:curve25519-java:9ccef8f5aba05d9942336f023c589d6278b4f9135bdc34a7bade1f4e7ad65fa3',
|
2015-11-03 01:40:41 +00:00
|
|
|
'com.android.support:support-v4:c62f0d025dafa86f423f48df9185b0d89496adbc5f6a9be5a7c394d84cf91423',
|
2015-02-28 17:40:52 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2013-10-10 20:52:24 +00:00
|
|
|
android {
|
2014-12-29 22:01:02 +00:00
|
|
|
compileSdkVersion 22
|
|
|
|
buildToolsVersion '22.0.1'
|
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
|
2015-04-10 06:10:19 +00:00
|
|
|
targetSdkVersion 22
|
2015-01-12 04:27:34 +00:00
|
|
|
|
|
|
|
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
|
2015-09-30 21:29:39 +00:00
|
|
|
buildConfigField "String", "TEXTSECURE_URL", "\"https://textsecure-service.whispersystems.org\""
|
2015-09-09 20:54:29 +00:00
|
|
|
buildConfigField "String", "USER_AGENT", "\"OWA\""
|
2015-09-30 21:29:39 +00:00
|
|
|
buildConfigField "String", "REDPHONE_MASTER_URL", "\"https://redphone-master.whispersystems.org\""
|
|
|
|
buildConfigField "String", "REDPHONE_RELAY_HOST", "\"relay.whispersystems.org\""
|
2015-09-09 20:54:29 +00:00
|
|
|
buildConfigField "String", "REDPHONE_PREFIX_NAME", "\".whispersystems.org\""
|
2015-05-21 19:30:18 +00:00
|
|
|
buildConfigField "boolean", "DEV_BUILD", "false"
|
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'
|
2015-05-15 18:57:18 +00:00
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/NOTICE'
|
2014-12-31 00:49:57 +00:00
|
|
|
}
|
|
|
|
|
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
|
2015-04-02 01:04:23 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
|
|
|
'proguard-google-play-services.pro',
|
|
|
|
'proguard-dagger.pro',
|
|
|
|
'proguard-jackson.pro',
|
|
|
|
'proguard-sqlite.pro',
|
|
|
|
'proguard-appcompat-v7.pro',
|
|
|
|
'proguard-square-okhttp.pro',
|
|
|
|
'proguard-square-okio.pro',
|
|
|
|
'proguard-spongycastle.pro',
|
|
|
|
'proguard-rounded-image-view.pro',
|
2015-03-31 22:44:41 +00:00
|
|
|
'proguard-glide.pro',
|
2015-05-08 00:20:44 +00:00
|
|
|
'proguard-shortcutbadger.pro',
|
2015-09-09 20:54:29 +00:00
|
|
|
'proguard-retrofit.pro',
|
2015-04-02 01:04:23 +00:00
|
|
|
'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
|
2015-05-15 18:54:56 +00:00
|
|
|
proguardFiles = buildTypes.debug.proguardFiles
|
2013-10-10 20:52:24 +00:00
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
2015-05-21 19:30:18 +00:00
|
|
|
dev.initWith(buildTypes.debug)
|
|
|
|
dev {
|
|
|
|
buildConfigField "boolean", "DEV_BUILD", "true"
|
|
|
|
}
|
2013-10-10 20:52:24 +00:00
|
|
|
}
|
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']
|
2015-09-09 20:54:29 +00:00
|
|
|
jniLibs.srcDirs = ['libs']
|
2015-01-12 04:27:34 +00:00
|
|
|
}
|
|
|
|
androidTest {
|
2015-05-25 21:56:15 +00:00
|
|
|
java.srcDirs = ['test/androidTest/java']
|
2015-01-12 04:27:34 +00:00
|
|
|
}
|
2015-09-03 23:31:26 +00:00
|
|
|
test {
|
|
|
|
java.srcDirs = ['test/unitTest/java']
|
|
|
|
}
|
2015-01-12 04:27:34 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
2015-05-26 06:39:35 +00:00
|
|
|
|