Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2f0afa13
authored
Mar 22, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化自动构建脚本
parent
06058269
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
build.gradle
+1
-1
daemon/build.gradle
+4
-1
No files found.
build.gradle
View file @
2f0afa13
...
...
@@ -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
]
}
...
...
daemon/build.gradle
View file @
2f0afa13
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
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment