Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit f6c23e7

Browse files
chore: clean up unused listen discoverability experiment
1 parent 7737f44 commit f6c23e7

File tree

11 files changed

+9
-885
lines changed

11 files changed

+9
-885
lines changed

Pocket/src/main/java/com/pocket/app/Forgetter.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,12 @@ object Forgetter {
175175
// Post-signup onboarding.
176176
prefs.remove("all-aboard")
177177
prefs.remove("temp.android.app.home.onboarding")
178+
179+
// "Listen Discoverability"
180+
prefs.remove("lstn_dscvr_a")
181+
prefs.remove("lstn_dscvr_b")
182+
prefs.remove("lstn_dscvr_tmstmp")
183+
prefs.remove("dcfig_lstn_dscvr_a")
184+
prefs.remove("dcfig_lstn_dscvr_b")
178185
}
179186
}

Pocket/src/main/java/com/pocket/app/ListenDiscoverability.java

Lines changed: 0 additions & 251 deletions
This file was deleted.

Pocket/src/main/java/com/pocket/sdk/preferences/AppPrefs.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ public class AppPrefs {
8888
public final BooleanPreference LISTEN_AUTO_ARCHIVE;
8989
public final BooleanPreference SHOW_LISTEN_DATA_ALERT;
9090
public final FloatPreference LISTEN_LOWEST_REPORTED_FAILING_SPEED;
91-
92-
public final BooleanPreference LISTEN_HAS_SHOWN_INTRO_A;
93-
public final BooleanPreference LISTEN_HAS_SHOWN_INTRO_B;
94-
public final LongPreference LISTEN_LAST_SHOWN_INTRO_TIME;
9591

9692
public final BooleanPreference READER_AUTO_FULLSCREEN;
9793
public final StringPreference TTS_ENGINE;
@@ -124,8 +120,6 @@ public class AppPrefs {
124120

125121
public final BooleanPreference DEVCONFIG_SNACKBAR_ALWAYS_SHOW_URL_CR;
126122
public final IntPreference DEVCONFIG_PREMIUM;
127-
public final BooleanPreference DEVCONFIG_LISTEN_DISCOVERABILITY_FORCE_A;
128-
public final BooleanPreference DEVCONFIG_LISTEN_DISCOVERABILITY_FORCE_B;
129123

130124
@Inject
131125
public AppPrefs(Preferences prefs, @ApplicationContext Context context) {
@@ -173,10 +167,6 @@ public AppPrefs(Preferences prefs, @ApplicationContext Context context) {
173167
LISTEN_AUTO_ARCHIVE = prefs.forUser("lstn_autoarch", false);
174168
SHOW_LISTEN_DATA_ALERT = prefs.forUser("lstn_dtalrt", true);
175169
LISTEN_LOWEST_REPORTED_FAILING_SPEED = prefs.forApp("lstn_failspd", Float.MAX_VALUE);
176-
177-
LISTEN_HAS_SHOWN_INTRO_A = prefs.forUser("lstn_dscvr_a", false);
178-
LISTEN_HAS_SHOWN_INTRO_B = prefs.forUser("lstn_dscvr_b", false);
179-
LISTEN_LAST_SHOWN_INTRO_TIME = prefs.forUser("lstn_dscvr_tmstmp", 0L);
180170

181171
READER_AUTO_FULLSCREEN = prefs.forUser("autoFullscreen", true);
182172
TTS_ENGINE = prefs.forUser("ttsEngine", (String) null);
@@ -203,8 +193,6 @@ public AppPrefs(Preferences prefs, @ApplicationContext Context context) {
203193

204194
DEVCONFIG_SNACKBAR_ALWAYS_SHOW_URL_CR = prefs.forApp("dcfig_always_show_url_cr", false);
205195
DEVCONFIG_PREMIUM = prefs.forUser("dcfig_ps", BetaConfigFragment.DEVCONFIG_PREMIUM_ACTUAL);
206-
DEVCONFIG_LISTEN_DISCOVERABILITY_FORCE_A = prefs.forApp("dcfig_lstn_dscvr_a", false);
207-
DEVCONFIG_LISTEN_DISCOVERABILITY_FORCE_B = prefs.forApp("dcfig_lstn_dscvr_b", false);
208196
}
209197

210198

@@ -217,16 +205,6 @@ public boolean deprecateUserBoolean(String key, boolean defaultValue) {
217205
prefs.remove(key);
218206
return value;
219207
}
220-
221-
/**
222-
* Retrieves a preferences current value and removes it.
223-
* Useful for upgrade paths that need to reference a preference that is no longer going to be used to migrate it.
224-
*/
225-
public String deprecateUserString(String key, String defaultValue) {
226-
String value = prefs.forUser(key, defaultValue).get();
227-
prefs.remove(key);
228-
return value;
229-
}
230208

231209
public Observable<String> changes() {
232210
return prefs.changes();

Pocket/src/main/java/com/pocket/sdk/util/view/tooltip/theme/FocusTheme.java

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)