forked from lendylongli/qianghongbao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (42 loc) · 1.43 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
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.codeboy.qianghongbao"
minSdkVersion 16
targetSdkVersion 21
versionCode 307
versionName "3.0.7"
}
lintOptions {
abortOnError false
}
signingConfigs {
codeboy {
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles 'proguard-android.txt'
}
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
def keystore = properties.getProperty("KEY_STORE")
def storepasswd = properties.getProperty("KEY_STORE_PASSWORD")
def alias = properties.getProperty("KEY_ALIAS")
def aliaspasswd = properties.getProperty("KEY_ALIAS_PASSWORD")
if(keystore != null && storepasswd != null && alias != null && aliaspasswd != null) {
android.signingConfigs.debug.storeFile = file(keystore);
android.signingConfigs.debug.storePassword = storepasswd;
android.signingConfigs.debug.keyAlias = alias;
android.signingConfigs.debug.keyPassword = aliaspasswd;
}
}
useLibrary 'org.apache.http.legacy'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1'
}