mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 01:45:52 +03:00
Reverts adding force login fallback flag to debug features
This commit is contained in:
parent
c89f28ffb2
commit
4ebaa349c3
3 changed files with 0 additions and 10 deletions
|
@ -54,11 +54,6 @@ class DebugFeaturesStateFactory @Inject constructor(
|
||||||
key = DebugFeatureKeys.onboardingPersonalize,
|
key = DebugFeatureKeys.onboardingPersonalize,
|
||||||
factory = VectorFeatures::isOnboardingPersonalizeEnabled
|
factory = VectorFeatures::isOnboardingPersonalizeEnabled
|
||||||
),
|
),
|
||||||
createBooleanFeature(
|
|
||||||
label = "Force login fallback",
|
|
||||||
key = DebugFeatureKeys.forceLoginFallback,
|
|
||||||
factory = VectorFeatures::isForceLoginFallbackEnabled
|
|
||||||
)
|
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,8 +54,6 @@ class DebugVectorFeatures(
|
||||||
override fun isOnboardingPersonalizeEnabled(): Boolean = read(DebugFeatureKeys.onboardingPersonalize)
|
override fun isOnboardingPersonalizeEnabled(): Boolean = read(DebugFeatureKeys.onboardingPersonalize)
|
||||||
?: vectorFeatures.isOnboardingPersonalizeEnabled()
|
?: vectorFeatures.isOnboardingPersonalizeEnabled()
|
||||||
|
|
||||||
override fun isForceLoginFallbackEnabled(): Boolean = read(DebugFeatureKeys.forceLoginFallback) ?: vectorFeatures.isForceLoginFallbackEnabled()
|
|
||||||
|
|
||||||
fun <T> override(value: T?, key: Preferences.Key<T>) = updatePreferences {
|
fun <T> override(value: T?, key: Preferences.Key<T>) = updatePreferences {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
it.remove(key)
|
it.remove(key)
|
||||||
|
@ -108,5 +106,4 @@ object DebugFeatureKeys {
|
||||||
val onboardingSplashCarousel = booleanPreferencesKey("onboarding-splash-carousel")
|
val onboardingSplashCarousel = booleanPreferencesKey("onboarding-splash-carousel")
|
||||||
val onboardingUseCase = booleanPreferencesKey("onbboarding-splash-carousel")
|
val onboardingUseCase = booleanPreferencesKey("onbboarding-splash-carousel")
|
||||||
val onboardingPersonalize = booleanPreferencesKey("onbboarding-personalize")
|
val onboardingPersonalize = booleanPreferencesKey("onbboarding-personalize")
|
||||||
val forceLoginFallback = booleanPreferencesKey("force-login-fallback")
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,6 @@ interface VectorFeatures {
|
||||||
fun isOnboardingSplashCarouselEnabled(): Boolean
|
fun isOnboardingSplashCarouselEnabled(): Boolean
|
||||||
fun isOnboardingUseCaseEnabled(): Boolean
|
fun isOnboardingUseCaseEnabled(): Boolean
|
||||||
fun isOnboardingPersonalizeEnabled(): Boolean
|
fun isOnboardingPersonalizeEnabled(): Boolean
|
||||||
fun isForceLoginFallbackEnabled(): Boolean
|
|
||||||
|
|
||||||
enum class OnboardingVariant {
|
enum class OnboardingVariant {
|
||||||
LEGACY,
|
LEGACY,
|
||||||
|
@ -40,5 +39,4 @@ class DefaultVectorFeatures : VectorFeatures {
|
||||||
override fun isOnboardingSplashCarouselEnabled() = true
|
override fun isOnboardingSplashCarouselEnabled() = true
|
||||||
override fun isOnboardingUseCaseEnabled() = true
|
override fun isOnboardingUseCaseEnabled() = true
|
||||||
override fun isOnboardingPersonalizeEnabled() = false
|
override fun isOnboardingPersonalizeEnabled() = false
|
||||||
override fun isForceLoginFallbackEnabled() = false
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue