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