This repository has been archived by the owner on Jun 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathbuild.gradle
65 lines (55 loc) · 1.41 KB
/
build.gradle
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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.0+'
classpath 'com.alexvasilkov:android_sign:0.2'
}
}
apply plugin: 'android'
apply plugin: 'android_sign'
repositories {
mavenCentral()
maven {
url "http://4thline.org/m2"
}
}
dependencies {
compile 'com.android.support:appcompat-v7:19.1.+'
compile 'com.android.support:mediarouter-v7:19.1.+'
compile 'org.teleal.cling:cling-core:1.0.5+'
compile 'org.teleal.cling:cling-support:1.0.5+'
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
// Caused by cling, because they apparently include APIs for other platforms.
lintOptions {
disable 'InvalidPackage'
}
signingConfigs {
release {
// Android Studio does not pass environment variables.
// This means you have to use the command line for release builds.
def ks = System.getenv("KEYSTORE")
def ka = System.getenv("KEY_ALIAS")
if (ks != null && ka != null) {
storeFile file(ks)
keyAlias ka
}
}
}
buildTypes {
debug {
packageNameSuffix ".debug"
debuggable true
}
release {
signingConfig signingConfigs.release
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}