Commit 2f0afa13 by pye52

优化自动构建脚本

parent 06058269
......@@ -35,7 +35,7 @@ task clean(type: Delete) {
appPreBuildTask = appPreBuildTasks[0]
}
} else if (project.name == "daemon") {
Set<Task> daemonAssembleReleaseTasks = project.getTasksByName("build", false)
Set<Task> daemonAssembleReleaseTasks = project.getTasksByName("assembleRelease", false)
if (!daemonAssembleReleaseTasks.isEmpty()) {
daemonBuildTask = daemonAssembleReleaseTasks[0]
}
......
apply plugin: 'com.android.application'
def signed = "Daemon.apk"
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
......@@ -31,6 +32,7 @@ android {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
release {
postprocessing {
......@@ -41,6 +43,7 @@ android {
proguardFiles 'proguard-rules.pro'
}
zipAlignEnabled true
signingConfig signingConfigs.release
}
}
compileOptions {
......@@ -60,7 +63,7 @@ android {
.get()
.outputScope
.apkDatas
.forEach { apkData -> apkData.outputFileName = "Daemon.apk" }
.forEach { apkData -> apkData.outputFileName = signed }
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment