mirror of
https://github.com/PenumbraOS/mabl.git
synced 2026-02-03 17:40:45 -06:00
53 lines
1.7 KiB
Plaintext
53 lines
1.7 KiB
Plaintext
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.application) apply false
|
|
alias(libs.plugins.kotlin.android) apply false
|
|
alias(libs.plugins.kotlin.compose) apply false
|
|
alias(libs.plugins.android.library) apply false
|
|
}
|
|
|
|
tasks {
|
|
/**
|
|
* Gradle task to install the demo plugin's APK onto connected devices.
|
|
* Requires 'adb' to be in the system's PATH or specified with a full path
|
|
*/
|
|
register<Exec>("installDemoPlugins") {
|
|
description = "Installs the demo plugin's APK on connected device(s) using adb"
|
|
group = "install"
|
|
|
|
val serviceProject = project(":plugins:demo")
|
|
|
|
val serviceApkPath =
|
|
"${serviceProject.buildDir}/outputs/apk/debug/${serviceProject.name}-debug.apk"
|
|
|
|
commandLine("bash", "-c", "adb install -r $serviceApkPath")
|
|
|
|
onlyIf {
|
|
File(serviceApkPath).exists()
|
|
}
|
|
|
|
dependsOn(":plugins:demo:assembleDebug")
|
|
}
|
|
/**
|
|
* Gradle task to install the OpenAI plugin's APK onto connected devices.
|
|
* Requires 'adb' to be in the system's PATH or specified with a full path
|
|
*/
|
|
register<Exec>("installOpenAiPlugin") {
|
|
description = "Installs the OpenAI plugin's APK on connected device(s) using adb"
|
|
group = "install"
|
|
|
|
val serviceProject = project(":plugins:openai")
|
|
|
|
val serviceApkPath =
|
|
"${serviceProject.buildDir}/outputs/apk/debug/${serviceProject.name}-debug.apk"
|
|
|
|
commandLine("bash", "-c", "adb install -r $serviceApkPath")
|
|
|
|
onlyIf {
|
|
File(serviceApkPath).exists()
|
|
}
|
|
|
|
dependsOn(":plugins:openai:assembleDebug")
|
|
}
|
|
} |