Skip to content

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

update notes-core

ammarahm-edd45f7f29c964
diff --git a/apps/mobile/src/utils/DB.js b/apps/mobile/src/utils/DB.js
index 88bf47d74..d2326a371 100644
--- a/apps/mobile/src/utils/DB.js
+++ b/apps/mobile/src/utils/DB.js
@@ -4,24 +4,20 @@ import EventSource from 'rn-eventsource';
import AndroidEventSource from './event-source';
import Database from 'notes-core/api/index';
-
-
export const db = new Database(
Storage,
Platform.OS === 'ios' ? EventSource : AndroidEventSource,
);
-/**
- * API_HOST: 'http://192.168.10.6:5264',
- AUTH_HOST: 'http://192.168.10.6:8264',
- SSE_HOST: 'http://192.168.10.6:7264',
- */
db.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',
} : {
API_HOST: 'https://api.notesnook.com',
AUTH_HOST: 'https://auth.streetwriters.co',
SSE_HOST: 'https://events.streetwriters.co',
+ SUBSCRIPTIONS_HOST: 'https://subscriptions.streetwriters.co',
+
});