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 }
11}
12
13allprojects {
14 repositories {
15 jcenter()
16 mavenCentral()
17 }
18}
19
20apply plugin: 'com.android.application'
21
22repositories {
23 jcenter()
24 mavenCentral()
25}
26
27dependencies {
28 compile project(':libs:openpgp-api-lib')
29 compile project(':libs:MemorizingTrustManager')
30 compile 'com.android.support:support-v13:23.0.1'
31 compile 'org.bouncycastle:bcprov-jdk15on:1.52'
32 compile 'org.jitsi:org.otr4j:0.22'
33 compile 'org.gnu.inet:libidn:1.15'
34 compile 'com.google.zxing:core:3.2.1'
35 compile 'com.google.zxing:android-integration:3.2.1'
36 compile 'de.measite.minidns:minidns:0.1.7'
37 compile 'de.timroes.android:EnhancedListView:0.3.4'
38 compile 'me.leolin:ShortcutBadger:1.1.3@aar'
39 compile 'com.kyleduo.switchbutton:library:1.2.8'
40 compile 'org.whispersystems:axolotl-android:1.3.4'
41 compile 'com.makeramen:roundedimageview:2.2.0'
42}
43
44android {
45 compileSdkVersion 23
46 buildToolsVersion "23.0.1"
47
48 defaultConfig {
49 minSdkVersion 14
50 targetSdkVersion 21
51 versionCode 95
52 versionName "1.6.9"
53 project.ext.set(archivesBaseName, archivesBaseName + "-" + versionName);
54 }
55
56 compileOptions {
57 sourceCompatibility JavaVersion.VERSION_1_7
58 targetCompatibility JavaVersion.VERSION_1_7
59 }
60
61 //
62 // To sign release builds, create the file `gradle.properties` in
63 // $HOME/.gradle or in your project directory with this content:
64 //
65 // mStoreFile=/path/to/key.store
66 // mStorePassword=xxx
67 // mKeyAlias=alias
68 // mKeyPassword=xxx
69 //
70 if (project.hasProperty('mStoreFile') &&
71 project.hasProperty('mStorePassword') &&
72 project.hasProperty('mKeyAlias') &&
73 project.hasProperty('mKeyPassword')) {
74 signingConfigs {
75 release {
76 storeFile file(mStoreFile)
77 storePassword mStorePassword
78 keyAlias mKeyAlias
79 keyPassword mKeyPassword
80 }
81 }
82 buildTypes.release.signingConfig = signingConfigs.release
83 } else {
84 buildTypes.release.signingConfig = null
85 }
86
87 applicationVariants.all { variant ->
88 if (variant.name.equals('release')) {
89 variant.outputs.each { output ->
90 if (output.zipAlign != null) {
91 output.zipAlign.outputFile = new File(output.outputFile.parent, rootProject.name + "-${variant.versionName}.apk")
92 }
93 }
94 }
95 }
96
97 lintOptions {
98 disable 'ExtraTranslation', 'MissingTranslation', 'InvalidPackage', 'MissingQuantity', 'AppCompatResource'
99 }
100
101 subprojects {
102
103 afterEvaluate {
104 if (getPlugins().hasPlugin('android') ||
105 getPlugins().hasPlugin('android-library')) {
106
107 configure(android.lintOptions) {
108 disable 'AndroidGradlePluginVersion', 'MissingTranslation'
109 }
110 }
111
112 }
113 }
114}