Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
f7abc03d
Commit
f7abc03d
authored
Jul 17, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move copy util_functions.sh from Python scripts to gradle
parent
ef3f188a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
build.gradle.kts
app/build.gradle.kts
+7
-0
build.py
build.py
+0
-4
No files found.
app/build.gradle.kts
View file @
f7abc03d
...
...
@@ -69,6 +69,13 @@ androidExtensions {
isExperimental
=
true
}
val
copyUtils
=
tasks
.
register
(
"copyUtils"
,
Copy
::
class
)
{
from
(
rootProject
.
file
(
"scripts/util_functions.sh"
))
into
(
"src/main/res/raw"
)
}
tasks
[
"preBuild"
]
?.
dependsOn
(
copyUtils
)
dependencies
{
implementation
(
fileTree
(
mapOf
(
"dir"
to
"libs"
,
"include"
to
listOf
(
"*.jar"
))))
implementation
(
project
(
":app:shared"
))
...
...
build.py
View file @
f7abc03d
...
...
@@ -350,10 +350,6 @@ def build_apk(args, module):
def
build_app
(
args
):
header
(
'* Building Magisk Manager'
)
source
=
op
.
join
(
'scripts'
,
'util_functions.sh'
)
target
=
op
.
join
(
'app'
,
'src'
,
'main'
,
'res'
,
'raw'
,
'util_functions.sh'
)
cp
(
source
,
target
)
build_apk
(
args
,
'app'
)
...
...
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