forked from openxc/openxc-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (49 loc) · 1.77 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.github.triplet.gradle:play-publisher:1.1.2'
classpath 'com.bugsnag:bugsnag-android-gradle-plugin:2.0.2'
}
}
allprojects {
repositories {
jcenter()
}
}
ext {
compileSdkVersion = 22
buildToolsVersion = "22.0.1"
minSdkVersion = 10
targetSdkVersion = 22
versionMajor = 6
versionMinor = 1
versionPatch = 7
versionCode = versionMajor * 1000000 + versionMinor * 1000 + versionPatch
versionName = "${versionMajor}.${versionMinor}.${versionPatch}"
def Properties properties = new Properties()
if(file('local.properties').exists())
properties.load(project.rootProject.file('local.properties').newDataInputStream())
keystorePassword = getValue(properties, "KEYSTORE_PASS")
keyAlias = getValue(properties, "ALIAS_NAME")
keyPassword = getValue(properties, "ALIAS_PASS")
bugsnagToken = getValue(properties, "BUGSNAG_TOKEN")
serviceAccountEmail = getValue(properties, "SERVICE_EMAIL")
bintrayUser = getValue(properties, "BINTRAY_USER")
bintrayPassword = getValue(properties, "BINTRAY_API_KEY")
}
def getValue(def props, def name){
if(props && props[name])
return props[name]
else if(System.getenv(name))
return System.getenv(name)
else {
logger.log(LogLevel.ERROR, name + " has not been provided, add it to your local.properties file")
return "DEFAULT"
}
}