decord/source/utils/native/IAPUtils.mock.tsx

30 lines
791 B
TypeScript
Raw Normal View History

// Module ID: 11166
// Function ID: 11167
// Name: iapProducts
// Dependencies: [11167, 2]
2026-07-20 16:05:17 +00:00
// Module 11166 (iapProducts)
import billing_iapProducts from "billing/iapProducts" /* 11167 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("utils/native/IAPUtils.mock.tsx");
2026-07-20 16:05:17 +00:00
export default {
loadProducts() {
return Promise.resolve(billing_iapProducts.copiedIAPProducts);
2026-07-20 16:05:17 +00:00
},
purchaseProduct() {
const error = new Error("IAPUtils is mocked \u2014 purchases cannot be completed in this build.");
2026-07-20 16:05:17 +00:00
return Promise.reject(error);
},
canMakePayments() {
return Promise.resolve(true);
},
restorePurchases() {
return Promise.resolve([]);
},
fetchStoreFront() {
2026-07-23 10:11:24 +00:00
return Promise.resolve({ country: "US", currency: "usd" });
2026-07-20 16:05:17 +00:00
}
};