1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 02:47:34 +00:00

Ladybird/Android: Move gradle files to Ladybird/Android directory

And add documentation for how to use the thing
This commit is contained in:
Andrew Kaster 2023-09-14 15:59:33 -06:00 committed by Andrew Kaster
parent ec05b4bc0a
commit 78ebeb6a5a
10 changed files with 35 additions and 11 deletions

View file

@ -1,8 +1,8 @@
import com.android.build.gradle.internal.tasks.factory.dependsOn
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("com.android.application") version "8.1.1"
id("org.jetbrains.kotlin.android") version "1.9.0"
}
var cacheDir = System.getenv("SERENITY_CACHE_DIR") ?: "$buildDir/caches"
@ -11,11 +11,12 @@ task<Exec>("buildLagomTools") {
commandLine = listOf("./BuildLagomTools.sh")
environment = mapOf(
"BUILD_DIR" to "$buildDir",
"CACHE_DIR" to "$cacheDir",
"CACHE_DIR" to cacheDir,
"PATH" to System.getenv("PATH")!!
)
}
tasks.named("preBuild").dependsOn("buildLagomTools")
tasks.named("prepareKotlinBuildScriptModel").dependsOn("buildLagomTools")
android {
namespace = "org.serenityos.ladybird"