-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathconstants.ts
25 lines (19 loc) · 897 Bytes
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Turn "simulateProduction" on to simulate a production environment
const simulateProduction = false;
// Enable MobX logging (trough the mobx-logger lib)
const _enableMobxLogging = true;
// Don't show the splash screen
const _skipSplashScreen = false;
// Clean the local-storage
const _simulateFirstLoad = false;
// Auto-solve the puzzle after 2000 ms
const _autoSolve = false;
// Use the Averta font?
const _useAvertaFont = true;
// To be safe, let's make sure we don't user development settings in production
const isDevelopment = __DEV__ && !simulateProduction;
export const enableMobxLogging = isDevelopment && _enableMobxLogging;
export const skipSplashScreen = isDevelopment && _skipSplashScreen;
export const simulateFirstLoad = isDevelopment && _simulateFirstLoad;
export const autoSolve = isDevelopment && _autoSolve;
export const useAvertaFont = !isDevelopment || _useAvertaFont;