aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'app/build.gradle.kts')
-rw-r--r--app/build.gradle.kts10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 88a15211..e5d0c5d2 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -20,14 +20,6 @@ crowdin {
skipCleanup = false
}
-fun isSnapshot(): Boolean {
- with(project.providers) {
- val workflow = environmentVariable("GITHUB_WORKFLOW")
- val snapshot = environmentVariable("SNAPSHOT")
- return workflow.isPresent || snapshot.isPresent
- }
-}
-
android {
compileOptions { isCoreLibraryDesugaringEnabled = true }
@@ -96,7 +88,7 @@ dependencies {
implementation(libs.thirdparty.sshauth)
implementation(libs.thirdparty.sshj)
- if (isSnapshot()) {
+ if (snapshot.snapshot) {
implementation(libs.thirdparty.whatthestack)
} else {
debugImplementation(libs.thirdparty.whatthestack)