Disable mobile app purchases
This commit is contained in:
parent
8c802b8ea9
commit
c77343e7e9
1 changed files with 7 additions and 8 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue