Skip to content

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

minor updates

ammarahm-ed58bc706a54fa
diff --git a/apps/mobile/.bablerc b/apps/mobile/.bablerc
index 0b4f7b408..8b1378917 100644
--- a/apps/mobile/.bablerc
+++ b/apps/mobile/.bablerc
@@ -1,7 +1 @@
-{
- "env": {
- "production": {
- "plugins": ["transform-remove-console"]
- }
- }
-}
\ No newline at end of file
+
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 7e8fdeabf..a135f2ace 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
@@ -3,7 +3,6 @@
<domain-config cleartextTrafficPermitted="true">
<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.9</domain>
+ <domain includeSubdomains="true">192.168.10.7</domain>
</domain-config>
</network-security-config>
\ No newline at end of file
diff --git a/apps/mobile/babel.config.js b/apps/mobile/babel.config.js
index f842b77fc..299bf1509 100644
--- a/apps/mobile/babel.config.js
+++ b/apps/mobile/babel.config.js
@@ -1,3 +1,6 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
+ plugins: [
+ //"transform-remove-console"
+ ]
};
diff --git a/apps/mobile/src/components/RestoreDialog/index.js b/apps/mobile/src/components/RestoreDialog/index.js
index f74e18dbd..f51e19f8f 100644
--- a/apps/mobile/src/components/RestoreDialog/index.js
+++ b/apps/mobile/src/components/RestoreDialog/index.js
@@ -111,7 +111,6 @@ const RestoreDataComponent = ({close, setRestoring, restoring}) => {
} catch (e) {
setRestoring(false);
ToastEvent.show(e.message, 'error', 'local');
-
}
};
@@ -136,9 +135,7 @@ const RestoreDataComponent = ({close, setRestoring, restoring}) => {
});
setFiles(files);
- } catch (e) {
-
- }
+ } catch (e) {}
};
return (
@@ -215,7 +212,7 @@ const RestoreDataComponent = ({close, setRestoring, restoring}) => {
<Paragraph color={colors.icon}>No backups found.</Paragraph>
</View>
}
- keyExtractor={item => item.filename}
+ keyExtractor={(item) => item.filename}
ListHeaderComponent={
!restoring ? null : (
<View
diff --git a/apps/mobile/src/services/DeviceDetection.js b/apps/mobile/src/services/DeviceDetection.js
index 6df7a5d81..732e9660a 100644
--- a/apps/mobile/src/services/DeviceDetection.js
+++ b/apps/mobile/src/services/DeviceDetection.js
@@ -30,7 +30,7 @@ export class DeviceDetectionService {
this.isPhoneOrTablet();
this.isIosOrAndroid();
this.detectIphoneX();
- console.log(size.width > size.height,"CALC")
+ //console.log(size.width > size.height,"CALC")
this.checkSmallTab(size.width > size.height ? 'LANDSCAPE' : 'PORTRAIT');
}
@@ -49,7 +49,7 @@ export class DeviceDetectionService {
this.height = Dimensions.get('screen').height;
let deviceSize = this.getDeviceSize();
- console.log(deviceSize, orientation, DeviceInfo.isTablet(), 'DATA');
+ //console.log(deviceSize, orientation, DeviceInfo.isTablet(), 'DATA');
if (
(!DeviceInfo.isTablet() && orientation === 'LANDSCAPE') ||
(DeviceInfo.isTablet() && (orientation === 'PORTRAIT' || deviceSize < 9))
diff --git a/apps/mobile/src/utils/DB.js b/apps/mobile/src/utils/DB.js
index ead6d1674..b6c685dbe 100644
--- a/apps/mobile/src/utils/DB.js
+++ b/apps/mobile/src/utils/DB.js
@@ -12,9 +12,9 @@ export const db = new Database(
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: 'http://192.168.10.7:5264',
+ AUTH_HOST: 'http://192.168.10.7:8264',
+ SSE_HOST: 'http://192.168.10.7:7264',
} : {
API_HOST: 'https://api.notesnook.com',
AUTH_HOST: 'https://auth.streetwriters.co',