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}
40
41android {
42 compileSdkVersion 22
43 buildToolsVersion "22.0.1"
44
45 defaultConfig {
46 minSdkVersion 14
47 targetSdkVersion 21
48 versionCode 78
49 versionName "1.5.0"
50 }
51
52 compileOptions {
53 sourceCompatibility JavaVersion.VERSION_1_7
54 targetCompatibility JavaVersion.VERSION_1_7
55 }
56
57 //
58 // To sign release builds, create the file `gradle.properties` in
59 // $HOME/.gradle or in your project directory with this content:
60 //
61 // mStoreFile=/path/to/key.store
62 // mStorePassword=xxx
63 // mKeyAlias=alias
64 // mKeyPassword=xxx
65 //
66 if (project.hasProperty('mStoreFile') &&
67 project.hasProperty('mStorePassword') &&
68 project.hasProperty('mKeyAlias') &&
69 project.hasProperty('mKeyPassword')) {
70 signingConfigs {
71 release {
72 storeFile file(mStoreFile)
73 storePassword mStorePassword
74 keyAlias mKeyAlias
75 keyPassword mKeyPassword
76 }
77 }
78 buildTypes.release.signingConfig = signingConfigs.release
79 } else {
80 buildTypes.release.signingConfig = null
81 }
82
83 applicationVariants.all { variant ->
84 if (variant.name.equals('release')) {
85 variant.outputs.each { output ->
86 if (output.zipAlign != null) {
87 output.zipAlign.outputFile = new File(output.outputFile.parent, rootProject.name + "-${variant.versionName}.apk")
88 }
89 output.packageApplication.outputFile = new File(output.outputFile.parent, output.packageApplication.outputFile.name
90 .replace(".apk", "-${variant.versionName}.apk"))
91 }
92 }
93 }
94
95 lintOptions {
96 disable 'ExtraTranslation', 'MissingTranslation', 'InvalidPackage', 'MissingQuantity'
97 }
98
99 subprojects {
100
101 afterEvaluate {
102 if (getPlugins().hasPlugin('android') ||
103 getPlugins().hasPlugin('android-library')) {
104
105 configure(android.lintOptions) {
106 disable 'AndroidGradlePluginVersion', 'MissingTranslation'
107 }
108 }
109
110 }
111 }
112}