Added Flavor dev

This commit is contained in:
Adolfo Santiago 2022-01-24 11:07:09 +01:00
parent 22a0efd273
commit 330d1e3898
No known key found for this signature in database
GPG key ID: 244D6F9A317B4A65

View file

@ -21,6 +21,7 @@ package com.keylesspalace.tusky.core.utils
enum class Flavor(private val flavor: String) {
DEV("huskyDev"),
BETA("huskyBeta"),
STABLE("huskyStable"),
NEW_HUSKY("huskyNewhusky");
@ -35,6 +36,7 @@ enum class Flavor(private val flavor: String) {
*/
fun getFlavor(flavor: String) =
when(flavor) {
DEV.flavor -> DEV
BETA.flavor -> BETA
NEW_HUSKY.flavor -> NEW_HUSKY
else -> STABLE