[gradle] Fix re-run (#1309)

This commit is contained in:
Howard Wu 2021-10-18 14:39:57 +08:00 committed by GitHub
parent 8ff3c7bf21
commit 9995fcbeb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -359,12 +359,12 @@ val killLspd = task("killLspd", Exec::class) {
isIgnoreExitValue = true isIgnoreExitValue = true
} }
val pushLspd = task("pushLspd", Exec::class) { val pushLspd = task("pushLspd", Exec::class) {
dependsOn("mergeDexDebug") dependsOn("mergeDexRiruDebug")
workingDir("$buildDir/intermediates/dex/debug/mergeDexDebug") workingDir("$buildDir/intermediates/dex/RiruDebug/mergeDexRiruDebug")
commandLine(adb, "push", "classes.dex", "/data/local/tmp/lspd.dex") commandLine(adb, "push", "classes.dex", "/data/local/tmp/lspd.dex")
} }
val pushLspdNative = task("pushLspdNative", Exec::class) { val pushLspdNative = task("pushLspdNative", Exec::class) {
dependsOn("mergeDebugNativeLibs") dependsOn("mergeRiruDebugNativeLibs")
doFirst { doFirst {
val abi: String = ByteArrayOutputStream().use { outputStream -> val abi: String = ByteArrayOutputStream().use { outputStream ->
exec { exec {
@ -373,7 +373,7 @@ val pushLspdNative = task("pushLspdNative", Exec::class) {
} }
outputStream.toString().trim() outputStream.toString().trim()
} }
workingDir("$buildDir/intermediates/merged_native_libs/debug/out/lib/$abi") workingDir("$buildDir/intermediates/merged_native_libs/RiruDebug/out/lib/$abi")
} }
commandLine(adb, "push", "libdaemon.so", "/data/local/tmp/libdaemon.so") commandLine(adb, "push", "libdaemon.so", "/data/local/tmp/libdaemon.so")
} }