aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-09-27 20:28:25 -0700
committerAllan Wang <me@allanwang.ca>2020-09-27 20:28:25 -0700
commit3570a4e40b499020d3a32e5804fd5c801fb71bec (patch)
tree417ec0ff3af9974bef1ff2dd0021693bb3ee67f5 /app/src/main/kotlin/com/pitchedapps/frost/utils
parent1bf61890ff207e3a1e0b8177d13256e208e1e38c (diff)
downloadfrost-3570a4e40b499020d3a32e5804fd5c801fb71bec.tar.gz
frost-3570a4e40b499020d3a32e5804fd5c801fb71bec.tar.bz2
frost-3570a4e40b499020d3a32e5804fd5c801fb71bec.zip
Update bugsnag
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt
index 65ef3056..d922ff54 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt
@@ -33,8 +33,8 @@ object BuildUtils {
return Data("v${result[1]}", result[2])
}
- fun getAllStages(): Array<String> =
- arrayOf(BUILD_PRODUCTION, BUILD_TEST, BUILD_GITHUB, BUILD_RELEASE, BUILD_UNNAMED)
+ fun getAllStages(): Set<String> =
+ setOf(BUILD_PRODUCTION, BUILD_TEST, BUILD_GITHUB, BUILD_RELEASE, BUILD_UNNAMED)
fun getStage(build: String): String = build.takeIf { it in getAllStages() } ?: BUILD_UNNAMED
}