-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
102 lines (89 loc) · 2.46 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
94
95
96
97
98
99
100
101
102
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
}
// Exclude the version that the android plugin depends on.
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
}
allprojects {
repositories {
jcenter()
mavenCentral()
}
}
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
ext {
supportLibVersion = "25.3.1"
}
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "nu.staldal.djdplayer"
targetSdkVersion 22
dependencies {
compile "com.android.support:appcompat-v7:${supportLibVersion}"
testCompile 'junit:junit:4.12'
}
}
if (project.hasProperty("KEY_STORE")) {
signingConfigs {
release {
storeFile file(KEY_STORE)
storePassword KEY_STORE_PASSWORD
keyAlias KEY_ALIAS
keyPassword KEY_PASSWORD
}
}
} else {
signingConfigs {
release {
}
}
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
debuggable false
signingConfig signingConfigs.release
}
preview {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
debuggable true
signingConfig signingConfigs.release
}
debug {
minifyEnabled false
shrinkResources false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
debuggable true
// signing debug
}
}
productFlavors {
mobile {
minSdkVersion 16
}
tv {
minSdkVersion 21
dependencies {
tvCompile "com.android.support:leanback-v17:${supportLibVersion}"
}
}
}
}