Fix Flavor values in Utils
This commit is contained in:
parent
bcf653da28
commit
68e9138d62
1 changed files with 4 additions and 4 deletions
|
@ -22,20 +22,20 @@ package com.keylesspalace.tusky.core.utils
|
||||||
enum class Flavor(private val flavor: String) {
|
enum class Flavor(private val flavor: String) {
|
||||||
|
|
||||||
BETA("huskyBeta"),
|
BETA("huskyBeta"),
|
||||||
DEV("huskyStable");
|
STABLE("huskyStable");
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the flavor enum (recommended use: using <code>Flavor.<FLAVOR></code>
|
* Get the flavor enum (recommended use: using <code>Flavor.<FLAVOR></code>
|
||||||
* (<FLAVOR>: DEV, PRE, PROD).
|
* (<FLAVOR>: BETA, STABLE).
|
||||||
*
|
*
|
||||||
* @param flavor The name of the Flavor.
|
* @param flavor The name of the Flavor.
|
||||||
*/
|
*/
|
||||||
fun getFlavor(flavor: String) =
|
fun getFlavor(flavor: String) =
|
||||||
when(flavor) {
|
when(flavor) {
|
||||||
BETA.flavor -> DEV
|
BETA.flavor -> BETA
|
||||||
else -> DEV
|
else -> STABLE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue