32 lines
2.1 KiB
TypeScript
32 lines
2.1 KiB
TypeScript
/* Metro module 5079; source: modules/push_notifications/PushNotificationConstants.tsx; dependencies: [1582, 1581, 477, 2] */
|
|
function _fun44098(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5257:6, offset: 0x0116820c, size: 367 bytes, params: 8, frame: 23
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = undefined;
|
|
const constants = (require(1582) /* metro dependency 1582: ClientInfoUtils */).getConstants();
|
|
const Identifier = constants == null ? value : constants.Identifier;
|
|
const r4 = Identifier ?? '';
|
|
const isQuestRelease2 = (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isQuestRelease();
|
|
const value6 = r4.startsWith('com.discord.kodiak');
|
|
const value7 = r4.startsWith('com.hammerandchisel.discord.local');
|
|
const r5 = value6 ? 'apns_internal' : value7 ? 'apns_local' : 'apns';
|
|
const r43 = value6 ? 'apns_internal_voip' : value7 ? 'apns_local_voip' : 'apns_voip';
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/push_notifications/PushNotificationConstants.tsx');
|
|
exports.BUNDLE_ID = r4;
|
|
exports.IS_QUEST_RELEASE = isQuestRelease2;
|
|
exports.DEVICE_PUSH_PROVIDER_ANDROID = 'gcm';
|
|
exports.DEVICE_PUSH_PROVIDER_META_HORIZON = 'meta_horizon';
|
|
exports.DEVICE_PUSH_PROVIDER_IOS = r5;
|
|
exports.DEVICE_PUSH_VOIP_PROVIDER = r43;
|
|
exports.getDevicePushProvider = getDevicePushProvider;
|
|
exports.NotificationTypes = {REMINDER: 'reminder', TOP_MESSAGE_PUSH: 'top_messages_push',
|
|
TRENDING_CONTENT_PUSH: 'trending_content_push'};
|
|
return value;
|
|
}
|
|
|
|
function getDevicePushProvider() { // fn#44099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5257:828, offset: 0x0116837b, size: 63 bytes, params: 1, frame: 12
|
|
return env0_2 ? env0_3 : (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'gcm' : env0_4;
|
|
}
|
|
|