provide settings constant arrays for sync

This commit is contained in:
jessop 2020-07-14 11:38:19 -04:00 committed by Sean Yesmunt
parent 5547f53f48
commit 3a140c2318
3 changed files with 38 additions and 6 deletions

17
dist/bundle.es.js vendored
View file

@ -665,6 +665,7 @@ const THEME = 'theme';
const THEMES = 'themes'; const THEMES = 'themes';
const AUTOMATIC_DARK_MODE_ENABLED = 'automatic_dark_mode_enabled'; const AUTOMATIC_DARK_MODE_ENABLED = 'automatic_dark_mode_enabled';
const AUTOPLAY = 'autoplay'; const AUTOPLAY = 'autoplay';
const AUTOPLAY_NEXT = 'autoplay_next';
const OS_NOTIFICATIONS_ENABLED = 'os_notifications_enabled'; const OS_NOTIFICATIONS_ENABLED = 'os_notifications_enabled';
const AUTO_DOWNLOAD = 'auto_download'; const AUTO_DOWNLOAD = 'auto_download';
const AUTO_LAUNCH = 'auto_launch'; const AUTO_LAUNCH = 'auto_launch';
@ -702,6 +703,7 @@ var settings = /*#__PURE__*/Object.freeze({
THEMES: THEMES, THEMES: THEMES,
AUTOMATIC_DARK_MODE_ENABLED: AUTOMATIC_DARK_MODE_ENABLED, AUTOMATIC_DARK_MODE_ENABLED: AUTOMATIC_DARK_MODE_ENABLED,
AUTOPLAY: AUTOPLAY, AUTOPLAY: AUTOPLAY,
AUTOPLAY_NEXT: AUTOPLAY_NEXT,
OS_NOTIFICATIONS_ENABLED: OS_NOTIFICATIONS_ENABLED, OS_NOTIFICATIONS_ENABLED: OS_NOTIFICATIONS_ENABLED,
AUTO_DOWNLOAD: AUTO_DOWNLOAD, AUTO_DOWNLOAD: AUTO_DOWNLOAD,
AUTO_LAUNCH: AUTO_LAUNCH, AUTO_LAUNCH: AUTO_LAUNCH,
@ -959,12 +961,19 @@ var daemon_settings = /*#__PURE__*/Object.freeze({
* See redux/settings/actions in the app for where this is used. * See redux/settings/actions in the app for where this is used.
*/ */
const WALLET_SERVERS = LBRYUM_SERVERS; // DAEMON
const SHARE_USAGE_DATA$1 = SHARE_USAGE_DATA; const SDK_SYNC_KEYS = [LBRYUM_SERVERS, SHARE_USAGE_DATA];
// CLIENT
const CLIENT_SYNC_KEYS = [SHOW_MATURE, HIDE_REPOSTS, SHOW_ANONYMOUS, INSTANT_PURCHASE_ENABLED, INSTANT_PURCHASE_MAX, THEME, THEMES, AUTOPLAY, HIDE_BALANCE, HIDE_SPLASH_ANIMATION, FLOATING_PLAYER, DARK_MODE_TIMES, AUTOMATIC_DARK_MODE_ENABLED];
/*
*/
var shared_preferences = /*#__PURE__*/Object.freeze({ var shared_preferences = /*#__PURE__*/Object.freeze({
WALLET_SERVERS: WALLET_SERVERS, SDK_SYNC_KEYS: SDK_SYNC_KEYS,
SHARE_USAGE_DATA: SHARE_USAGE_DATA$1 CLIENT_SYNC_KEYS: CLIENT_SYNC_KEYS
}); });
const SEARCH_TYPES = { const SEARCH_TYPES = {

View file

@ -18,6 +18,7 @@ export const THEME = 'theme';
export const THEMES = 'themes'; export const THEMES = 'themes';
export const AUTOMATIC_DARK_MODE_ENABLED = 'automatic_dark_mode_enabled'; export const AUTOMATIC_DARK_MODE_ENABLED = 'automatic_dark_mode_enabled';
export const AUTOPLAY = 'autoplay'; export const AUTOPLAY = 'autoplay';
export const AUTOPLAY_NEXT = 'autoplay_next';
export const OS_NOTIFICATIONS_ENABLED = 'os_notifications_enabled'; export const OS_NOTIFICATIONS_ENABLED = 'os_notifications_enabled';
export const AUTO_DOWNLOAD = 'auto_download'; export const AUTO_DOWNLOAD = 'auto_download';
export const AUTO_LAUNCH = 'auto_launch'; export const AUTO_LAUNCH = 'auto_launch';

View file

@ -8,6 +8,28 @@
*/ */
import * as DAEMON_SETTINGS from './daemon_settings'; import * as DAEMON_SETTINGS from './daemon_settings';
import * as SETTINGS from './settings';
export const WALLET_SERVERS = DAEMON_SETTINGS.LBRYUM_SERVERS; // DAEMON
export const SHARE_USAGE_DATA = DAEMON_SETTINGS.SHARE_USAGE_DATA; export const SDK_SYNC_KEYS = [DAEMON_SETTINGS.LBRYUM_SERVERS, DAEMON_SETTINGS.SHARE_USAGE_DATA];
// CLIENT
export const CLIENT_SYNC_KEYS = [
SETTINGS.SHOW_MATURE,
SETTINGS.HIDE_REPOSTS,
SETTINGS.SHOW_ANONYMOUS,
SETTINGS.INSTANT_PURCHASE_ENABLED,
SETTINGS.INSTANT_PURCHASE_MAX,
SETTINGS.THEME,
SETTINGS.THEMES,
SETTINGS.AUTOPLAY,
SETTINGS.HIDE_BALANCE,
SETTINGS.HIDE_SPLASH_ANIMATION,
SETTINGS.FLOATING_PLAYER,
SETTINGS.DARK_MODE_TIMES,
SETTINGS.AUTOMATIC_DARK_MODE_ENABLED,
];
/*
*/