Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: disable premium check when testing

ammarahm-ed3c16a656d2bc
diff --git a/apps/mobile/app/services/premium.js b/apps/mobile/app/services/premium.js
index 0bda32442..517b103db 100644
--- a/apps/mobile/app/services/premium.js
+++ b/apps/mobile/app/services/premium.js
@@ -35,6 +35,8 @@ import {
eShowGetPremium
} from "../utils/events";
import { eSendEvent, presentSheet, ToastEvent } from "./event-manager";
+import Config from "react-native-config";
+
import SettingsService from "./settings";
let premiumStatus = 0;
let products = [];
@@ -92,7 +94,7 @@ async function getProducts() {
}
function get() {
- if (__DEV__) return true;
+ if (__DEV__ || Config.isTesting) return true;
return SUBSCRIPTION_STATUS.BASIC !== premiumStatus;
}