251 Commits

Author SHA1 Message Date
Vardan Hakobyan
0ca9d78c2b chore: upgrade dependencies (#625)
* chore: upgrade dependencies

* fix: import icons from the correct repo

* fix: remove unnecessary code

* fix: correct function call

* chore: bump snjs

* fix: upgrade rnjsi, use urlsafe base64

* fix: error when deleting the note

* chore: upgrade deps

Co-authored-by: Mo <mo@standardnotes.com>
2022-05-26 16:12:59 +04:00
Vardan Hakobyan
51d97076b8 feat: show progress on file upload and download (#608) 2022-05-10 09:30:27 -05:00
Vardan Hakobyan
eb066324e1 fix: ask for microphone permission before capturing video (#600) 2022-04-25 17:41:58 +04:00
Vardan Hakobyan
767285a8b0 feat: upload files (#584)
* feat: upload files (chosen from device)

* refactor: handle file picking and uploading separately

* fix: when some file isn't uploaded, move to the next one instead of stopping the whole uploading process
fix: better wording

* feat: read file in chunks when uploading

* feat: read file in chunks and upload in one loop

* feat: attach files from camera and image library

* fix: better wording

* feat: let the user choose whether to shoot photo or video to attach, remove extra "Library" option for Android

* fix: correct imports

* fix: correct imports

* fix: remove unneeded styles, improve wording

* feat: implement files deletion (#588)

* feat: implement files deletion

* refactor: handle error on deleting, better wording
2022-04-13 11:12:51 -05:00
Vardan Hakobyan
b2ecd5f6d1 chore: upgrade deps (#581)
* chore: upgrade deps

* chore: correct snjs version

* fix: use correct service

* fix: TS errors

* fix: TS errors
2022-04-04 19:50:29 +04:00
Vardan Hakobyan
90a0caf901 feat: files popover (#570)
* feat: files popover (initial commit)

* chore: fixes after updating deps

* refactor: get rid of extra types

* feat: filter files list

* feat: rename file

* fix: sodium jsi package

* chore: update deps

* chore: upgrade deps

* fix: sodium jsi types

* feat: download files

* refactor: use screens navigation instead of modals so that next popups are not hidden behind already opened ones

* chore: version bump

* refactor: navigate to new screen for renaming files

* refactor: when downloading the file, append content chunks to it instead of overwriting the whole file

* feat: add Share dialog on iOS and separate "Share" and "Download" options on Android

* fix: small fixes

* feat: show toast notifications on file-related actions

* feat: show toast notifications on file-related actions, cleanup unneeded files after share

* feat: store downloaded files in "Downloads" folder on Android

* feat: show success message on ios after sharing the file

* fix: use `Aes` from React Native, remove unused dependency

* fix: restore "@standardnotes/react-native-aes" module

* feat: add feature flag to show files on dev only

* chore: fix lint error

* fix: performance optimization

* fix: call file protection methods from mutator service

* fix: remove event listener correctly after RN version update

* feat: download files on android to "Download" folder

* fix: remove event listener correctly after RN version update

* feat: check the storage permissions on Android on downloading files

* fix: don't trigger download if there is another download in progress

* style: wrap long file names, remove unneeded styles

* style: make file list scrollable, wrap long file names, remove unneeded styles

* fix: correctly delete attached file, better wording

* refactor: move files related logic to separate service

* fix: make the last item in files list reachable on scrolling

* fix: show toast notification after attaching/detaching file to a note

* feat: show lock icon next to protected files

* feat: show lock icon ONLY next to protected files

* feat: make search bar from notes list reusable and consume in files list as well

* feat: show filtered files count on screen title

* refactor: better name for `SearchBar` component

* fix: remove hardcoded bottom padding from files list

* chore: upgrade dependencies

* feat: show files in a separate section on sidebar
refactor: move file-related actions to a custom hook

* refactor: add types for toast

* feat: hide toast notification when pressing it

* chore: upgrade deps

* feat: show lock icon for protected files in Files section

* feat: better look for "Attached"/"All files" tabs switcher

* fix: decrease tab switcher height a bit smaller

* chore: fix lint errors

* feat: show "Export" instead of "Download" on iOS file actions

* feat: show different titles for file screen opener link depending on attached files count

* fix: show files list in note sidebar with correct vertical distance

* fix: optimize file protection toggling

* chore: cleanup console logs

* fix: remove commented parts

* fix: remove not implemented and commented parts

* style: more distance between lock and filetype icons

* fix: changes based on reviews

* fix: remove android-related unneeded configs

* chore: upgrade dependencies

Co-authored-by: Mo <mo@standardnotes.com>
2022-03-30 17:54:35 +04:00
Mo
b6cdbe37f6 chore: upgrade deps 2022-03-22 11:11:46 -05:00
Mo
2ae277f594 chore: major deps (#574)
* chore: upgrade core rn dep

* chore: move rn document picker to main deps

* chore: upgrade dev deps

* chore: upgrade rnsodium

* chore: upgrade styled-components

* chore: upgrade rn doc picker

* chore: upgrade react navigation

* chore: upgrade sntextview and react-native-aes

* chore: update static server patch file

* chore: fix types

* chore: upgrade snjs deps

* chore: lint

* chore: bump version
2022-03-19 10:29:38 -05:00
Mo
a4fc21611c feat: remove bugsnag (#573) 2022-03-15 13:43:49 -05:00
Mo
28eaeca46e refactor: smart tags to smart views (#562) 2022-02-27 14:44:45 -06:00
Johnny A
1a2b66042c chore(deps): update sn-react-native and sn-textview packages (#556)
* chore(deps): update sn-react-native and sn-textview packages

* chore: update Podfile.lock

Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
2022-02-23 16:59:48 -04:00
Radek Czemerys
0c6e611632 feat: use new JSI sodium implementation (#553)
* feat: use JSI for sodium implementation

* feat: syncronous crypto

* feat: synchronous uuid generation

* fix: revert xcodeproj changes

* chore: bump react-native-sodium-jsi version

* refactor: removed unused android code

* chore(deps): snjs

* chore(deps): snrn-jsi
2022-02-16 11:24:31 -06:00
Vardan Hakobyan
3b89c655bd feat: new UI for note cell (#537)
* chore: add support of svg files

* chore: replace original `no-shadow` rule to stop receiving false positive warnings

* feat: show editor icons and note status icons (pinned, deleted, etc.)

* refactor: store new colors in themes

* fix: handle missing icons case for note cell

* fix: get icon color and tint from snjs, remove duplicate color (`#086DD6`) from themes

* feat: let users to hide the editor icons

* chore: snjs version bump
2022-01-31 19:01:57 +04:00
Mo
2adbfcefb5 fix: insert template note when creating with default editor 2022-01-10 09:57:24 -06:00
Mo
40c02c2bfd chore: shared scheme 2021-12-31 23:37:52 -06:00
Mo
4d370380c3 feat: react-native 0.66.4 2021-12-31 23:21:26 -06:00
Mo
822787a5a1 feat: upgrade react native to 0.65.1 2021-12-31 19:11:40 -06:00
Mo
3878b3b242 chore: upgrade bugsnag 2021-12-31 13:37:33 -06:00
Mo
e6be328d50 fix: ios deployment target 11 2021-12-31 13:16:17 -06:00
Mo
e200df214c fix: remove reachability service 2021-12-30 18:46:20 -06:00
Mo
ce5e89ac1d feat/offline-editors (#517)
* feat: offline editors (#392)

* feat: add react-native-zip-archive dependency

* feat: download and extract offline editors

* feat: use offline editor path as webview source

* fix: change function name

* fix: move deactivate editor to compose unmount

* fix: add origin whitelist

* fix: add read access url

* fix: increase load end timeout to remove theme load flicker

* fix: set online url on getOfflineEditor error

* fix: set editor width and scale

* fix: add timeout to remove download message flicker

* fix: deactivate component when switching editors

* fix: use online url if process is terminated

* fix: check if component mounted before state update

* fix: decrease loading editor message timeout

* feat: remove editor loading message on ThemesActivated action (#415)

* chore(version-snjs): 2.0.76

* feat: remove loading editor message on ActivateThemes action

* fix: offline editors issues (#416)

* fix: read main from package.json

* fix: reload editor when switching after editor load failure

* fix: check offlineOnly before setting online url

* fix: prevent editor download if another download is in progress

* fix: live item deinit called more than once (#423)

* feat: check for and download editor updates

* fix: access denied webview errors on Android 10

* feat: serve offline editors from local static server (#472)

* feat: serve offline editors from local static server

* fix: use document directory for both OS

* fix: download error handling

* refactor: use forked repo for react-native-static-server

* chore: add logs and temporarily enable them for dev

* feat(wip): integrity verification

* refactor: component manager handling downloads

* feat(wip): functional component viewer

* feat: handle local themes

* chore: disable logging

* improve: use existing function

* fix: root url first load

* fix: types

* chore: cleanup
2021-12-30 15:25:39 -06:00
Mo Bitar
eb589daee7 fix: enable v4 features 2021-11-09 08:25:03 -06:00
Mo Bitar
c3bbaff043 feat: snjs 2.17, mobile 3.9.0 2021-11-08 12:11:30 -06:00
Antonella Sgarlatta
aa349c4e7a chore: update podfile.lock 2021-07-12 15:59:55 -03:00
Antonella Sgarlatta
4aba4547a8 fix: update Podfile.lock 2021-06-16 19:08:30 -03:00
Antonella Sgarlatta
2590a02a85 feat: revert offline editors (#443)
* Revert "fix: access denied webview errors on Android 10"

This reverts commit f171308aa6.

* Revert "feat: check for and download editor updates"

This reverts commit bce7218a4b.

* Revert "fix: live item deinit called more than once (#423)"

This reverts commit fb58bfc3ca.

* Revert "fix: offline editors issues (#416)"

This reverts commit 08930bdf73.

* Revert "feat: remove editor loading message on ThemesActivated action (#415)"

This reverts commit 19d535330d.

* Revert "fix: decrease loading editor message timeout"

This reverts commit d57361745b.

* Revert "fix: check if component mounted before state update"

This reverts commit 439df5f14c.

* Revert "feat: offline editors (#392)"

This reverts commit d2fe25d3ab.
2021-06-08 17:38:27 -03:00
Johnny A
c69dd302d7 fix: usage description for camera and photos (iOS) (#439)
* fix: usage description for camera and photos (iOS)

* Update ios/StandardNotes/Info.plist

Co-authored-by: Mo Bitar <mo@standardnotes.org>

* Update ios/StandardNotes/Info.plist

Co-authored-by: Mo Bitar <mo@standardnotes.org>

Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
Co-authored-by: Mo Bitar <mo@standardnotes.org>
2021-06-04 10:35:45 -04:00
Baptiste Grob
7420dfa6db feat(deps): upgrade to React Native v0.64.1 2021-05-05 16:10:30 +02:00
Baptiste Grob
f9a205de6d feat(deps): upgrade to React Native v0.64 (#429)
* chore(deps): upgrade React Native to v0.64

* chore(deps): upgrade react to v17

* fix: use FlatList in MainSideMenu

* fix: use FlatList in NoteSideMenu

* chore: run pod install

* Revert "fix: use FlatList in NoteSideMenu"

This reverts commit bd9a686268.

* Revert "fix: use FlatList in MainSideMenu"

This reverts commit 116fdafbb9.
2021-05-05 11:36:50 +02:00
Antonella Sgarlatta
2142d56549 Merge branch 'master' into develop 2021-04-30 16:42:49 -03:00
Baptiste Grob
71175ab593 Fix Compose view not picking up remote changed (#421)
* chore(deps): update sn-textview & standard-notes-rn

* fix: update compose view when receiving remote changes

* chore(version): 3.6.8

* fix: set screenshot privacy on app launch

Co-authored-by: Antonella Sgarlatta <antsgar@gmail.com>
2021-04-30 10:56:52 -03:00
Baptiste Grob
b3cc8c724a chore(deps): update sn-textview & standard-notes-rn 2021-04-23 16:32:47 +02:00
Baptiste Grob
52f3020aab fix: use long commit hash for standard-notes-rn dependency 2021-04-23 16:19:49 +02:00
Baptiste Grob
cbd2d1702a fix: remember active tag on launch (#410)
* chore: run pod install

* fix: use 'application?'

* fix: restore selected tag on launch
2021-04-23 15:43:15 +02:00
Antonella Sgarlatta
d2fe25d3ab feat: offline editors (#392)
* feat: add react-native-zip-archive dependency

* feat: download and extract offline editors

* feat: use offline editor path as webview source

* fix: change function name

* fix: move deactivate editor to compose unmount

* fix: add origin whitelist

* fix: add read access url

* fix: increase load end timeout to remove theme load flicker

* fix: set online url on getOfflineEditor error

* fix: set editor width and scale

* fix: add timeout to remove download message flicker

* fix: deactivate component when switching editors

* fix: use online url if process is terminated
2021-04-12 15:59:49 -03:00
Antonella Sgarlatta
8898c11c27 fix: remove use_frameworks 2021-02-27 13:37:05 -03:00
Baptiste Grob
7015098e55 feat: upgrade SNJS, add support for protections (#362)
* chore: run pod install

* chore(deps): upgrade snjs

* feat(wip): SNJS protections
2021-02-01 16:49:46 +01:00
Radek Czemerys
bda6282ebf feature: update snjs & webview
Update backups service for https://github.com/standardnotes/snjs/pull/178
2021-01-13 23:20:08 +01:00
Radek Czemerys
648ba8ccbd fix: restore default node location 2021-01-02 20:58:24 +01:00
Radek Czemerys
f4185fe035 chore: update libsodium 2021-01-02 16:25:40 +01:00
Radek Czemerys
69052a5e20 fix: chashes when disabling bug snag 2020-12-22 18:29:37 +01:00
Radek Czemerys
3d54a1b21d feature: bugsnag opt out 2020-12-22 17:38:39 +01:00
Radek Czemerys
924f417c86 chore: bump snjs 2020-12-15 17:45:37 +01:00
Radek Czemerys
2b5b2b7278 fix: iOS builds failures 2020-12-14 18:06:46 +01:00
Radek Czemerys
78f3854902 feature: React Native 0.63.4 2020-12-14 13:47:32 +01:00
Radek Czemerys
fc691fd52e chore: update bugsnag 2020-12-09 16:17:56 +01:00
Radek Czemerys
c2f2d3cd5d chore: bump snjs & other dependencies 2020-11-24 11:34:31 +01:00
Radek Czemerys
f45a224a40 fix: no warning for not decrypted users 2020-11-11 21:21:14 +01:00
Radek Czemerys
9019237528 fix: update webview to fix memore leaks 2020-11-10 20:53:56 +01:00
Radek Czemerys
270dd2ccbf fix: keychain failures recovery 2020-11-09 21:24:17 +01:00