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.2.3'
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:21.0.3'
31 compile 'org.bouncycastle:bcprov-jdk15on:1.51'
32 compile 'org.jitsi:org.otr4j:0.22'
33 compile 'org.gnu.inet:libidn:1.15'
34 compile 'com.google.zxing:core:3.1.0'
35 compile 'com.google.zxing:android-integration:3.1.0'
36 compile 'de.measite.minidns:minidns:0.1.3'
37 compile 'de.timroes.android:EnhancedListView:0.3.4'
38 compile 'me.leolin:ShortcutBadger:1.1.1@aar'
39 compile 'com.kyleduo.switchbutton:library:1.2.8'
40}
41
42android {
43 compileSdkVersion 22
44 buildToolsVersion "22.0.1"
45
46 defaultConfig {
47 minSdkVersion 14
48 targetSdkVersion 21
49 versionCode 78
50 versionName "1.5.0"
51 }
52
53 compileOptions {
54 sourceCompatibility JavaVersion.VERSION_1_7
55 targetCompatibility JavaVersion.VERSION_1_7
56 }
57
58 //
59 // To sign release builds, create the file `gradle.properties` in
60 // $HOME/.gradle or in your project directory with this content:
61 //
62 // mStoreFile=/path/to/key.store
63 // mStorePassword=xxx
64 // mKeyAlias=alias
65 // mKeyPassword=xxx
66 //
67 if (project.hasProperty('mStoreFile') &&
68 project.hasProperty('mStorePassword') &&
69 project.hasProperty('mKeyAlias') &&
70 project.hasProperty('mKeyPassword')) {
71 signingConfigs {
72 release {
73 storeFile file(mStoreFile)
74 storePassword mStorePassword
75 keyAlias mKeyAlias
76 keyPassword mKeyPassword
77 }
78 }
79 buildTypes.release.signingConfig = signingConfigs.release
80 } else {
81 buildTypes.release.signingConfig = null
82 }
83
84 applicationVariants.all { variant ->
85 if (variant.name.equals('release')) {
86 variant.outputs.each { output ->
87 if (output.zipAlign != null) {
88 output.zipAlign.outputFile = new File(output.outputFile.parent, rootProject.name + "-${variant.versionName}.apk")
89 }
90 output.packageApplication.outputFile = new File(output.outputFile.parent, output.packageApplication.outputFile.name
91 .replace(".apk", "-${variant.versionName}.apk"))
92 }
93 }
94 }
95
96 lintOptions {
97 disable 'ExtraTranslation', 'MissingTranslation', 'InvalidPackage', 'MissingQuantity'
98 }
99
100 subprojects {
101
102 afterEvaluate {
103 if (getPlugins().hasPlugin('android') ||
104 getPlugins().hasPlugin('android-library')) {
105
106 configure(android.lintOptions) {
107 disable 'AndroidGradlePluginVersion', 'MissingTranslation'
108 }
109 }
110
111 }
112 }
113}