aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
blob: d6838b3555cc6e1481f5be868e559d4911ad72fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Top-level build file where you can add configuration options common to all
// sub-projects/modules.
buildscript {
	repositories {
		jcenter()
		mavenCentral()
	}
	dependencies {
		classpath 'com.android.tools.build:gradle:0.12.2'
	}
}

allprojects {
	repositories {
		jcenter()
		mavenCentral()
	}
}

apply plugin: 'android'

repositories {
	jcenter()
	mavenCentral()
	maven {
		url "http://jitsi.github.com/otr4j/repository/"
	}
}

dependencies {
	compile project(':minidns')
	compile project(':openpgpapilib')
	compile project(':memorizingTrustManager')
	compile 'com.android.support:support-v13:19.1.0'
	compile 'org.bouncycastle:bcprov-jdk15on:1.50'
	compile 'net.java:otr4j:0.21'
	compile fileTree(dir: 'libs', include: ['*.jar'])
}

android {
	compileSdkVersion 19
	buildToolsVersion "19.1"

	defaultConfig {
		minSdkVersion 14
		targetSdkVersion 19
		versionCode 32
		versionName "0.8-alpha"
	}

	compileOptions {
		sourceCompatibility JavaVersion.VERSION_1_7
		targetCompatibility JavaVersion.VERSION_1_7
	}
	buildTypes {
		release {
			runProguard true
			proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
		}
	}
	lintOptions {
		disable 'MissingTranslation', 'InvalidPackage'
	}
	subprojects {

		afterEvaluate {
			if (getPlugins().hasPlugin('android') ||
					getPlugins().hasPlugin('android-library')) {

				configure(android.lintOptions) {
					disable 'AndroidGradlePluginVersion', 'MissingTranslation'
				}
			}

		}
	}
}