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
3ee8dacf
authored
Mar 20, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时屏蔽daemon的自动打包脚本(打包出来的apk未签名)
parent
4143422a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
build.gradle
+20
-20
No files found.
build.gradle
View file @
3ee8dacf
...
...
@@ -25,24 +25,24 @@ allprojects {
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
Task
appPreBuildTask
;
Task
daemonBuildTask
;
subprojects
.
forEach
{
project
->
if
(
project
.
name
==
"app"
)
{
Set
<
Task
>
appPreBuildTasks
=
project
.
getTasksByName
(
"preBuild"
,
false
)
if
(!
appPreBuildTasks
.
isEmpty
())
{
appPreBuildTask
=
appPreBuildTasks
[
0
]
}
}
else
if
(
project
.
name
==
"daemon"
)
{
Set
<
Task
>
daemonAssembleReleaseTasks
=
project
.
getTasksByName
(
"assembleRelease"
,
false
)
if
(!
daemonAssembleReleaseTasks
.
isEmpty
())
{
daemonBuildTask
=
daemonAssembleReleaseTasks
[
0
]
}
}
}
if
(
appPreBuildTask
!=
null
&&
daemonBuildTask
!=
null
)
{
appPreBuildTask
.
dependsOn
(
daemonBuildTask
)
}
//
Task appPreBuildTask;
//
Task daemonBuildTask;
//
//
subprojects.forEach { project ->
//
if (project.name == "app") {
//
Set<Task> appPreBuildTasks = project.getTasksByName("preBuild", false)
//
if (!appPreBuildTasks.isEmpty()) {
//
appPreBuildTask = appPreBuildTasks[0]
//
}
//
} else if (project.name == "daemon") {
//
Set<Task> daemonAssembleReleaseTasks = project.getTasksByName("assembleRelease", false)
//
if (!daemonAssembleReleaseTasks.isEmpty()) {
//
daemonBuildTask = daemonAssembleReleaseTasks[0]
//
}
//
}
//
}
//
//
if (appPreBuildTask != null && daemonBuildTask != null) {
//
appPreBuildTask.dependsOn(daemonBuildTask)
//
}
}
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