This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,20 @@
// Metro module 14791 (f14792).
import DevSettingsStore from "./DevSettingsStore";
import Dispatcher from "../../../Dispatcher";
export function toggle(a0, a1) {
Dispatcher.dispatch({
type: "DEV_TOOLS_DEV_SETTING_SET",
toggle: a0,
value: typeof a1 !== "boolean" ? !DevSettingsStore.get(a0) : a1
});
}
export function clearAll() {
const r7 = DevSettingsStore.enabled();
for (const key in r7) {
Dispatcher.dispatch({
type: "DEV_TOOLS_DEV_SETTING_SET",
toggle: key,
value: typeof false !== "boolean" ? !DevSettingsStore.get(key) : false
});
}
}
@@ -0,0 +1,182 @@
// Metro module 4188 (f4189).
import Module589 from "../../../_bundle/Module589";
import Dispatcher from "../../../Dispatcher";
const r19 = {
MESSAGING: 0,
0: "MESSAGING",
OVERLAYS: 1,
1: "OVERLAYS",
PREMIUM: 2,
2: "PREMIUM",
REPORTING: 3,
3: "REPORTING",
APP_COLLECTIONS: 4,
4: "APP_COLLECTIONS",
SHOP: 5,
5: "SHOP",
LIBDISCORE: 6,
6: "LIBDISCORE"
};
const r33 = {};
r33[r19.REPORTING] = "Reporting Toggles";
r33[r19.OVERLAYS] = "Dev Overlays";
r33[r19.MESSAGING] = "Messaging Toggles";
r33[r19.APP_COLLECTIONS] = "App Collections Toggles";
r33[r19.PREMIUM] = "Premium Toggles";
r33[r19.SHOP] = "Shop Toggles";
r33[r19.LIBDISCORE] = "Libdiscore Toggles";
let c2412_0 = {
visual_effect_view_overrides: {
label: "Blur view overrides for designers to test with",
category: r19.OVERLAYS
},
obscure_blur_effect_explicit_content_enabled: {
label: "Force explicit content obscure blur effect on for message media and embeds",
category: r19.OVERLAYS
},
obscure_blur_effect_gore_content_enabled: {
label: "Force gore content obscure blur effect on for message media and embeds",
category: r19.OVERLAYS
},
obscure_blur_effect_self_harm_content_enabled: {
label: "Force self harm content obscure blur effect on for message media and embeds",
category: r19.OVERLAYS
},
explicit_media_redaction_ignore_pending_scan: {
label: "Ignore pending scan on explicit media",
category: r19.OVERLAYS
},
analytics_debugger: {
label: "Enable analytics debugger view",
category: r19.OVERLAYS
},
idle_status_indicator: {
label: "Enable idle status indicator",
category: r19.OVERLAYS
},
highlight_mana_text: {
label: "Mana Text Migration Highlighter. Green: migrated Text/Heading. Dashed red: migrated but a caller style overrides the variant, so it will not move with the experiment. Solid red: unmigrated LegacyText. Yellow: TextStyleSheet read directly (experiment-reachable, not migrated); requires an app restart to take effect.",
category: r19.OVERLAYS
},
upload_fail_50: {
label: "Uploads: Fail 50% of uploads with 500 status after a 1 second delay",
category: r19.MESSAGING
},
send_fail_100: {
label: "Send: Fail with 500 status",
category: r19.MESSAGING
},
premium_roadblocks: {
label: "Enable all new premium roadblocks",
category: r19.PREMIUM
},
force_mock_iap: {
label: "[iOS] Force mock IAP products",
category: r19.PREMIUM
},
iar_testing: {
label: "Enable staff only test iar menu options",
category: r19.REPORTING
},
iar_skip_api_report_submit: {
label: "Enable to skip calling the API to skip submitting actual IAR reports",
category: r19.REPORTING
},
iar_show_report_sub_type_labels: {
label: "Show IAR report sub type labels",
category: r19.REPORTING
},
only_show_preview_app_collections: {
label: "Only show application collections (e.g. in App Directory, App Launcher in text) that have the 'preview' active state. This disables application collections cache, too, so you can see collections updates immediately.",
category: r19.APP_COLLECTIONS
},
disable_app_collections_cache: {
label: "Disable application collections cache so that you can see updates to collections immediately.",
category: r19.APP_COLLECTIONS
},
shop_disable_cache: {
label: "Disable collectibles shop cache",
category: r19.SHOP
},
shop_include_unpublished: {
label: "Show unpublished items in collectibles shop",
category: r19.SHOP
},
shop_show_debug_overlay: {
label: "Show debug log overlay in collectibles shop",
category: r19.SHOP
},
bypass_google_sku_sync: {
label: "[Android] Bypass Google SKU sync in collectibles shop",
category: r19.SHOP
},
libdiscore_verbose_telemetry_logging: {
label: "Enable verbose telemetry logging for libdiscore",
category: r19.LIBDISCORE
}
};
const toggleStates = {};
class DevSettingsStore extends Module589.DeviceSettingsStore {
static displayName = "DevToolsDevSettingsStore";
static persistKey = "DevToolsDevSettingsStore";
getUserAgnosticState() {
return {
toggleStates
};
}
initialize(a0) {
for (const key in c2412_0) {
const r4 = a0 == null;
let r12 = void 0;
if (!r4) {
const toggleStates2 = a0.toggleStates;
r12 = toggleStates2 == null ? void 0 : toggleStates2[key];
}
if (r12 == null) {
r12 = false;
}
if (r12) {
toggleStates[key] = r12;
}
}
}
get(a0) {
let r4 = toggleStates[a0];
if (r4 == null) {
r4 = false;
}
return r4;
}
enabled() {
return toggleStates;
}
allByCategory(c13895_0) {
return Object.entries(c2412_0).filter((item) => {
const [, r13] = item;
return r13.category === c13895_0;
}).map((item) => {
const [r13, r14] = item;
const r17 = [r13, , ,];
let r19 = toggleStates[r13];
if (r19 == null) {
r19 = false;
}
r17[1] = r19;
r17[2] = r14;
return r17;
});
}
}
const devSettingsStore = new DevSettingsStore(Dispatcher, {
DEV_TOOLS_DEV_SETTING_SET: function handleSet(a0) {
if (a0.value !== false) {
toggleStates[a0.toggle] = a0.value;
} else {
delete toggleStates[a0.toggle];
}
}
});
export default devSettingsStore;
export { r19 as DevSettingsCategory };
export { r33 as CATEGORY_LABELS };
export { c2412_0 as toggles };