forked from Blankj/AndroidUtilCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
67 lines (55 loc) · 1.89 KB
/
build.gradle
File metadata and controls
67 lines (55 loc) · 1.89 KB
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
apply plugin: 'com.android.application'
File signPropertiesFile = rootProject.file('sign/keystore.properties')
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.blankj.androidutilcode"
minSdkVersion 15
targetSdkVersion 16
versionCode 30
versionName "1.5.0"
}
if (signPropertiesFile.exists()) {
Properties properties = new Properties()
properties.load(new FileInputStream(signPropertiesFile))
signingConfigs {
release {
storeFile rootProject.file(properties['keystore'])
storePassword properties['storePassword']
keyAlias properties['keyAlias']
keyPassword properties['keyPassword']
}
}
}
buildTypes {
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
if (signPropertiesFile.exists()) {
signingConfig signingConfigs.release
}
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
final SUPPORT_VERSION = '25.3.1'
final LEAKCANARY_VERSION = '1.5';
def leakCanary = "com.squareup.leakcanary:leakcanary-android-no-op:$LEAKCANARY_VERSION"
compile project(':utilcode')
compile "com.android.support:appcompat-v7:$SUPPORT_VERSION"
compile "com.android.support:support-v4:$SUPPORT_VERSION"
compile "com.android.support:design:$SUPPORT_VERSION"
// LeakCanary
debugCompile "com.squareup.leakcanary:leakcanary-android:$LEAKCANARY_VERSION"
releaseCompile leakCanary
testCompile leakCanary
}