fix: nightly detection

This commit is contained in:
Zane Schepke 2024-07-27 07:37:47 -04:00
parent 737524831b
commit 680fbed28c
1 changed files with 1 additions and 11 deletions

View File

@ -39,18 +39,8 @@ fun Project.isGeneralFlavor(gradle: Gradle): Boolean {
return getCurrentFlavor(gradle) == "general" return getCurrentFlavor(gradle) == "general"
} }
fun Project.isReleaseBuild(): Boolean {
return (gradle.startParameter.taskNames.size > 0 &&
gradle.startParameter.taskNames[0].contains(
"Release",
))
}
fun Project.isNightlyBuild(): Boolean { fun Project.isNightlyBuild(): Boolean {
return (gradle.startParameter.taskNames.size > 0 && return gradle.startParameter.taskRequests.toString().contains("Nightly")
gradle.startParameter.taskNames[0].contains(
"Nightly",
))
} }
fun Project.getSigningProperties() : Properties { fun Project.getSigningProperties() : Properties {