1// Top-level build file where you can add configuration options common to all
2// sub-projects/modules.
3buildscript {
4 repositories {
5 jcenter()
6 mavenCentral()
7 }
8 dependencies {
9 classpath 'com.android.tools.build:gradle:2.0.0'
10 }
11}
12
13apply plugin: 'com.android.application'
14
15repositories {
16 jcenter()
17 mavenCentral()
18}
19
20configurations {
21 playstoreCompile
22}
23
24dependencies {
25 compile project(':libs:MemorizingTrustManager')
26 playstoreCompile 'com.google.android.gms:play-services-gcm:10.0.1'
27 compile 'org.sufficientlysecure:openpgp-api:10.0'
28 compile 'com.soundcloud.android:android-crop:1.0.1@aar'
29 compile 'com.android.support:support-v13:25.1.0'
30 compile 'org.bouncycastle:bcprov-jdk15on:1.52'
31 compile 'org.bouncycastle:bcmail-jdk15on:1.52'
32 compile 'org.jitsi:org.otr4j:0.22'
33 compile 'org.gnu.inet:libidn:1.15'
34 compile 'com.google.zxing:core:3.2.1'
35 compile 'com.google.zxing:android-integration:3.2.1'
36 compile 'de.measite.minidns:minidns:0.1.7'
37 compile 'de.timroes.android:EnhancedListView:0.3.4'
38 compile 'me.leolin:ShortcutBadger:1.1.10@aar'
39 compile 'com.kyleduo.switchbutton:library:1.2.8'
40 compile 'org.whispersystems:axolotl-android:1.3.4'
41 compile 'com.makeramen:roundedimageview:2.2.0'
42 compile "com.wefika:flowlayout:0.4.1"
43}
44
45ext {
46 travisBuild = System.getenv("TRAVIS") == "true"
47 // allows for -Dpre-dex=false to be set
48 preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))
49}
50
51android {
52 compileSdkVersion 25
53 buildToolsVersion "25.0.2"
54
55 defaultConfig {
56 minSdkVersion 14
57 targetSdkVersion 25
58 versionCode 189
59 versionName "1.15.3"
60 archivesBaseName += "-$versionName"
61 applicationId "eu.siacs.conversations"
62 }
63
64 dexOptions {
65 // Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
66 preDexLibraries = preDexEnabled && !travisBuild
67 }
68
69 compileOptions {
70 sourceCompatibility JavaVersion.VERSION_1_7
71 targetCompatibility JavaVersion.VERSION_1_7
72 }
73
74 productFlavors {
75 playstore
76 free
77 }
78 if (project.hasProperty('mStoreFile') &&
79 project.hasProperty('mStorePassword') &&
80 project.hasProperty('mKeyAlias') &&
81 project.hasProperty('mKeyPassword')) {
82 signingConfigs {
83 release {
84 storeFile file(mStoreFile)
85 storePassword mStorePassword
86 keyAlias mKeyAlias
87 keyPassword mKeyPassword
88 }
89 }
90 buildTypes.release.signingConfig = signingConfigs.release
91 } else {
92 buildTypes.release.signingConfig = null
93 }
94
95 lintOptions {
96 disable 'ExtraTranslation', 'MissingTranslation', 'InvalidPackage', 'MissingQuantity', 'AppCompatResource'
97 }
98
99 subprojects {
100
101 afterEvaluate {
102 if (getPlugins().hasPlugin('android') ||
103 getPlugins().hasPlugin('android-library')) {
104
105 configure(android.lintOptions) {
106 disable 'AndroidGradlePluginVersion', 'MissingTranslation'
107 }
108 }
109
110 }
111 }
112
113 packagingOptions {
114 exclude 'META-INF/BCKEY.DSA'
115 exclude 'META-INF/BCKEY.SF'
116 }
117}