mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
mobile: disable premium check when testing
This commit is contained in:
@@ -35,6 +35,8 @@ import {
|
|||||||
eShowGetPremium
|
eShowGetPremium
|
||||||
} from "../utils/events";
|
} from "../utils/events";
|
||||||
import { eSendEvent, presentSheet, ToastEvent } from "./event-manager";
|
import { eSendEvent, presentSheet, ToastEvent } from "./event-manager";
|
||||||
|
import Config from "react-native-config";
|
||||||
|
|
||||||
import SettingsService from "./settings";
|
import SettingsService from "./settings";
|
||||||
let premiumStatus = 0;
|
let premiumStatus = 0;
|
||||||
let products = [];
|
let products = [];
|
||||||
@@ -92,7 +94,7 @@ async function getProducts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
if (__DEV__) return true;
|
if (__DEV__ || Config.isTesting) return true;
|
||||||
|
|
||||||
return SUBSCRIPTION_STATUS.BASIC !== premiumStatus;
|
return SUBSCRIPTION_STATUS.BASIC !== premiumStatus;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user