Skip to content

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

add localhost for testing

ammarahm-ed4a6391c082c0
diff --git a/apps/mobile/android/app/src/main/res/xml/network_security_config.xml b/apps/mobile/android/app/src/main/res/xml/network_security_config.xml
index 6cce7d10f..7e8fdeabf 100644
--- a/apps/mobile/android/app/src/main/res/xml/network_security_config.xml
+++ b/apps/mobile/android/app/src/main/res/xml/network_security_config.xml
@@ -4,6 +4,6 @@
<domain includeSubdomains="true">10.0.2.2</domain>
<domain includeSubdomains="true">localhost</domain>
<domain includeSubdomains="true">192.168.10.5</domain>
- <domain includeSubdomains="true">192.168.10.10</domain>
+ <domain includeSubdomains="true">192.168.10.9</domain>
</domain-config>
</network-security-config>
\ No newline at end of file
diff --git a/apps/mobile/src/utils/DB.js b/apps/mobile/src/utils/DB.js
index 7d114f22e..ead6d1674 100644
--- a/apps/mobile/src/utils/DB.js
+++ b/apps/mobile/src/utils/DB.js
@@ -11,7 +11,11 @@ export const db = new Database(
);
-db.host({
+db.host( __DEV__ ? {
+ API_HOST: 'http://192.168.10.9:5264',
+ AUTH_HOST: 'http://192.168.10.9:8264',
+ SSE_HOST: 'http://192.168.10.9:7264',
+} : {
API_HOST: 'https://api.notesnook.com',
AUTH_HOST: 'https://auth.streetwriters.co',
SSE_HOST: 'https://events.streetwriters.co',