[gradle] Fix build (#246)
This commit is contained in:
parent
5b49351b7e
commit
5694e459a3
|
|
@ -84,9 +84,9 @@ android {
|
||||||
isShrinkResources = false
|
isShrinkResources = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
applicationVariants.forEach { variant ->
|
applicationVariants.all {
|
||||||
variant.outputs.map { it as BaseVariantOutputImpl }.forEach { output ->
|
outputs.map { it as BaseVariantOutputImpl }.forEach { output ->
|
||||||
output.outputFileName = "LSPosedManager-${defaultConfig.versionName}-${defaultConfig.versionCode}-${variant.buildType.name}.apk"
|
output.outputFileName = "LSPosedManager-${defaultConfig.versionName}-${defaultConfig.versionCode}-${buildType.name}.apk"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -174,8 +174,8 @@ afterEvaluate {
|
||||||
val excludeList = arrayOf("util_functions.sh")
|
val excludeList = arrayOf("util_functions.sh")
|
||||||
doLast {
|
doLast {
|
||||||
val dexOutPath = if (variant.name.contains("release"))
|
val dexOutPath = if (variant.name.contains("release"))
|
||||||
"buildDir/intermediates/dex/variantLowered/minify${variantCapped}WithR8" else
|
"$buildDir/intermediates/dex/$variantLowered/minify${variantCapped}WithR8" else
|
||||||
"buildDir/intermediates/dex/variantLowered/mergeDex$variantCapped"
|
"$buildDir/intermediates/dex/$variantLowered/mergeDex$variantCapped"
|
||||||
copy {
|
copy {
|
||||||
from(dexOutPath) {
|
from(dexOutPath) {
|
||||||
rename("classes.dex", "lspd.dex")
|
rename("classes.dex", "lspd.dex")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue