updated deploying

This commit is contained in:
Odweta
2024-12-22 20:28:50 +01:00
parent 3d0c752f0c
commit 6dae99d311
4 changed files with 29 additions and 8 deletions
+20
View File
@@ -4,6 +4,26 @@ plugins {
alias(libs.plugins.kotlin.compose)
}
tasks.register("printVersionName") {
doLast {
println(android.defaultConfig.versionName)
}
}
tasks.register("deploy") {
dependsOn("assembleDebug")
dependsOn("installDebug")
doLast {
exec {
commandLine("adb", "shell", "am", "start", "-n", "com.odweta.solon/.MainActivity")
}
}
}
tasks.register("b") {
dependsOn("assembleDebug")
}
android {
namespace = "com.odweta.solon"
compileSdk = 34
+1 -1
View File
@@ -3,4 +3,4 @@ plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.compose) apply false
}
}
-3
View File
@@ -1,3 +0,0 @@
#!/bin/bash
cp app/build/outputs/apk/release/com.odweta.solon_$1.apk ../release/