Disable mobile app purchases

This commit is contained in:
James Long 2022-04-29 18:03:17 -04:00
parent 8c802b8ea9
commit c77343e7e9

View file

@ -35,17 +35,16 @@ let IS_SETUP = false;
export async function setupPurchases(userData) { export async function setupPurchases(userData) {
// eslint-disable-next-line // eslint-disable-next-line
Purchases.debugLogsEnabled = __DEV__; // Purchases.debugLogsEnabled = __DEV__;
Purchases.setup('bjOGsQWPvvMoNGoYCtfqFTGDGLGCskNn', userData.id); // await Purchases.identify(userData.id);
await Purchases.identify(userData.id); // await Purchases.setEmail(userData.email);
await Purchases.setEmail(userData.email); // await Purchases.setAttributes({ userId: userData.id });
await Purchases.setAttributes({ userId: userData.id });
} }
export async function invalidatePurchaserInfoCache() { export async function invalidatePurchaserInfoCache() {
if (IS_SETUP) { // if (IS_SETUP) {
await Purchases.invalidatePurchaserInfoCache(); // await Purchases.invalidatePurchaserInfoCache();
} // }
} }
export async function resetUser() { export async function resetUser() {