Fix gradle task order
All checks were successful
Build / build (push) Successful in 8m21s

This commit is contained in:
Tim Kluge 2025-05-28 17:29:50 +02:00
parent da448b7407
commit 6db3097e66
2 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@
.cxx
local.properties
/app/release
app/manifest.json

View File

@ -1,4 +1,5 @@
import java.util.Base64
import com.android.build.gradle.tasks.ProcessApplicationManifest
plugins {
alias(libs.plugins.android.application)
@ -60,7 +61,7 @@ tasks.register("generateManifest") {
group = "build"
doLast {
val baseUrl = System.getenv("BASE_URL")
val baseUrl = System.getenv("BASE_URL") ?: "https://github.com/timklge/karoo-powerbar/releases/latest/download"
val manifestFile = file("$projectDir/manifest.json")
val manifest = mapOf(
"label" to "Powerbar",
@ -95,6 +96,11 @@ tasks.named("assemble") {
dependsOn("generateManifest")
}
tasks.withType<ProcessApplicationManifest>().configureEach {
if (name == "processDebugMainManifest" || name == "processReleaseMainManifest") {
dependsOn(tasks.named("generateManifest"))
}
}
dependencies {
implementation(libs.hammerhead.karoo.ext)