fix: nightly check

This commit is contained in:
Zane Schepke 2024-07-27 07:54:52 -04:00
parent 4ffc5d4069
commit f822292584
1 changed files with 8 additions and 1 deletions

View File

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