Skip to content

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

update gradlew

ammarahm-ed9dbc1268d5f0
diff --git a/apps/mobile/android/gradlew b/apps/mobile/android/gradlew
index b0d6d0ab5..2114a2277 100755
--- a/apps/mobile/android/gradlew
+++ b/apps/mobile/android/gradlew
@@ -125,8 +125,8 @@ if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.js
index 1c9c885ca..1cb77e88b 100644
--- a/apps/mobile/src/components/Menu/index.js
+++ b/apps/mobile/src/components/Menu/index.js
@@ -567,7 +567,6 @@ export const Menu = ({
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
-
paddingHorizontal: 5,
paddingVertical: pv + 5,
}}>
diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.js
index 757dd9083..d9a430c89 100644
--- a/apps/mobile/src/components/NoteItem/index.js
+++ b/apps/mobile/src/components/NoteItem/index.js
@@ -65,7 +65,8 @@ export default class NoteItem extends React.Component {
index,
} = this.props;
- console.log('rerendering again', index);
+
+ console.log('rerendering again', item);
return (
<View
style={[
@@ -249,7 +250,7 @@ export default class NoteItem extends React.Component {
}
}
>
- conflicts
+ CONFLICTS
</Text>
</View> : null
}
diff --git a/apps/mobile/src/components/NotesList/index.js b/apps/mobile/src/components/NotesList/index.js
index 6f468eeb4..44a9b99af 100644
--- a/apps/mobile/src/components/NotesList/index.js
+++ b/apps/mobile/src/components/NotesList/index.js
@@ -204,13 +204,20 @@ export const NotesList = ({ isGrouped = false }) => {
await db.sync();
dispatch({ type: ACTIONS.NOTES });
dispatch({ type: ACTIONS.PINNED });
- dispatch({ type: ACTIONS.USER });
+ let user = await db.user.get();
+ dispatch({ type: ACTIONS.USER, user: user });
setRefreshing(false);
ToastEvent.show('Sync Complete', 'success');
} catch (e) {
setRefreshing(false);
+ dispatch({ type: ACTIONS.NOTES });
+ dispatch({ type: ACTIONS.PINNED });
+ let user = await db.user.get();
+ dispatch({ type: ACTIONS.USER, user: user });
ToastEvent.show(e.message, 'error');
}
+
+
}}
refreshing={refreshing}
/>
diff --git a/apps/mobile/src/components/SearchInput/index.js b/apps/mobile/src/components/SearchInput/index.js
index 1d3362992..2aa7b4f29 100644
--- a/apps/mobile/src/components/SearchInput/index.js
+++ b/apps/mobile/src/components/SearchInput/index.js
@@ -1,17 +1,17 @@
-import React, {useEffect, useState} from 'react';
-import {TextInput} from 'react-native';
-import Animated, {Easing} from 'react-native-reanimated';
+import React, { useEffect, useState } from 'react';
+import { TextInput } from 'react-native';
+import Animated, { Easing } from 'react-native-reanimated';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
-import {br, SIZE, WEIGHT} from '../../common/common';
-import {useTracked} from '../../provider';
-import {inputRef} from '../../utils/refs';
-import {DDS} from '../../utils/utils';
+import { br, SIZE, WEIGHT } from '../../common/common';
+import { useTracked } from '../../provider';
+import { inputRef } from '../../utils/refs';
+import { DDS } from '../../utils/utils';
-const {Value, timing, block} = Animated;
+const { Value, timing, block } = Animated;
export const Search = props => {
const [state, dispatch] = useTracked();
- const {colors, searchResults} = state;
+ const { colors, searchResults } = state;
const [focus, setFocus] = useState(false);
@@ -91,7 +91,7 @@ export const Search = props => {
placeholderTextColor={colors.icon}
/>
<Icon
- style={{paddingRight: DDS.isTab ? 12 : 12}}
+ style={{ paddingRight: DDS.isTab ? 12 : 12 }}
onPress={() => {
props.onSubmitEditing();
}}
diff --git a/apps/mobile/src/views/Login/index.js b/apps/mobile/src/views/Login/index.js
index 138e58a07..cf9adc6be 100644
--- a/apps/mobile/src/views/Login/index.js
+++ b/apps/mobile/src/views/Login/index.js
@@ -1,29 +1,18 @@
import React, { createRef, useEffect, useState } from 'react';
-import {
- BackHandler,
- SafeAreaView,
- Text,
- TouchableOpacity,
- View,
- ActivityIndicator,
-} from 'react-native';
+import { ActivityIndicator, BackHandler, SafeAreaView, Text, TouchableOpacity, View } from 'react-native';
+import * as Animatable from 'react-native-animatable';
import { TextInput } from 'react-native-gesture-handler';
+import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { useIsFocused } from 'react-navigation-hooks';
-
import { opacity, pv, SIZE, WEIGHT } from '../../common/common';
import { Header } from '../../components/header';
import { useTracked } from '../../provider';
+import { ACTIONS } from '../../provider/actions';
import { eSendEvent } from '../../services/eventManager';
import { eCloseSideMenu, refreshNotesPage } from '../../services/events';
-import * as Animatable from 'react-native-animatable';
-import {
- validateEmail,
- validatePass,
- validateUsername,
-} from '../../services/validation';
-import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
-import { ToastEvent, db, DDS } from '../../utils/utils';
-import { ACTIONS } from '../../provider/actions';
+import { validatePass, validateUsername } from '../../services/validation';
+import { db, DDS, ToastEvent } from '../../utils/utils';
+
export const Login = ({ navigation }) => {
const [state, dispatch] = useTracked();
@@ -94,8 +83,6 @@ export const Login = ({ navigation }) => {
}
let user;
-
-
try {
user = await db.user.get();
console.log('user', user);