From 680fbed28c3e79b9e9065205da5b8d0451059660 Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Sat, 27 Jul 2024 07:37:47 -0400 Subject: [PATCH] fix: nightly detection --- buildSrc/src/main/kotlin/Extensions.kt | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/buildSrc/src/main/kotlin/Extensions.kt b/buildSrc/src/main/kotlin/Extensions.kt index fcf270a..b5a89ec 100644 --- a/buildSrc/src/main/kotlin/Extensions.kt +++ b/buildSrc/src/main/kotlin/Extensions.kt @@ -39,18 +39,8 @@ 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.taskNames.size > 0 && - gradle.startParameter.taskNames[0].contains( - "Nightly", - )) + return gradle.startParameter.taskRequests.toString().contains("Nightly") } fun Project.getSigningProperties() : Properties {