1// Top-level build file where you can add configuration options common to all
2// sub-projects/modules.
3buildscript {
4 repositories {
5 google()
6 jcenter()
7 }
8 dependencies {
9 classpath 'com.android.tools.build:gradle:3.0.1'
10 }
11}
12
13apply plugin: 'com.android.application'
14
15repositories {
16 jcenter()
17 mavenCentral()
18 maven {
19 url 'https://maven.google.com'
20 }
21 maven {
22 url "https://jitpack.io"
23 }
24}
25
26configurations {
27 playstoreImplementation
28 freeImplementation
29}
30
31ext {
32 supportLibVersion = '27.0.2'
33}
34
35dependencies {
36 implementation project(':libs:MemorizingTrustManager')
37 playstoreImplementation 'com.google.android.gms:play-services-gcm:11.6.2'
38 implementation 'org.sufficientlysecure:openpgp-api:10.0'
39 implementation 'com.soundcloud.android:android-crop:1.0.1@aar'
40 implementation "com.android.support:support-v13:$supportLibVersion"
41 implementation "com.android.support:appcompat-v7:$supportLibVersion"
42 implementation "com.android.support:support-emoji:$supportLibVersion"
43 freeImplementation "com.android.support:support-emoji-bundled:$supportLibVersion"
44 implementation 'org.bouncycastle:bcmail-jdk15on:1.56'
45 implementation 'org.jitsi:org.otr4j:0.22'
46 implementation 'org.gnu.inet:libidn:1.15'
47 implementation 'com.google.zxing:core:3.2.1'
48 implementation 'com.google.zxing:android-integration:3.2.1'
49 implementation 'de.measite.minidns:minidns-hla:0.2.4'
50 implementation 'de.timroes.android:EnhancedListView:0.3.4'
51 implementation 'me.leolin:ShortcutBadger:1.1.19@aar'
52 implementation 'com.kyleduo.switchbutton:library:1.2.8'
53 implementation 'org.whispersystems:signal-protocol-java:2.6.2'
54 implementation 'com.makeramen:roundedimageview:2.3.0'
55 implementation "com.wefika:flowlayout:0.4.1"
56 implementation 'net.ypresto.androidtranscoder:android-transcoder:0.2.0'
57 implementation 'com.github.scottyab:showhidepasswordedittext:0.8'
58}
59
60ext {
61 travisBuild = System.getenv("TRAVIS") == "true"
62 preDexEnabled = System.getProperty("pre-dex", "true")
63}
64
65android {
66 compileSdkVersion 26
67 buildToolsVersion "26.0.2"
68
69 defaultConfig {
70 minSdkVersion 14
71 targetSdkVersion 25
72 versionCode 247
73 versionName "1.23.3"
74 archivesBaseName += "-$versionName"
75 applicationId "eu.siacs.conversations"
76 }
77
78 dexOptions {
79 // Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
80 preDexLibraries = preDexEnabled && !travisBuild
81 jumboMode true
82 }
83
84 compileOptions {
85 sourceCompatibility JavaVersion.VERSION_1_8
86 targetCompatibility JavaVersion.VERSION_1_8
87 }
88
89 flavorDimensions("distribution")
90
91 productFlavors {
92 playstore {
93 dimension "distribution"
94 }
95 free {
96 dimension "distribution"
97 }
98 }
99
100 buildTypes {
101 release {
102 shrinkResources true
103 minifyEnabled true
104 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
105 }
106 debug {
107 shrinkResources true
108 minifyEnabled true
109 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
110 }
111 }
112
113
114
115 if(new File("signing.properties").exists()) {
116 Properties props = new Properties()
117 props.load(new FileInputStream(file("signing.properties")))
118
119 signingConfigs {
120 release {
121 storeFile file(props['keystore'])
122 storePassword props['keystore.password']
123 keyAlias props['keystore.alias']
124 keyPassword props['keystore.password']
125 }
126 }
127 buildTypes.release.signingConfig = signingConfigs.release
128 }
129
130 lintOptions {
131 disable 'MissingTranslation', 'InvalidPackage', 'MissingQuantity', 'AppCompatResource'
132 }
133
134 subprojects {
135
136 afterEvaluate {
137 if (getPlugins().hasPlugin('android') ||
138 getPlugins().hasPlugin('android-library')) {
139
140 configure(android.lintOptions) {
141 disable 'AndroidGradlePluginVersion', 'MissingTranslation'
142 }
143 }
144
145 }
146 }
147
148 packagingOptions {
149 exclude 'META-INF/BCKEY.DSA'
150 exclude 'META-INF/BCKEY.SF'
151 }
152}