~captainepoch/husky

68e9138d62951850af0e53d0326fffc2466daad2 — Adolfo Santiago 3 months ago bcf653d
Fix Flavor values in Utils
1 files changed, 4 insertions(+), 4 deletions(-)

M husky/app/src/main/java/com/keylesspalace/tusky/core/utils/Flavor.kt
M husky/app/src/main/java/com/keylesspalace/tusky/core/utils/Flavor.kt => husky/app/src/main/java/com/keylesspalace/tusky/core/utils/Flavor.kt +4 -4
@@ 22,20 22,20 @@ package com.keylesspalace.tusky.core.utils
enum class Flavor(private val flavor: String) {

    BETA("huskyBeta"),
    DEV("huskyStable");
    STABLE("huskyStable");

    companion object {

        /**
         * 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.
         */
        fun getFlavor(flavor: String) =
            when(flavor) {
                BETA.flavor -> DEV
                else -> DEV
                BETA.flavor -> BETA
                else -> STABLE
            }
    }
}