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

31 lines
800 B
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 10567
// Function ID: 10568
// Name: iapProducts
2026-10-02 13:37:24 +00:00
// Dependencies: [10568, 2]
2026-10-02 13:37:24 +00:00
// Module 10567 (iapProducts)
import billing_iapProducts from "billing/iapProducts" /* 10568 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
const obj = {
loadProducts() {
return Promise.resolve(billing_iapProducts.copiedIAPProducts);
},
purchaseProduct() {
const error = new Error("IAPUtils is mocked \u2014 purchases cannot be completed in this build.");
2026-10-01 14:13:23 +00:00
return reject(error);
},
canMakePayments() {
return Promise.resolve(true);
},
restorePurchases() {
return Promise.resolve([]);
},
fetchStoreFront() {
return Promise.resolve({ country: "US", currency: "usd" });
}
};
2026-10-01 14:13:23 +00:00
const result = size.fileFinishedImporting("utils/native/IAPUtils.mock.tsx");
export default obj;