A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: set hosts before db setup
ammarahm-edf5e86d668f9b
diff --git a/apps/mobile/app/common/database/index.js b/apps/mobile/app/common/database/index.jsindex ad37733fd..4b67be08b 100644--- a/apps/mobile/app/common/database/index.js+++ b/apps/mobile/app/common/database/index.js@@ -30,38 +30,41 @@ const LoggerStorage = new MMKVLoader().withInstanceID("notesnook_logs").initialize();-database.setup(- Storage,- Platform.OS === "ios" ? EventSource : AndroidEventSource,- filesystem,- {- compress: Gzip.deflate,- decompress: Gzip.inflate- }-);++ database.host(+ __DEV__+ ? {+ API_HOST: "https://api.notesnook.com",+ AUTH_HOST: "https://auth.streetwriters.co",+ SSE_HOST: "https://events.streetwriters.co",+ SUBSCRIPTIONS_HOST: "https://subscriptions.streetwriters.co",+ ISSUES_HOST: "https://issues.streetwriters.co"+ // API_HOST: "http://192.168.8.101:5264",+ // AUTH_HOST: "http://192.168.8.101:8264",+ // SSE_HOST: "http://192.168.8.101:7264",+ // SUBSCRIPTIONS_HOST: "http://192.168.8.101:9264",+ // ISSUES_HOST: "http://192.168.8.101:2624"+ }+ : {+ API_HOST: "https://api.notesnook.com",+ AUTH_HOST: "https://auth.streetwriters.co",+ SSE_HOST: "https://events.streetwriters.co",+ SUBSCRIPTIONS_HOST: "https://subscriptions.streetwriters.co",+ ISSUES_HOST: "https://issues.streetwriters.co"+ }+ );++ database.setup(+ Storage,+ Platform.OS === "ios" ? EventSource : AndroidEventSource,+ filesystem,+ {+ compress: Gzip.deflate,+ decompress: Gzip.inflate+ }+ );+-database.host(- __DEV__- ? {- API_HOST: "https://api.notesnook.com",- AUTH_HOST: "https://auth.streetwriters.co",- SSE_HOST: "https://events.streetwriters.co",- SUBSCRIPTIONS_HOST: "https://subscriptions.streetwriters.co",- ISSUES_HOST: "https://issues.streetwriters.co"- // API_HOST: "http://192.168.8.101:5264",- // AUTH_HOST: "http://192.168.8.101:8264",- // SSE_HOST: "http://192.168.8.101:7264",- // SUBSCRIPTIONS_HOST: "http://192.168.8.101:9264",- // ISSUES_HOST: "http://192.168.8.101:2624"- }- : {- API_HOST: "https://api.notesnook.com",- AUTH_HOST: "https://auth.streetwriters.co",- SSE_HOST: "https://events.streetwriters.co",- SUBSCRIPTIONS_HOST: "https://subscriptions.streetwriters.co",- ISSUES_HOST: "https://issues.streetwriters.co"- }-);initalize(new KV(LoggerStorage), true);