decord/alpha/source/modules/device/BillingPlatformUtils.tsx
github-actions 1224ea86fd chore: update source for alpha 348.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-26 08:31:33 +00:00

33 lines
1.4 KiB
TypeScript

// Module ID: 4501
// Function ID: 4502
// Name: BillingPlatformUtils
// Dependencies: [1610, 1364, 2]
// Exports: isCollectibleGiftingSupported, isGooglePlayBillingSupported, isPremiumGiftingSupported, isSocialLayerStorefrontGiftingSupported, isSocialLayerStorefrontPurchaseSupported
// Module 4501 (BillingPlatformUtils)
import PlatformUtils from "PlatformUtils" /* 1364 */;
import MetaQuestUtils from "MetaQuestUtils" /* 1610 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/device/BillingPlatformUtils.tsx");
export const isPremiumGiftingSupported = function isPremiumGiftingSupported() {
return !MetaQuestUtils.isMetaQuest();
};
export const isGooglePlayBillingSupported = function isGooglePlayBillingSupported() {
let isAndroidResult = PlatformUtils.isAndroid();
if (isAndroidResult) {
isAndroidResult = !MetaQuestUtils.isMetaQuest();
const tmpResult = MetaQuestUtils;
}
return isAndroidResult;
};
export const isCollectibleGiftingSupported = function isCollectibleGiftingSupported() {
return !MetaQuestUtils.isMetaQuest();
};
export const isSocialLayerStorefrontGiftingSupported = function isSocialLayerStorefrontGiftingSupported() {
return !MetaQuestUtils.isMetaQuest();
};
export const isSocialLayerStorefrontPurchaseSupported = function isSocialLayerStorefrontPurchaseSupported() {
return !MetaQuestUtils.isMetaQuest();
};