fix: tasker launch of shortcuts (#290)

This commit is contained in:
Zane Schepke
2024-07-29 17:14:08 -04:00
committed by GitHub
parent a5e9aa83b8
commit 594834a908
6 changed files with 50 additions and 28 deletions
+3 -1
View File
@@ -1,5 +1,5 @@
object Constants {
const val VERSION_NAME = "3.4.8"
const val VERSION_NAME = "3.4.8"
const val JVM_TARGET = "17"
const val VERSION_CODE = 34800
const val TARGET_SDK = 34
@@ -14,8 +14,10 @@ object Constants {
const val RELEASE = "release"
const val NIGHTLY = "nightly"
const val PRERELEASE = "prerelease"
const val DEBUG = "debug"
const val TYPE = "type"
const val NIGHTLY_CODE = 42
const val PRERELEASE_CODE = 99
}
+3 -3
View File
@@ -23,10 +23,10 @@ fun Project.getCurrentFlavor(): String {
return flavor
}
fun Project.isNightlyBuild(): Boolean {
fun Project.getBuildTaskName(): String {
val taskRequestsStr = gradle.startParameter.taskRequests[0].toString()
return taskRequestsStr.lowercase().contains(Constants.NIGHTLY).also {
project.logger.lifecycle("Nightly build: $it")
return taskRequestsStr.also {
project.logger.lifecycle("Build task: $it")
}
}