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:EnhancedListView')
37 playstoreImplementation 'com.google.android.gms:play-services-gcm:11.8.0'
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:cardview-v7:$supportLibVersion"
43 implementation "com.android.support:support-emoji-appcompat:$supportLibVersion"
44 implementation "com.android.support:support-emoji:$supportLibVersion"
45 implementation "com.android.support:design:$supportLibVersion"
46 freeImplementation "com.android.support:support-emoji-bundled:$supportLibVersion"
47 implementation 'org.bouncycastle:bcmail-jdk15on:1.58'
48 implementation 'org.jitsi:org.otr4j:0.22'
49 implementation 'org.gnu.inet:libidn:1.15'
50 implementation 'com.google.zxing:core:3.3.0'
51 implementation 'de.measite.minidns:minidns-hla:0.2.4'
52 implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
53 implementation 'com.kyleduo.switchbutton:library:1.2.8'
54 implementation 'org.whispersystems:signal-protocol-java:2.6.2'
55 implementation 'com.makeramen:roundedimageview:2.3.0'
56 implementation "com.wefika:flowlayout:0.4.1"
57 implementation 'net.ypresto.androidtranscoder:android-transcoder:0.2.0'
58}
59
60ext {
61 travisBuild = System.getenv("TRAVIS") == "true"
62 preDexEnabled = System.getProperty("pre-dex", "true")
63}
64
65android {
66 compileSdkVersion 27
67 buildToolsVersion "27.0.3"
68
69 defaultConfig {
70 minSdkVersion 14
71 targetSdkVersion 25
72 versionCode 255
73 versionName "1.23.8"
74 archivesBaseName += "-$versionName"
75 applicationId "eu.siacs.conversations"
76 }
77
78 dataBinding {
79 enabled true
80 }
81
82 dexOptions {
83 // Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
84 preDexLibraries = preDexEnabled && !travisBuild
85 jumboMode true
86 }
87
88 compileOptions {
89 sourceCompatibility JavaVersion.VERSION_1_8
90 targetCompatibility JavaVersion.VERSION_1_8
91 }
92
93 flavorDimensions("distribution")
94
95 productFlavors {
96 playstore {
97 dimension "distribution"
98 }
99 free {
100 dimension "distribution"
101 }
102 }
103
104 buildTypes {
105 release {
106 shrinkResources true
107 minifyEnabled true
108 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
109 }
110 debug {
111 shrinkResources true
112 minifyEnabled true
113 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
114 }
115 }
116
117
118
119 if(new File("signing.properties").exists()) {
120 Properties props = new Properties()
121 props.load(new FileInputStream(file("signing.properties")))
122
123 signingConfigs {
124 release {
125 storeFile file(props['keystore'])
126 storePassword props['keystore.password']
127 keyAlias props['keystore.alias']
128 keyPassword props['keystore.password']
129 }
130 }
131 buildTypes.release.signingConfig = signingConfigs.release
132 }
133
134 lintOptions {
135 disable 'MissingTranslation', 'InvalidPackage', 'MissingQuantity', 'AppCompatResource'
136 }
137
138 subprojects {
139
140 afterEvaluate {
141 if (getPlugins().hasPlugin('android') ||
142 getPlugins().hasPlugin('android-library')) {
143
144 configure(android.lintOptions) {
145 disable 'AndroidGradlePluginVersion', 'MissingTranslation'
146 }
147 }
148
149 }
150 }
151
152 packagingOptions {
153 exclude 'META-INF/BCKEY.DSA'
154 exclude 'META-INF/BCKEY.SF'
155 }
156}