forked from LawnchairLauncher/lawnchair
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
93 lines (83 loc) · 2.65 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
89
90
91
92
93
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha5'
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '26.0.0'
signingConfigs {
travis {
storeFile file("debug.jks")
storePassword System.getenv("STORE_PASSWORD")
keyAlias "Lawnchair"
keyPassword System.getenv("KEY_PASSWORD")
}
}
defaultConfig {
minSdkVersion 21
targetSdkVersion 26
applicationId 'ch.deletescape.lawnchair'
buildConfigField "String", "MOBILE_CENTER_KEY", "\"" + System.getenv("MOBILE_CENTER_KEY") + "\""
if (System.getenv("TRAVIS") == "true") {
versionCode = Integer.valueOf(System.getenv("TRAVIS_BUILD_NUMBER"))
versionName = "Travis-" + System.getenv("TRAVIS_BUILD_NUMBER")
} else {
versionCode 1
versionName "prerelease"
}
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
if (System.getenv("TRAVIS") == "true") {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.flags'
if (System.getenv("TRAVIS_EVENT_TYPE") != "pull_request") {
signingConfig signingConfigs.travis
}
} else {
minifyEnabled false
}
}
}
flavorDimensions "variant"
productFlavors {
aosp {
applicationId 'ch.deletescape.lawnchair'
testApplicationId 'ch.deletescape.lawnchair.tests'
dimension "variant"
}
}
sourceSets {
main {
res.srcDirs = ['res']
java.srcDirs = ['src', 'src_config']
manifest.srcFile "AndroidManifest.xml"
}
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
def mobileCenterSdkVersion = '0.10.0'
def supportLibVersion = '26.0.0-beta2'
compile "com.microsoft.azure.mobile:mobile-center-analytics:${mobileCenterSdkVersion}"
compile "com.microsoft.azure.mobile:mobile-center-crashes:${mobileCenterSdkVersion}"
compile "com.microsoft.azure.mobile:mobile-center-distribute:${mobileCenterSdkVersion}"
compile "com.android.support:support-v4:${supportLibVersion}"
compile "com.android.support:recyclerview-v7:${supportLibVersion}"
compile "com.android.support:palette-v7:${supportLibVersion}"
}