-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathbuild.gradle
88 lines (75 loc) · 2.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}
apply plugin: 'com.android.application'
repositories {
mavenCentral()
mavenLocal()
maven {
url 'http://4thline.org/m2'
}
}
dependencies {
// Android support
compile 'com.android.support:appcompat-v7:25.3.1'
// Cling
compile group: 'org.fourthline.cling', name: 'cling-core', version:'2.1.1'
compile group: 'org.fourthline.cling', name: 'cling-support', version:'2.1.1'
compile group: 'org.eclipse.jetty', name: 'jetty-server', version:'8.1.18.v20150929'
compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version:'8.1.18.v20150929'
compile group: 'org.eclipse.jetty', name: 'jetty-client', version:'8.1.18.v20150929'
compile group: 'org.slf4j', name: 'slf4j-jdk14', version:'1.7.14'
compile('de.psdev.licensesdialog:licensesdialog:1.8.1') {
exclude module: 'support-v4'
}
}
android {
compileSdkVersion 26
buildToolsVersion "26"
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
}
packagingOptions {
exclude 'META-INF/beans.xml'
}
lintOptions {
abortOnError false
}
signingConfigs { release }
buildTypes {
release {
signingConfig signingConfigs.release
}
}
sourceSets {
main {
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/main/java']
resources.srcDirs = ['src/main/res']
res.srcDirs = ['src/main/res']
assets.srcDirs = ['src/main/assets']
}
}
}
File propFile = file('signing.properties');
if (propFile.exists()) {
def Properties props = new Properties()
props.load(new FileInputStream(propFile))
if (props.containsKey('STORE_FILE') && props.containsKey('STORE_PASSWORD') &&
props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) {
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
} else {
android.buildTypes.release.signingConfig = null
}
} else {
android.buildTypes.release.signingConfig = null
}