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

31 lines
800 B
TypeScript
Raw Normal View History

2026-10-08 09:57:35 +00:00
// Module ID: 12771
// Function ID: 12772
// Name: iapProducts
2026-10-08 09:57:35 +00:00
// Dependencies: [12772, 2]
2026-07-20 16:05:17 +00:00
2026-10-08 09:57:35 +00:00
// Module 12771 (iapProducts)
import billing_iapProducts from "billing/iapProducts" /* 12772 */;
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;