forked from yint-tech/sekiro-open
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (48 loc) · 1.58 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
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.virjar.sekiro.demoapp"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
signingConfigs {
release {
storeFile rootProject.file('hermes_key')
storePassword "hermes"
keyAlias "hermes"
keyPassword "hermes"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.release
}
}
//在apk文件后边生成版本号信息
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "sekiro-demo${defaultConfig.versionName}_${releaseTime()}.apk"
}
}
}
static def releaseTime() {
return new Date().format("yyyyMMddhhmm", TimeZone.getTimeZone("UTC"))
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
compileOnly 'org.projectlombok:lombok:1.18.20'
compileOnly 'de.robv.android.xposed:api:82'
compileOnly 'de.robv.android.xposed:api:82:sources'
implementation('com.virjar.sekiro.business:sekiro-business-api:1.4')
}