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