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

31 lines
800 B
TypeScript
Raw Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 12763
// Function ID: 12764
// Name: iapProducts
2026-10-10 08:08:14 +00:00
// Dependencies: [12764, 2]
2026-07-20 16:05:17 +00:00
2026-10-10 08:08:14 +00:00
// Module 12763 (iapProducts)
import billing_iapProducts from "billing/iapProducts" /* 12764 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
2026-10-03 08:58:59 +00:00
const obj = {
2026-07-20 16:05:17 +00:00
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-10-03 08:58:59 +00:00
return reject(error);
2026-07-20 16:05:17 +00:00
},
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
}
};
2026-10-03 08:58:59 +00:00
const result = size.fileFinishedImporting("utils/native/IAPUtils.mock.tsx");
export default obj;