decord/source/modules/device/BillingPlatformUtils.tsx

34 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 4307
// Function ID: 4308
// Name: BillingPlatformUtils
// Dependencies: [1608, 1363, 2]
2026-08-24 06:08:38 +00:00
// Exports: isCollectibleGiftingSupported, isGooglePlayBillingSupported, isPremiumGiftingSupported, isSocialLayerStorefrontGiftingSupported, isSocialLayerStorefrontPurchaseSupported
2026-07-20 16:05:17 +00:00
// Module 4307 (BillingPlatformUtils)
import PlatformUtils from "PlatformUtils" /* 1363 */;
import MetaQuestUtils from "MetaQuestUtils" /* 1608 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/device/BillingPlatformUtils.tsx");
2026-07-20 16:05:17 +00:00
export const isPremiumGiftingSupported = function isPremiumGiftingSupported() {
return !MetaQuestUtils.isMetaQuest();
2026-07-20 16:05:17 +00:00
};
export const isGooglePlayBillingSupported = function isGooglePlayBillingSupported() {
let isAndroidResult = PlatformUtils.isAndroid();
2026-07-20 16:05:17 +00:00
if (isAndroidResult) {
isAndroidResult = !MetaQuestUtils.isMetaQuest();
const tmpResult = MetaQuestUtils;
2026-07-20 16:05:17 +00:00
}
return isAndroidResult;
};
export const isCollectibleGiftingSupported = function isCollectibleGiftingSupported() {
return !MetaQuestUtils.isMetaQuest();
2026-07-20 16:05:17 +00:00
};
export const isSocialLayerStorefrontGiftingSupported = function isSocialLayerStorefrontGiftingSupported() {
return !MetaQuestUtils.isMetaQuest();
2026-08-24 06:08:38 +00:00
};
export const isSocialLayerStorefrontPurchaseSupported = function isSocialLayerStorefrontPurchaseSupported() {
return !MetaQuestUtils.isMetaQuest();
2026-07-20 16:05:17 +00:00
};