Commit f7abc03d authored by topjohnwu's avatar topjohnwu

Move copy util_functions.sh from Python scripts to gradle

parent ef3f188a
...@@ -69,6 +69,13 @@ androidExtensions { ...@@ -69,6 +69,13 @@ androidExtensions {
isExperimental = true 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 { dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation(project(":app:shared")) implementation(project(":app:shared"))
......
...@@ -350,10 +350,6 @@ def build_apk(args, module): ...@@ -350,10 +350,6 @@ def build_apk(args, module):
def build_app(args): def build_app(args):
header('* Building Magisk Manager') 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') build_apk(args, 'app')
......
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 to comment