History log of /expo/packages/expo-file-system/src/FileSystem.ts (Results 1 – 25 of 31)
Revision Date Author Comments
# 6e021b28 14-Sep-2023 Wojciech Dróżdż <[email protected]>

[core] Add native functions for UUIDv4 generation (#24199)

# Why

For Android and iOS we want to use native UUIDv4 generation methods.

# How

Exposed the common methods using the `CoreModule`

[core] Add native functions for UUIDv4 generation (#24199)

# Why

For Android and iOS we want to use native UUIDv4 generation methods.

# How

Exposed the common methods using the `CoreModule` file.
Changed the way uuids are exported. Now `expo-modules-core` exports a
`uuid` object which contains `v4` function.

# Test Plan

Tested in BareExpo on Android, ios and web

show more ...


# 8a424beb 11-Aug-2023 James Ide <[email protected]>

[lint] Upgrade to Prettier v3, typescript-eslint to v6 (#23544)

Why
---
Prettier 3 is out. Add support for it with this linter config.

**Note for reviewer:** the first commit is the one with th

[lint] Upgrade to Prettier v3, typescript-eslint to v6 (#23544)

Why
---
Prettier 3 is out. Add support for it with this linter config.

**Note for reviewer:** the first commit is the one with the actual
changes. The rest of this PR are changes to get the linter passing
(mostly autofix).

How
---
Update eslint-config-prettier and eslint-plugin-prettier. To address
deprecation warnings, also update typescript-eslint/parser and
typescript-eslint/eslint-plugin.
Because of an update to typescript-eslint/parser, we need to suppress
deprecation warnings (documented in a comment).

Regenerated test snapshots. Due to the upgraded dependencies, typecasts
and optional chaining are now auto-fixable by lint. This converts
warnings into autofixes.

Test Plan
---
`yarn test` in the linter config. Run `expotools check --all --fix-lint
--no-build --no-test --no-uniformity-check` to try this config on the
whole repo.

---------

Co-authored-by: Expo Bot <[email protected]>

show more ...


# de172362 19-Jul-2023 Valentin Vetter <[email protected]>

[docs][file-system] Fix wrong link to InfoOptions (#23596)


# 8fbec2ec 04-Jul-2023 Alan Hughes <[email protected]>

[core] Add uuid to expo-modules-core (#23249)


# 4fde8ae7 07-Jun-2023 Alan Hughes <[email protected]>

[android][file-system] Migrate to new modules API (#22728)

[android][file-system] Migrate to new modules API (#22728)


# a6c9ed0f 10-May-2023 Leandro Alberti <[email protected]>

Update FileSystem.d.ts and FileSystem.ts (#22435)


# 89c23745 26-Apr-2023 Gabriel Donadel Dall'Agnol <[email protected]>

[file-system] Remove deprecated UploadProgressData totalByteSent field (#22277)

# Why

Closes ENG-7226

Follow up PR updating docs -> #22278

# How

This PR removes the deprecated `totalByte

[file-system] Remove deprecated UploadProgressData totalByteSent field (#22277)

# Why

Closes ENG-7226

Follow up PR updating docs -> #22278

# How

This PR removes the deprecated `totalByteSent` field from
UploadProgressData

# Test Plan

Run NCL

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).

show more ...


# 4ee48f97 12-Jan-2023 Gabriel Donadel Dall'Agnol <[email protected]>

[file-system] Fix UploadProgressData field name typo (#20804)

# Why

`UploadProgressData` `totalByteSent` key should be `totalBytesSent` to
be consistent with other FIleSystem properties like
`t

[file-system] Fix UploadProgressData field name typo (#20804)

# Why

`UploadProgressData` `totalByteSent` key should be `totalBytesSent` to
be consistent with other FIleSystem properties like
`totalBytesExpectedToSend`, `totalBytesWritten` and
`totalBytesExpectedToWrite`.


Closes ENG-6559

Follow up PR updating docs -> https://github.com/expo/expo/pull/20810

# How

This updates all native references of `totalByteSent` to
`totalBytesSent` and adds a getter `totalByteSent` property to
`UploadProgressData` events so users get a deprecation warning when
accessing `totalByteSent`

# Test Plan

Added a new `Download & Upload file` button to NCL so we can properly
test this


https://user-images.githubusercontent.com/11707729/212067976-a4bdd509-8937-4f27-9516-cee35ed94dca.mov



# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin).

show more ...


# ca75dd58 26-Dec-2022 Bartosz Kaszubowski <[email protected]>

[file-system] add missing platform label in code docs (#20606)


# 6b7802ba 22-Nov-2022 Bartosz Kaszubowski <[email protected]>

[file-system][docs] migrate package to autogenerated docs, APISection tweaks (#20103)


# 00d910e2 22-Dec-2021 Luke Brandon Farrell <[email protected]>

[expo-file-system] fixed issues with UploadTask runtime crash and incorrect event (#15615)


# 6da15324 27-Aug-2021 Bartosz Kaszubowski <[email protected]>

[eslint-config] bump dependencies and minimum required lint tools versions (#13858)

Co-authored-by: James Ide <[email protected]>


# 52eeb172 18-Aug-2021 Łukasz Kosmaty <[email protected]>

[file-system][js] Make network task cancelable (#13318)

# Why

Added ability to cancel network tasks and a progress listener for file upload.

# How

- Created a `NetworkTask` class that is a

[file-system][js] Make network task cancelable (#13318)

# Why

Added ability to cancel network tasks and a progress listener for file upload.

# How

- Created a `NetworkTask` class that is a basic class for download and upload tasks.
- Added an upload progress listener.

# TODO

- [x] iOS - https://github.com/expo/expo/pull/13320
- [x] Android - https://github.com/expo/expo/pull/13319

show more ...


# 8285c032 13-Aug-2021 Tomasz Sapeta <[email protected]>

Rename unimodules imports to expo-modules-core


# 7f896a5f 25-May-2021 Giau. Tran Minh <[email protected]>

Refactor uuid imports to v7 style (#13037)


# 400de723 06-Mar-2021 Łukasz Kosmaty <[email protected]>

[expo-file-system] Fix compatibility with Android R (#12032)

# Why

Followup of https://github.com/expo/expo/pull/11647.

# How

- Handled SAF files in the `expo-file-system`.
- Added a way

[expo-file-system] Fix compatibility with Android R (#12032)

# Why

Followup of https://github.com/expo/expo/pull/11647.

# How

- Handled SAF files in the `expo-file-system`.
- Added a way to ask for external storage write permissions.

> **Note**: Those changes were needed to ensure a smooth transition to a scoped storage on Android.

# Test Plan

- NCL ✅

show more ...


# 37630a92 29-Apr-2020 Łukasz Kosmaty <[email protected]>

[file system][ios] Add multipart upload (#7403)

* [expo-file-system][ios] Add multipart upload

* [expo-file-system] Apply requested changes


# da65a760 27-Apr-2020 Łukasz Kosmaty <[email protected]>

[file system][ios] Add download and upload in background (#7380)

* [file-system] make downloadAsync work in backgroud

* [file-system] Upload method

* [file-system] Add body to response

* [f

[file system][ios] Add download and upload in background (#7380)

* [file-system] make downloadAsync work in backgroud

* [file-system] Upload method

* [file-system] Add body to response

* [file-system] Refactor

* [file system] Handle resumable downloads

* [file system] Add background/foreground option

* [file system] Make background session default

* [file system] Apply requested changes

* [file system] Fix typo

* [file system] Apply requested changes

* [file system] Add changelog

* [expo-file-system] Apply requested changes

* [expo-file-system] Fix session lifetime

* [expo-file-system] Refactor

* [expo-file-system] Fix headers

* [expo-file-system] Apply requested changes

* [expo-file-system] Fix lifetime of EXFileSystem

* [expo-file-system] Extract resumables manger

* [expo-file-system] Pass body safely

* [expo-file-system] Pod install

* [expo-file-system] Apply requested changes

* [expo-file-system] Apply requested changes

* [expo-file-system] Apply requested changes

* [expo-file-system] Pod install in bare-expo

* [expo-file-system] EXResumableManager -> EXResumablesManager

* [expo-file-system] Fix error codes

show more ...


# 92f6de58 14-Feb-2020 Will Schurman <[email protected]>

[eslint-config-universe] Add import ordering alphabetization (#7038)


# d38805f3 14-Feb-2020 James Ide <[email protected]>

Replace uuid-js with uuid/v4 (#7048)

* fix: remove uuid-js dependency

* fix: remove uuid-js dependency

* chore: remove uuid-js in all packages

* fix: include updated packages

* fix: add

Replace uuid-js with uuid/v4 (#7048)

* fix: remove uuid-js dependency

* fix: remove uuid-js dependency

* chore: remove uuid-js in all packages

* fix: include updated packages

* fix: add missing build files

* [fs] Use uuid/v4 instead of an inlined solution

Co-authored-by: Julian Hundeloh <[email protected]>

show more ...


# 0d6db115 27-Nov-2019 Eric Samelson <[email protected]>

[android][expo-file-system] migrate files from scoped dir and provide helper method to delete legacy dir (#6367)


# 79a5fc63 31-Aug-2019 James Ide <[email protected]>

[lint] Add a "lint" script to all packages and fix lint warnings & errors

This turns on linting for all of the packages, enforced by `expotools check-packages`. I added a "lint" script to each packa

[lint] Add a "lint" script to all packages and fix lint warnings & errors

This turns on linting for all of the packages, enforced by `expotools check-packages`. I added a "lint" script to each package and an `.eslintrc.js` file created by expo-module-scripts. For some packages like jest-expo that are intended to run on Node, I used a small handwritten ESLint config that uses the universe/node config.

Tested with `expotools check-packages` after fixing all the lint warnings and errors.

show more ...


# ae9a5f1a 24-Jul-2019 Tongyu Zhu <[email protected]>

[expo-device] Add expo-device module (#4682)

* Create the highly anticipated Device module


# 1e8a0c40 18-Jun-2019 Tomasz Sapeta <[email protected]>

[camera][file-system] fix expo_sdk check not passing


# e4897761 17-Jun-2019 Tongyu Zhu <[email protected]>

[FileSystem]Add ContentUriFromFile() function to support external file access outside expo app on Android (#4526)

* add contentUri function to filesystem

* [WIP]

* add getContentUriAsync() int

[FileSystem]Add ContentUriFromFile() function to support external file access outside expo app on Android (#4526)

* add contentUri function to filesystem

* [WIP]

* add getContentUriAsync() into FileSystem module and add docs about it

* revert new line

* modify logic and add flags in RN

* add alternative promist rejection

* modify format, add logic and ios platform

show more ...


12