1
0
Fork 0

No Issue - Remove debugging code for onboarding

master
Jeff Boek 2019-05-20 19:50:56 -07:00
parent 595f1da3a5
commit 41e5d5cf28
1 changed files with 0 additions and 11 deletions

View File

@ -18,21 +18,11 @@ class FenixOnboarding(private val context: Context) {
get() = getInt(OnboardingKeys.LAST_VERSION.key, 0)
set(version) { edit().putInt(OnboardingKeys.LAST_VERSION.key, version).apply() }
// Temporary variable to keep track for building purposes only
private var tempFinish = false
fun finish() {
if (BuildConfig.DEBUG) {
tempFinish = true
return
}
onboardingPrefs.onboardedVersion = CURRENT_ONBOARDING_VERSION
}
fun userHasBeenOnboarded(): Boolean {
if (!BuildConfig.DEBUG || tempFinish || !ENABLED) return true
return onboardingPrefs.onboardedVersion == CURRENT_ONBOARDING_VERSION
}
@ -43,6 +33,5 @@ class FenixOnboarding(private val context: Context) {
companion object {
private const val CURRENT_ONBOARDING_VERSION = 1
private const val ENABLED = false
}
}