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:1.3.1'
10 classpath 'com.google.gms:google-services:1.5.0'
11 }
12}
13
14allprojects {
15 repositories {
16 jcenter()
17 mavenCentral()
18 maven {
19 url 'http://lorenzo.villani.me/android-cropimage/'
20 }
21 }
22}
23
24apply plugin: 'com.android.application'
25apply plugin: 'com.google.gms.google-services'
26
27repositories {
28 jcenter()
29 mavenCentral()
30}
31
32configurations {
33 playstoreCompile
34}
35
36dependencies {
37 compile project(':libs:MemorizingTrustManager')
38 compile 'org.sufficientlysecure:openpgp-api:10.0'
39 compile 'com.soundcloud.android:android-crop:1.0.1@aar'
40 compile 'com.android.support:support-v13:23.0.1'
41 compile 'org.bouncycastle:bcprov-jdk15on:1.52'
42 compile 'org.bouncycastle:bcmail-jdk15on:1.52'
43 compile 'org.jitsi:org.otr4j:0.22'
44 compile 'org.gnu.inet:libidn:1.15'
45 compile 'com.google.zxing:core:3.2.1'
46 compile 'com.google.zxing:android-integration:3.2.1'
47 compile 'de.measite.minidns:minidns:0.1.7'
48 compile 'de.timroes.android:EnhancedListView:0.3.4'
49 compile 'me.leolin:ShortcutBadger:1.1.3@aar'
50 compile 'com.kyleduo.switchbutton:library:1.2.8'
51 compile 'org.whispersystems:axolotl-android:1.3.4'
52 compile 'com.makeramen:roundedimageview:2.2.0'
53 playstoreCompile 'com.google.android.gms:play-services-gcm:8.3.0'
54}
55
56android {
57 compileSdkVersion 23
58 buildToolsVersion "23.0.2"
59
60 defaultConfig {
61 minSdkVersion 14
62 targetSdkVersion 23
63 versionCode 123
64 versionName "1.9.4"
65 archivesBaseName += "-$versionName"
66 }
67
68 compileOptions {
69 sourceCompatibility JavaVersion.VERSION_1_7
70 targetCompatibility JavaVersion.VERSION_1_7
71 }
72
73 productFlavors {
74 playstore
75 free
76 }
77 if (project.hasProperty('mStoreFile') &&
78 project.hasProperty('mStorePassword') &&
79 project.hasProperty('mKeyAlias') &&
80 project.hasProperty('mKeyPassword')) {
81 signingConfigs {
82 release {
83 storeFile file(mStoreFile)
84 storePassword mStorePassword
85 keyAlias mKeyAlias
86 keyPassword mKeyPassword
87 }
88 }
89 buildTypes.release.signingConfig = signingConfigs.release
90 } else {
91 buildTypes.release.signingConfig = null
92 }
93
94 lintOptions {
95 disable 'ExtraTranslation', 'MissingTranslation', 'InvalidPackage', 'MissingQuantity', 'AppCompatResource'
96 }
97
98 subprojects {
99
100 afterEvaluate {
101 if (getPlugins().hasPlugin('android') ||
102 getPlugins().hasPlugin('android-library')) {
103
104 configure(android.lintOptions) {
105 disable 'AndroidGradlePluginVersion', 'MissingTranslation'
106 }
107 }
108
109 }
110 }
111
112 packagingOptions {
113 exclude 'META-INF/BCKEY.DSA'
114 exclude 'META-INF/BCKEY.SF'
115 }
116}