Skip to content

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

refactor

ammarahm-edf6b53b8156bf
diff --git a/apps/mobile/src/components/Github/issue.js b/apps/mobile/src/components/Github/issue.js
index dca7c5c14..ac79aad41 100644
--- a/apps/mobile/src/components/Github/issue.js
+++ b/apps/mobile/src/components/Github/issue.js
@@ -5,7 +5,7 @@ import { useTracked } from '../../provider';
import { useUserStore } from '../../provider/stores';
import { eSendEvent, ToastEvent } from '../../services/EventManager';
import PremiumService from '../../services/PremiumService';
-import { APP_VERSION } from '../../utils';
+import { APP_VERSION } from "../../../version";
import { db } from '../../utils/database';
import { eCloseProgressDialog } from '../../utils/Events';
import { openLinkInBrowser } from '../../utils/functions';
diff --git a/apps/mobile/src/provider/stores.ts b/apps/mobile/src/provider/stores.ts
index 061ff6b61..93008c5d1 100644
--- a/apps/mobile/src/provider/stores.ts
+++ b/apps/mobile/src/provider/stores.ts
@@ -2,7 +2,8 @@ import {Platform} from 'react-native';
import {Dimensions} from 'react-native';
import create from 'zustand';
import PremiumService from '../services/PremiumService';
-import {APP_VERSION, history, SUBSCRIPTION_STATUS} from '../utils';
+import {history, SUBSCRIPTION_STATUS} from '../utils';
+import { APP_VERSION } from "../../version";
import {db} from '../utils/database';
import {MMKV} from '../utils/mmkv';
import {
diff --git a/apps/mobile/src/utils/index.js b/apps/mobile/src/utils/index.js
index 4f0c01032..6f8cb2d7a 100755
--- a/apps/mobile/src/utils/index.js
+++ b/apps/mobile/src/utils/index.js
@@ -14,8 +14,6 @@ import { refreshNotesPage } from './Events';
import { MMKV } from './mmkv';
import { tabBarRef } from './Refs';
-export const APP_VERSION = 1694;
-
export const Tracker = ackeeTracker.create('https://sa.streetwriters.co', {
ignoreLocalhost: true
});
diff --git a/apps/mobile/src/utils/useAppEvents.js b/apps/mobile/src/utils/useAppEvents.js
index dff62ad64..bf4695fec 100644
--- a/apps/mobile/src/utils/useAppEvents.js
+++ b/apps/mobile/src/utils/useAppEvents.js
@@ -38,7 +38,8 @@ import Navigation from '../services/Navigation';
import PremiumService from '../services/PremiumService';
import SettingsService from '../services/SettingsService';
import Sync from '../services/Sync';
-import {APP_VERSION, doInBackground, editing} from '.';
+import {doInBackground, editing} from '.';
+import { APP_VERSION } from "../../version";
import {updateStatusBarColor} from './Colors';
import {db} from './database';
import {
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index da9583163..92a15fa0e 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -13,7 +13,8 @@ import {
ToastEvent
} from '../../services/EventManager';
import Navigation from '../../services/Navigation';
-import {APP_VERSION, InteractionManager} from '../../utils';
+import {InteractionManager} from '../../utils';
+import { APP_VERSION } from "../../../version";
import {db} from '../../utils/database';
import {eScrollEvent, eUpdateSearchState} from '../../utils/Events';
import {openLinkInBrowser} from '../../utils/functions';
diff --git a/apps/mobile/version.js b/apps/mobile/version.js
new file mode 100644
index 000000000..6d478b689
--- /dev/null
+++ b/apps/mobile/version.js
@@ -0,0 +1 @@
+export const APP_VERSION = 1694;