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