forked from nining377/dolby_beta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (54 loc) · 1.86 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
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.raincat.dolby_beta"
minSdkVersion 21
targetSdkVersion 29
versionCode 354
versionName "3.5.4"
ndk {
abiFilters "arm64-v8a"
}
}
buildTypes {
release {
buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log
shrinkResources false //资源压缩
minifyEnabled false //混淆
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
applicationVariants.all {
variant ->
variant.outputs.all {
//只处理生产版本
if (buildType.name == 'release') {
def createTime = new Date().format("YYYYMMdd", TimeZone.getTimeZone("GMT+08:00"))
// app包名称
outputFileName = "dolby_beta_" + defaultConfig.versionName + "_" + createTime + "-" + buildType.name + ".apk"
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
//xposed库
compileOnly 'de.robv.android.xposed:api:82'
compileOnly 'de.robv.android.xposed:api:82:sources'
implementation 'com.annimon:stream:1.2.2'
implementation 'org.smali:dexlib2:2.3.4'
implementation 'com.google.guava:guava:28.2-android'
implementation 'com.google.code.gson:gson:2.8.9'
implementation project(':hotxposed')
}