Skip to content
Snippets Groups Projects
Commit c77343e7 authored by James Long's avatar James Long
Browse files

Disable mobile app purchases

parent 8c802b8e
No related branches found
No related tags found
No related merge requests found
...@@ -35,17 +35,16 @@ let IS_SETUP = false; ...@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment