2014-10-22 18:38:44 +02:00
|
|
|
// Top-level build file where you can add configuration options common to all
|
|
|
|
// sub-projects/modules.
|
|
|
|
buildscript {
|
2014-10-22 21:39:53 +02:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2016-02-23 14:33:03 +01:00
|
|
|
classpath 'com.android.tools.build:gradle:1.5.0'
|
2014-10-22 21:39:53 +02:00
|
|
|
}
|
2014-10-22 18:38:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2014-10-22 21:39:53 +02:00
|
|
|
repositories {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-26 15:14:38 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2014-10-22 21:39:53 +02:00
|
|
|
|
|
|
|
repositories {
|
2015-12-14 14:56:46 +01:00
|
|
|
flatDir {
|
2016-02-11 21:20:06 +01:00
|
|
|
dirs 'libs/3rdParty/jcenter', 'libs/3rdParty/maven'
|
2015-12-14 14:56:46 +01:00
|
|
|
}
|
2014-10-22 21:39:53 +02:00
|
|
|
}
|
|
|
|
|
2014-10-23 00:17:49 +02:00
|
|
|
dependencies {
|
2015-12-14 14:56:46 +01:00
|
|
|
// Local JAR files
|
|
|
|
//compile fileTree(dir: 'libs/zxing', includes: ['core-3.1.0.jar', 'android-integration-3.1.0.jar'])
|
2016-02-11 21:20:06 +01:00
|
|
|
compile name: 'zxing-core-3.2.1' //zxing
|
|
|
|
compile name: 'zxing-android-integration-3.2.1' //zxing
|
2015-12-14 14:56:46 +01:00
|
|
|
compile name: 'libidn-1.15'
|
2016-02-11 10:45:27 +01:00
|
|
|
compile name: 'minidns-0.1.7'
|
2015-12-14 14:56:46 +01:00
|
|
|
compile name: 'org.otr4j-0.22'
|
2016-02-11 10:45:27 +01:00
|
|
|
compile name: 'bcprov-jdk15on-1.52'
|
2016-02-11 21:20:06 +01:00
|
|
|
compile name: 'bcmail-jdk15on-1.52'
|
2016-02-11 22:35:22 +01:00
|
|
|
compile name: 'bcpkix-jdk15on-1.52'
|
2015-12-14 14:56:46 +01:00
|
|
|
compile name: 'EnhancedListView-0.3.4', ext: 'aar'
|
2016-03-07 14:22:48 +01:00
|
|
|
compile name: 'com.nineoldandroids.view.ViewHelper-2.4.0'
|
2016-02-11 10:45:27 +01:00
|
|
|
compile name: 'ShortcutBadger-1.1.3', ext: 'aar'
|
2015-12-14 14:56:46 +01:00
|
|
|
compile name: 'swipy-1.2.1', ext: 'aar'
|
2016-02-11 21:20:06 +01:00
|
|
|
compile name: 'axolotl-android-1.3.4', ext: 'aar'
|
2016-02-11 22:35:22 +01:00
|
|
|
compile name: 'axolotl-java-1.3.4'
|
2016-02-12 10:03:02 +01:00
|
|
|
compile name: 'curve25519-android-0.2.4', ext: 'aar' // axolotl, loaded from jcenter
|
|
|
|
compile name: 'curve25519-java-0.2.4' // axolotl, loaded from jcenter
|
2016-02-12 19:27:51 +01:00
|
|
|
compile name: 'protobuf-java-2.5.0' // axolotl, loaded from maven
|
2016-02-11 21:20:06 +01:00
|
|
|
compile name: 'android-crop-1.0.1', ext: 'aar'
|
|
|
|
compile name: 'roundedimageview-2.2.0', ext: 'aar'
|
|
|
|
compile name: 'openpgp-api-10.0', ext: 'aar' // loaded from jcenter
|
2015-12-14 14:56:46 +01:00
|
|
|
|
|
|
|
// Local modules
|
2015-03-31 16:30:47 +02:00
|
|
|
compile project(':libs:MemorizingTrustManager')
|
2015-04-12 17:22:42 +02:00
|
|
|
compile project(':libs:emojicon')
|
2015-12-04 23:18:36 +01:00
|
|
|
compile project(':libs:colorpicker')
|
2015-12-10 20:01:50 +01:00
|
|
|
compile project(':libs:thedevstacklogcat')
|
2015-12-14 14:56:46 +01:00
|
|
|
|
|
|
|
// Android dependencies
|
2016-03-25 20:04:37 +01:00
|
|
|
compile 'com.android.support:support-v13:23.2.0'
|
2014-10-23 00:17:49 +02:00
|
|
|
}
|
|
|
|
|
2014-10-22 21:39:53 +02:00
|
|
|
android {
|
2015-08-24 10:59:52 +02:00
|
|
|
compileSdkVersion 23
|
2015-12-06 11:55:37 +01:00
|
|
|
buildToolsVersion "23.0.2"
|
2014-10-22 21:39:53 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 14
|
2015-12-06 11:55:37 +01:00
|
|
|
targetSdkVersion 23
|
2016-03-23 19:24:54 +01:00
|
|
|
versionCode 134
|
2016-03-27 17:18:52 +02:00
|
|
|
versionName "1.11.2.1"
|
2016-02-12 11:39:27 +01:00
|
|
|
archivesBaseName += "-$versionName"
|
2014-10-22 21:39:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
2014-10-26 14:11:28 +01:00
|
|
|
|
2016-02-12 11:39:27 +01:00
|
|
|
productFlavors {
|
|
|
|
playstore
|
|
|
|
free
|
|
|
|
}
|
2014-10-26 14:11:28 +01:00
|
|
|
if (project.hasProperty('mStoreFile') &&
|
|
|
|
project.hasProperty('mStorePassword') &&
|
|
|
|
project.hasProperty('mKeyAlias') &&
|
|
|
|
project.hasProperty('mKeyPassword')) {
|
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
storeFile file(mStoreFile)
|
|
|
|
storePassword mStorePassword
|
|
|
|
keyAlias mKeyAlias
|
|
|
|
keyPassword mKeyPassword
|
|
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes.release.signingConfig = signingConfigs.release
|
|
|
|
} else {
|
|
|
|
buildTypes.release.signingConfig = null
|
|
|
|
}
|
|
|
|
|
2014-10-23 00:17:49 +02:00
|
|
|
lintOptions {
|
2015-07-19 14:51:11 +02:00
|
|
|
disable 'ExtraTranslation', 'MissingTranslation', 'InvalidPackage', 'MissingQuantity', 'AppCompatResource'
|
2014-10-23 00:17:49 +02:00
|
|
|
}
|
2014-10-26 14:11:28 +01:00
|
|
|
|
2014-10-23 00:17:49 +02:00
|
|
|
subprojects {
|
2014-10-22 21:39:53 +02:00
|
|
|
|
2014-10-23 00:17:49 +02:00
|
|
|
afterEvaluate {
|
|
|
|
if (getPlugins().hasPlugin('android') ||
|
|
|
|
getPlugins().hasPlugin('android-library')) {
|
|
|
|
|
|
|
|
configure(android.lintOptions) {
|
|
|
|
disable 'AndroidGradlePluginVersion', 'MissingTranslation'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2016-02-12 11:39:27 +01:00
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/BCKEY.DSA'
|
|
|
|
exclude 'META-INF/BCKEY.SF'
|
|
|
|
}
|
2014-10-22 18:38:44 +02:00
|
|
|
}
|