diff options
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt | 14 | ||||
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt | 16 |
2 files changed, 25 insertions, 5 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt index 5f0bdc41..7eb6bae9 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt @@ -83,9 +83,6 @@ object Prefs : KPref() { var notificationKeywords: StringSet by kpref("notification_keywords", mutableSetOf<String>()) - //check if this is the first time launching the web overlay; show snackbar if true - var firstWebOverlay: Boolean by kpref("first_web_overlay", true) - /** * Cache like value to determine if user has or had pro * In most cases, [com.pitchedapps.frost.utils.iab.IS_FROST_PRO] should be looked at instead @@ -96,9 +93,16 @@ object Prefs : KPref() { var debugPro: Boolean by kpref("debug_pro", false) - var searchBar: Boolean by kpref("search_bar", false) - var verboseLogging: Boolean by kpref("verbose_logging", false) var analytics: Boolean by kpref("analytics", true) + + var experimentalDefault:Boolean by kpref("experimental_by_default", false) + + /* + * Experimental features must be listed below so the default is initialized + */ + + var searchBar: Boolean by kpref("search_bar", experimentalDefault) + } diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt new file mode 100644 index 00000000..1429dc1a --- /dev/null +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Showcase.kt @@ -0,0 +1,16 @@ +package com.pitchedapps.frost.utils + +import ca.allanwang.kau.kpref.KPref +import ca.allanwang.kau.kpref.kpref + +/** + * Created by Allan Wang on 2017-07-03. + * + * Showcase prefs that offer one time helpers to guide new users + */ +object Showcase : KPref() { + + //check if this is the first time launching the web overlay; show snackbar if true + var firstWebOverlay: Boolean by kpref("first_web_overlay", true) +} + |