diff options
author | Allan Wang <me@allanwang.ca> | 2020-09-27 20:28:25 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-09-27 20:28:25 -0700 |
commit | 3570a4e40b499020d3a32e5804fd5c801fb71bec (patch) | |
tree | 417ec0ff3af9974bef1ff2dd0021693bb3ee67f5 /app/src/main/kotlin/com/pitchedapps/frost/utils | |
parent | 1bf61890ff207e3a1e0b8177d13256e208e1e38c (diff) | |
download | frost-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.kt | 4 |
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 } |