@@ -0,0 +1,1033 @@
+package net.squanchy.support.debug;%0A%0Aimport android.content.Context;%0Aimport android.content.SharedPreferences;%0A%0Apublic class DebugPreferences %7B%0A%0A    private static final String PREFERENCES_NAME_DEBUG = %22debug%22;%0A    private static final String KEY_CONTEST_TESTING_ENABLED = %22contest.testing_enabled%22;%0A%0A    private final SharedPreferences preferences;%0A%0A    public DebugPreferences(Context context) %7B%0A        this.preferences = context.getSharedPreferences(DebugPreferences.PREFERENCES_NAME_DEBUG, Context.MODE_PRIVATE);%0A    %7D%0A%0A    public boolean contestTestingEnabled() %7B%0A        return preferences.getBoolean(KEY_CONTEST_TESTING_ENABLED, false);%0A    %7D%0A%0A    public void enableContestTesting() %7B%0A        storePreference(KEY_CONTEST_TESTING_ENABLED, true);%0A    %7D%0A%0A    public void disableContestTesting() %7B%0A        storePreference(KEY_CONTEST_TESTING_ENABLED, false);%0A    %7D%0A%0A    private void storePreference(String key, boolean value) %7B%0A        preferences.edit()%0A                .putBoolean(key, value)%0A                .apply();%0A    %7D%0A%7D%0A

Create DebugPreferences