mirror of
https://github.com/wgtunnel/android.git
synced 2026-06-02 08:33:40 +02:00
fix: tasker launch of shortcuts (#290)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user