Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
feat: upload files (#584)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vardan-arm committed Apr 13, 2022
1 parent cf705b3 commit 767285a
Show file tree
Hide file tree
Showing 9 changed files with 426 additions and 32 deletions.
6 changes: 6 additions & 0 deletions ios/Podfile.lock
Expand Up @@ -281,6 +281,8 @@ PODS:
- React-Core
- react-native-fingerprint-scanner (5.0.0):
- React-Core
- react-native-image-picker (4.7.3):
- React-Core
- react-native-mail (4.1.0):
- React-Core
- react-native-pager-view (5.4.15):
Expand Down Expand Up @@ -488,6 +490,7 @@ DEPENDENCIES:
- "react-native-aes (from `../node_modules/@standardnotes/react-native-aes`)"
- react-native-document-picker (from `../node_modules/react-native-document-picker`)
- react-native-fingerprint-scanner (from `../node_modules/react-native-fingerprint-scanner`)
- react-native-image-picker (from `../node_modules/react-native-image-picker`)
- react-native-mail (from `../node_modules/react-native-mail`)
- react-native-pager-view (from `../node_modules/react-native-pager-view`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
Expand Down Expand Up @@ -591,6 +594,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-document-picker"
react-native-fingerprint-scanner:
:path: "../node_modules/react-native-fingerprint-scanner"
react-native-image-picker:
:path: "../node_modules/react-native-image-picker"
react-native-mail:
:path: "../node_modules/react-native-mail"
react-native-pager-view:
Expand Down Expand Up @@ -707,6 +712,7 @@ SPEC CHECKSUMS:
react-native-aes: 420f829e2c4ff32e3deb2aa056094a6a29fcf992
react-native-document-picker: 5663fe4bcdb646200683a41790464d2793307ac8
react-native-fingerprint-scanner: be63e626b31fb951780a5fac5328b065a61a3d6e
react-native-image-picker: 4e6008ad8c2321622affa2c85432a5ebd02d480c
react-native-mail: 5fe7239a5b5c1e858d425501c03d1ab977434122
react-native-pager-view: b1914469643f40042e65d78cbf3d3dfebd6fb0d9
react-native-safe-area-context: da2d11bd7df9bf7779e9bdc85081c141cfa544f4
Expand Down
2 changes: 2 additions & 0 deletions ios/StandardNotes/Info.plist
Expand Up @@ -98,6 +98,8 @@
<string>Not used by application; required in configuration because API exists in build dependencies.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo library is optionally used to select files to upload or QR code images from your photo library.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone is optionally used to capture videos.</string>
<key>UIAppFonts</key>
<array>
<string>AntDesign.ttf</string>
Expand Down
7 changes: 4 additions & 3 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "standardnotes-mobile",
"version": "3.15.0",
"user-version": "3.15.0",
"version": "3.16.0",
"user-version": "3.16.0",
"private": true,
"license": "AGPL-3.0-or-later",
"scripts": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"@react-navigation/native": "^6.0.10",
"@react-navigation/stack": "^6.2.1",
"@standardnotes/components": "^1.7.14",
"@standardnotes/filepicker": "^1.10.5",
"@standardnotes/filepicker": "^1.10.6",
"@standardnotes/react-native-aes": "^1.4.3",
"@standardnotes/react-native-textview": "1.0.2",
"@standardnotes/react-native-utils": "1.0.1",
Expand All @@ -53,6 +53,7 @@
"react-native-flag-secure-android": "standardnotes/react-native-flag-secure-android#cb08e74",
"react-native-fs": "^2.19.0",
"react-native-gesture-handler": "2.3.2",
"react-native-image-picker": "^4.7.3",
"react-native-keychain": "^8.0.0",
"react-native-mail": "standardnotes/react-native-mail#fd26119e67a2ffc5eaa95a9c17049743e39ce2d3",
"react-native-privacy-snapshot": "standardnotes/react-native-privacy-snapshot#653e904",
Expand Down

0 comments on commit 767285a

Please sign in to comment.