decord/alpha/source/modules/push_notifications/PushNotificationConstants.tsx
github-actions 97fd043558 chore: update source for alpha 347.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
2026-09-19 06:52:51 +00:00

63 lines
1.9 KiB
TypeScript

// Module ID: 6832
// Function ID: 6833
// Name: PushNotificationConstants
// Dependencies: [1363, 1609, 1364, 2]
// Exports: getDevicePushProvider
// Module 6832 (PushNotificationConstants)
import PlatformUtils from "PlatformUtils" /* 1364 */;
import ClientInfoUtils_mod from "ClientInfoUtils" /* 1363 */;
import MetaQuestUtils_mod from "MetaQuestUtils" /* 1609 */;
import size from "module_2" /* 2 */;
let ClientInfoUtils = ClientInfoUtils_mod;
ClientInfoUtils = ClientInfoUtils.getConstants();
let str;
if (ClientInfoUtils != null) {
str = ClientInfoUtils.Identifier;
}
if (str == null) {
str = "";
}
let MetaQuestUtils = MetaQuestUtils_mod;
MetaQuestUtils = MetaQuestUtils.isQuestRelease();
const startsWithResult = str.startsWith("com.discord.kodiak");
const startsWithResult1 = str.startsWith("com.hammerandchisel.discord.local");
const meta_horizon = "meta_horizon";
let str2 = "apns_internal";
if (!startsWithResult) {
let str3 = "apns";
if (startsWithResult1) {
str3 = "apns_local";
}
str2 = str3;
}
let str4 = "apns_internal_voip";
if (!startsWithResult) {
let str5 = "apns_voip";
if (startsWithResult1) {
str5 = "apns_local_voip";
}
str4 = str5;
}
const result = size.fileFinishedImporting("modules/push_notifications/PushNotificationConstants.tsx");
export const BUNDLE_ID = str;
export const IS_QUEST_RELEASE = MetaQuestUtils;
export const DEVICE_PUSH_PROVIDER_ANDROID = "gcm";
export const DEVICE_PUSH_PROVIDER_META_HORIZON = "meta_horizon";
export const DEVICE_PUSH_PROVIDER_IOS = str2;
export const DEVICE_PUSH_VOIP_PROVIDER = str4;
export const getDevicePushProvider = function getDevicePushProvider() {
if (MetaQuestUtils) {
let str = meta_horizon;
} else {
str = "gcm";
if (!obj.isAndroid()) {
str = str2;
}
obj = PlatformUtils;
}
return str;
};
export const NotificationTypes = { REMINDER: "reminder", TOP_MESSAGE_PUSH: "top_messages_push", TRENDING_CONTENT_PUSH: "trending_content_push" };