This commit is contained in:
parent
da448b7407
commit
6db3097e66
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@
|
|||||||
.cxx
|
.cxx
|
||||||
local.properties
|
local.properties
|
||||||
/app/release
|
/app/release
|
||||||
|
app/manifest.json
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import java.util.Base64
|
import java.util.Base64
|
||||||
|
import com.android.build.gradle.tasks.ProcessApplicationManifest
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.android.application)
|
alias(libs.plugins.android.application)
|
||||||
@ -60,7 +61,7 @@ tasks.register("generateManifest") {
|
|||||||
group = "build"
|
group = "build"
|
||||||
|
|
||||||
doLast {
|
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 manifestFile = file("$projectDir/manifest.json")
|
||||||
val manifest = mapOf(
|
val manifest = mapOf(
|
||||||
"label" to "Powerbar",
|
"label" to "Powerbar",
|
||||||
@ -95,6 +96,11 @@ tasks.named("assemble") {
|
|||||||
dependsOn("generateManifest")
|
dependsOn("generateManifest")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<ProcessApplicationManifest>().configureEach {
|
||||||
|
if (name == "processDebugMainManifest" || name == "processReleaseMainManifest") {
|
||||||
|
dependsOn(tasks.named("generateManifest"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.hammerhead.karoo.ext)
|
implementation(libs.hammerhead.karoo.ext)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user