44 lines
2.7 KiB
TypeScript
44 lines
2.7 KiB
TypeScript
/* Metro module 3815; source: modules/device/BillingPlatformUtils.tsx; dependencies: [1581, 477, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as PlatformUtilsModule from '../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
|
|
import * as MetaQuestUtilsAndroidModule from './MetaQuestUtils.android.tsx'; /* Metro dependency 1581 */
|
|
|
|
function _fun29511(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3942:6, offset: 0x00fc3dea, size: 127 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/device/BillingPlatformUtils.tsx');
|
|
exports.isPremiumGiftingSupported = isPremiumGiftingSupported;
|
|
exports.isGooglePlayBillingSupported = isGooglePlayBillingSupported;
|
|
exports.isCollectibleGiftingSupported = isCollectibleGiftingSupported;
|
|
exports.isSocialLayerStorefrontGiftingSupported = isSocialLayerStorefrontGiftingSupported;
|
|
function isPremiumGiftingSupported() { // fn#29512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3942:193, offset: 0x00fc3e69, size: 39 bytes, params: 1, frame: 11
|
|
return !MetaQuestUtilsAndroidModule.isMetaQuest();
|
|
}
|
|
|
|
function isGooglePlayBillingSupported() { // fn#29513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3942:291, offset: 0x00fc3e90, size: 72 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value;
|
|
const isAndroid2 = (PlatformUtilsModule).isAndroid();
|
|
if (isAndroid2) {
|
|
value = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
|
|
value = !value.isMetaQuest();
|
|
r0 = value;
|
|
} else {
|
|
r0 = isAndroid2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function isCollectibleGiftingSupported() { // fn#29514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3942:415, offset: 0x00fc3e69, size: 39 bytes, params: 1, frame: 11
|
|
return !MetaQuestUtilsAndroidModule.isMetaQuest();
|
|
}
|
|
|
|
function isSocialLayerStorefrontGiftingSupported() { // fn#29515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3942:528, offset: 0x00fc3e69, size: 39 bytes, params: 1, frame: 11
|
|
return !MetaQuestUtilsAndroidModule.isMetaQuest();
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun29511, 3815, [1581, 477, 2]) /* metro module 3815, dependencies: [1581, 477, 2] */;
|