fix: nightly detection
This commit is contained in:
parent
737524831b
commit
680fbed28c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue