This repository was archived by the owner on May 6, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
53 lines (41 loc) · 1.7 KB
/
build.gradle.kts
File metadata and controls
53 lines (41 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 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")
}
}