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 {
|
2016-09-07 20:19:15 +02:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
2018-04-23 21:32:38 +02:00
|
|
|
google()
|
2016-09-07 20:19:15 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-05-05 22:58:05 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:3.1.2'
|
2016-09-07 20:19:15 +02:00
|
|
|
}
|
2014-10-22 18:38:44 +02:00
|
|
|
}
|
|
|
|
|
2014-10-26 15:14:38 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2014-10-22 21:39:53 +02:00
|
|
|
|
|
|
|
repositories {
|
2016-09-07 20:19:15 +02:00
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
2017-10-06 22:28:05 +02:00
|
|
|
maven {
|
|
|
|
url 'https://maven.google.com'
|
|
|
|
}
|
2017-12-27 22:22:07 +01:00
|
|
|
maven {
|
|
|
|
url "https://jitpack.io"
|
|
|
|
}
|
2018-04-23 21:32:38 +02:00
|
|
|
maven {
|
|
|
|
url "https://oss.sonatype.org/content/repositories/snapshots"
|
2016-09-07 20:19:15 +02:00
|
|
|
}
|
2016-05-28 22:17:11 +02:00
|
|
|
}
|
|
|
|
|
2016-02-12 11:39:27 +01:00
|
|
|
configurations {
|
2018-03-12 20:58:37 +01:00
|
|
|
standardPushimplementation
|
2016-02-12 11:39:27 +01:00
|
|
|
}
|
|
|
|
|
2017-10-06 22:28:05 +02:00
|
|
|
ext {
|
2018-04-12 22:02:11 +02:00
|
|
|
supportLibVersion = '27.1.1'
|
2017-10-06 22:28:05 +02:00
|
|
|
}
|
|
|
|
|
2014-10-23 00:17:49 +02:00
|
|
|
dependencies {
|
2018-03-12 20:58:37 +01:00
|
|
|
implementation project(':libs:android-transcoder')
|
2018-05-21 20:54:46 +02:00
|
|
|
standardPushimplementation 'com.google.firebase:firebase-messaging:15.0.2'
|
2018-03-12 20:58:37 +01:00
|
|
|
implementation 'org.sufficientlysecure:openpgp-api:10.0'
|
|
|
|
implementation 'com.soundcloud.android:android-crop:1.0.1@aar'
|
|
|
|
implementation 'org.bouncycastle:bcmail-jdk15on:1.58'
|
|
|
|
implementation 'org.jitsi:org.otr4j:0.22'
|
|
|
|
implementation 'org.gnu.inet:libidn:1.15'
|
|
|
|
implementation 'com.google.zxing:core:3.3.0'
|
|
|
|
implementation 'de.measite.minidns:minidns-hla:0.2.4'
|
|
|
|
implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
|
|
|
|
implementation 'org.whispersystems:signal-protocol-java:2.6.2'
|
|
|
|
implementation 'com.makeramen:roundedimageview:2.3.0'
|
|
|
|
implementation 'jetty:javax.servlet:5.1.12'
|
|
|
|
implementation 'com.google.code.gson:gson:2.8.0'
|
|
|
|
implementation 'com.android.support:multidex:1.0.3'
|
|
|
|
implementation "com.android.support:support-v13:$supportLibVersion"
|
|
|
|
implementation "com.android.support:appcompat-v7:$supportLibVersion"
|
|
|
|
implementation "com.android.support:support-v4:$supportLibVersion"
|
|
|
|
implementation "com.android.support:support-emoji:$supportLibVersion"
|
|
|
|
implementation "com.android.support:support-emoji-bundled:$supportLibVersion"
|
|
|
|
implementation "com.android.support:support-emoji-appcompat:$supportLibVersion"
|
|
|
|
implementation "com.android.support:exifinterface:$supportLibVersion"
|
2018-03-15 21:28:30 +01:00
|
|
|
implementation "com.android.support:design:$supportLibVersion"
|
2018-03-16 21:15:47 +01:00
|
|
|
implementation "com.android.support:cardview-v7:$supportLibVersion"
|
2018-03-12 20:58:37 +01:00
|
|
|
implementation 'com.github.bumptech.glide:glide:3.8.0'
|
|
|
|
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
|
|
|
|
implementation 'com.github.rtoshiro.fullscreenvideoview:fullscreenvideoview:1.1.3'
|
|
|
|
implementation 'pub.devrel:easypermissions:1.1.3'
|
|
|
|
implementation 'com.wefika:flowlayout:0.4.1'
|
|
|
|
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.3'
|
2018-04-08 13:19:21 +02:00
|
|
|
implementation 'in.championswimmer:SimpleFingerGestures_Android_Library:1.2'
|
2018-04-07 23:02:27 +02:00
|
|
|
implementation 'rocks.xmpp:xmpp-addr:0.8.0-SNAPSHOT'
|
2014-10-23 00:17:49 +02:00
|
|
|
}
|
|
|
|
|
2016-04-04 21:25:44 +02:00
|
|
|
ext {
|
2016-09-07 20:19:15 +02:00
|
|
|
travisBuild = System.getenv("TRAVIS") == "true"
|
2017-08-03 10:33:50 +02:00
|
|
|
preDexEnabled = System.getProperty("pre-dex", "true")
|
2016-04-04 21:25:44 +02:00
|
|
|
}
|
|
|
|
|
2014-10-22 21:39:53 +02:00
|
|
|
android {
|
2016-08-25 15:19:51 +02:00
|
|
|
|
2018-02-10 17:33:09 +01:00
|
|
|
compileSdkVersion 27
|
2016-09-07 20:19:15 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
2017-10-06 22:56:10 +02:00
|
|
|
minSdkVersion 16
|
2017-09-25 20:49:18 +02:00
|
|
|
targetSdkVersion 25
|
2016-10-26 22:49:57 +02:00
|
|
|
|
2018-05-17 22:09:49 +02:00
|
|
|
versionCode 231
|
|
|
|
versionName "2.0.1"
|
2016-10-26 22:49:57 +02:00
|
|
|
|
2016-09-07 20:19:15 +02:00
|
|
|
archivesBaseName += "-$versionName"
|
|
|
|
applicationId "de.pixart.messenger"
|
|
|
|
multiDexEnabled true
|
2017-09-25 21:10:49 +02:00
|
|
|
buildConfigField("String", "UPDATE_URL", '"https://xmpp.pix-art.de/Pix-Art_Messenger/update/"')
|
2018-03-21 21:16:36 +01:00
|
|
|
resValue "string", "applicationId", applicationId
|
|
|
|
resValue "string", "app_name", "Pix-Art Messenger"
|
2018-01-19 23:13:04 +01:00
|
|
|
dimension "distribution"
|
2016-09-07 20:19:15 +02:00
|
|
|
}
|
|
|
|
|
2018-03-16 21:56:40 +01:00
|
|
|
dataBinding {
|
|
|
|
enabled true
|
|
|
|
}
|
|
|
|
|
2016-09-07 20:19:15 +02:00
|
|
|
dexOptions {
|
|
|
|
// Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
|
|
|
|
preDexLibraries = preDexEnabled && !travisBuild
|
|
|
|
javaMaxHeapSize "4g"
|
2017-08-03 10:33:50 +02:00
|
|
|
jumboMode true
|
2016-09-07 20:19:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2017-12-27 22:22:07 +01:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2016-09-07 20:19:15 +02:00
|
|
|
}
|
|
|
|
|
2018-01-19 23:13:04 +01:00
|
|
|
flavorDimensions("distribution")
|
|
|
|
|
2016-09-07 20:19:15 +02:00
|
|
|
productFlavors {
|
2017-03-26 20:10:57 +02:00
|
|
|
standardPush
|
2017-03-04 22:14:52 +01:00
|
|
|
standard
|
2016-09-07 20:19:15 +02: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
|
|
|
|
}
|
|
|
|
}
|
2016-09-08 22:47:55 +02:00
|
|
|
buildTypes {
|
|
|
|
debug {
|
2016-11-30 22:52:04 +01:00
|
|
|
minSdkVersion 14
|
2016-09-08 22:47:55 +02:00
|
|
|
debuggable true
|
|
|
|
buildTypes.release.signingConfig = null
|
|
|
|
//applicationIdSuffix ".debug"
|
|
|
|
}
|
|
|
|
|
|
|
|
release {
|
|
|
|
debuggable false
|
|
|
|
signingConfig = signingConfigs.release
|
|
|
|
minifyEnabled true
|
2017-12-27 22:22:07 +01:00
|
|
|
shrinkResources true
|
2016-11-19 23:24:21 +01:00
|
|
|
runProguard true
|
2017-01-25 21:47:09 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
2016-09-08 22:47:55 +02:00
|
|
|
}
|
|
|
|
}
|
2016-09-07 20:19:15 +02:00
|
|
|
}
|
2016-08-25 15:19:51 +02:00
|
|
|
|
2016-09-07 20:19:15 +02:00
|
|
|
lintOptions {
|
2017-09-24 22:04:41 +02:00
|
|
|
disable 'ExtraTranslation', 'MissingTranslation', 'InvalidPackage', 'MissingQuantity', 'AppCompatResource'
|
2016-09-07 20:19:15 +02:00
|
|
|
}
|
2016-08-25 15:19:51 +02:00
|
|
|
|
2016-09-07 20:19:15 +02:00
|
|
|
subprojects {
|
2016-08-25 15:19:51 +02:00
|
|
|
|
2016-09-07 20:19:15 +02:00
|
|
|
afterEvaluate {
|
|
|
|
if (getPlugins().hasPlugin('android') ||
|
|
|
|
getPlugins().hasPlugin('android-library')) {
|
2016-08-25 15:19:51 +02:00
|
|
|
|
2016-09-07 20:19:15 +02:00
|
|
|
configure(android.lintOptions) {
|
|
|
|
disable 'AndroidGradlePluginVersion', 'MissingTranslation'
|
|
|
|
}
|
|
|
|
}
|
2016-08-25 15:19:51 +02:00
|
|
|
|
2016-09-07 20:19:15 +02:00
|
|
|
}
|
|
|
|
}
|
2016-08-25 15:19:51 +02:00
|
|
|
|
2016-09-07 20:19:15 +02:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/BCKEY.DSA'
|
|
|
|
exclude 'META-INF/BCKEY.SF'
|
|
|
|
}
|
|
|
|
}
|