-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
59 lines (54 loc) · 1.95 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
apply plugin: 'com.android.application'
apply from: 'tinker_support.gradle'
android {
signingConfigs {
release {
keyAlias 'ckr'
keyPassword '123456'
storeFile file('ckr.jks')
storePassword '123456'
}
}
compileSdkVersion androidConfig.compileSdkVersion
defaultConfig {
applicationId appConfig.applicatonId
minSdkVersion androidConfig.minSdkVersion
targetSdkVersion androidConfig.targetSdkVersion
versionCode appConfig.versionCode
versionName appConfig.versionName
ndk {
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "mips", "mips64", "x86", "x86_64"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "boolean", "IS_DEBUG", "false"
}
debug {
signingConfig signingConfigs.release
buildConfigField "boolean", "IS_DEBUG", "true"
}
}
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = 'Upgrade' + '-' + buildType.name + '-v' + defaultConfig.versionName + '.' + defaultConfig.versionCode + '.apk'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation applyConfig.appcompat_v7
implementation applyConfig.support_v4
implementation applyConfig.constraint_layout
implementation applyConfig.tinker_lib
annotationProcessor(applyConfig.tinker_anno_processor) { changing = true }
compileOnly(applyConfig.tinker_anno) { changing = true }
implementation applyConfig.bugly_crashreport
implementation applyConfig.bugly_nativecrashreport
implementation applyConfig.okhttp
// implementation project(':upgrade')
implementation applyConfig.app_upgrade
}