[hotfix][file-system] Fix copyAsync regression (#23892)
[android][file-system] Migrate to new modules API (#22728)[android][file-system] Migrate to new modules API (#22728)
[kotlin] toLowerCase -> lowercase due to deprecation (#22225)
[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 ...
[android] Fix scopedContext unavailable in Sweet API modules (#19205)Co-authored-by: Expo Bot <[email protected]>
[packages] Remove backward compatible workarounds and drop react-native 0.64 support (#16446)# Why basically because we cannot apply the okhttp/okio workaround to expo go versioned code. maintai
[packages] Remove backward compatible workarounds and drop react-native 0.64 support (#16446)# Why basically because we cannot apply the okhttp/okio workaround to expo go versioned code. maintaining these workarounds increase maintenance cost. since we are doing expo modules for next sdk based on react-native 0.67 or even 0.68, there's no reason we should keep backward compatible with 0.64. # How - okhttp/okio upgrade to the version as react-native 0.67.2 and migrate deprecated kotlin code. - remove `EXComponentDataCompatibleWrapper` from expo-modules-core # Test Plan - ci pass - bare-expo launch
[android] [file-system] Support file schemes on Android (#16352)
[android][file-system] Fixed Range header in download request (#15934)* [android][file-system] Fixed Range header in download request When using FileSytem.createDownloadResumable(), the download
[android][file-system] Fixed Range header in download request (#15934)* [android][file-system] Fixed Range header in download request When using FileSytem.createDownloadResumable(), the download request failed with some servers because there was an invalid header: Range=null- It happened because the resumeData argument was not null checked. * Add changelog entry for #15934 * Add backticks around code sample. Co-authored-by: Bartłomiej Klocek <[email protected]> Co-authored-by: Bartłomiej Klocek <[email protected]> Co-authored-by: Bartłomiej Klocek <[email protected]>
[packages] Fix okio/okhttp compatibility issue (#15915)# Why fix #15632 # How `okio` and `okhttp` were be upgraded in react-native 0.66. there were some android build errors. since there'r
[packages] Fix okio/okhttp compatibility issue (#15915)# Why fix #15632 # How `okio` and `okhttp` were be upgraded in react-native 0.66. there were some android build errors. since there're too many places need to apply the workaround like #14761. that's not ideal to add `@Suppress("DEPRECATION_ERROR")` everywhere. according to [okio](https://square.github.io/okio/changelog/#version-200-rc1) and [okhttp](https://square.github.io/okhttp/upgrading_to_okhttp_4/), they are backward compatible in binary level. as an alternative solution, i make these broken packages to have `compileOnly` to okio/okhttp and pin to the older version. # Test Plan - build bare-expo on the current branch (rn 0.64) - build bare-expo on the `@kudo/rn66` branch (rn 0.66)
[expo-file-system] Fix build (#15121)
[filesystem][android] Fix inheritance error in expoviewIn expoview, the `ScopedFileSystemModule` and `ScopedFilePermissionModule` classes inherit from `expo-filesystem` classes.In #14549 the files
[filesystem][android] Fix inheritance error in expoviewIn expoview, the `ScopedFileSystemModule` and `ScopedFilePermissionModule` classes inherit from `expo-filesystem` classes.In #14549 the filesystem was kotlinized, but the classes weren't marked as `open`. Without that keyword, Kotlin classes are `final` by default.This caused errors when building shell-app: Building expoview... ❌ Failed to build expoview:./gradlew exited with non-zero code: 1Unable to generate manifest from home: Failed to fetch manifest from exp://10.1.0.59:80/home/runner/work/expo/expo/android/expoview/build/tmp/kapt3/stubs/versionedRelease/versioned/host/exp/exponent/modules/universal/ScopedFileSystemModule.java:6: error: cannot inherit from final FileSystemModulepublic final class ScopedFileSystemModule extends expo.modules.filesystem.FileSystemModule { ^/home/runner/work/expo/expo/android/expoview/build/tmp/kapt3/stubs/versionedRelease/versioned/host/exp/exponent/modules/universal/ScopedFilePermissionModule.java:6: error: cannot inherit from final FilePermissionModulepublic final class ScopedFilePermissionModule extends expo.modules.filesystem.FilePermissionModule { ^FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':expoview:kaptVersionedReleaseKotlin'.> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution > java.lang.reflect.InvocationTargetException (no error message)This commit marks these classes as `open` to allow them to be inherited from.
[filesystem][android] Rewrite module to Kotlin (#14549)
[file-system] fix: upload async when using binary content (#14764)* fix upload async when using binary content * Update packages/expo-file-system/CHANGELOG.md Co-authored-by: Expo CI <3466913
[file-system] fix: upload async when using binary content (#14764)* fix upload async when using binary content * Update packages/expo-file-system/CHANGELOG.md Co-authored-by: Expo CI <[email protected]> * use android studio auto indent * Revert "use android studio auto indent" This reverts commit 6b7e69502f88e649a5b7dc84c04a4837ca44076c. * add back necessary changes that were reverted * backport to sdk 43 versioned code Co-authored-by: Expo CI <[email protected]>
[file-system] fix okio build error on react-native 0.65 or above (#14761)
[file-system][android] Make network task cancelable (#13319)# Why Added ability to cancel network tasks and a progress listener for file upload. # How - Implemented progress emitter for up
[file-system][android] Make network task cancelable (#13319)# Why Added ability to cancel network tasks and a progress listener for file upload. # How - Implemented progress emitter for upload task. - Implemented `uploadTaskStartAsync` and `cancelTaskAsync`. # TODO - [x] iOS - https://github.com/expo/expo/pull/13320 - [x] JS - https://github.com/expo/expo/pull/13318
[expo-modules] Move code from `unimodules` into `expo-modules-core` (#13703)# Why Migrated `unimodules-core`, `unimodules-react-native-adapter`, `unimodules-app-loader` into `expo-modules-core`
[expo-modules] Move code from `unimodules` into `expo-modules-core` (#13703)# Why Migrated `unimodules-core`, `unimodules-react-native-adapter`, `unimodules-app-loader` into `expo-modules-core` # How - Change package using AS refactor tools - Fix some places where AS wasn't able to do automatically - Fix compatibility with new auto-linking - Ensure that classes which are used during installation steps are still available in the old place # Test Plan - expo-go (tested using unversioned and 41) - bare-expo
fix: crash of file system when try to read cache dir file on android (#13232)fixed #5408 # Why Should resolve to `{ exists: false }` instead of throwing # How `getInfoAsync` throws an err
fix: crash of file system when try to read cache dir file on android (#13232)fixed #5408 # Why Should resolve to `{ exists: false }` instead of throwing # How `getInfoAsync` throws an error `File <file path isn't readable>` # Steps to Reproduce try to read file from `cacheDirectory` it will throw an exception which this PR has fixed ### Reproducible Demo https://snack.expo.io/@charliecruzan/getinfoasyncerror
[file-system] Migrate interface to expo-modules-core (#12918)
[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 ✅
[expo-file-system][android] Fix `uploadAsync` signature and cast exception (#9076)
[expo-file-system] Fix `getInfo` returning incorrect size when provided path points to folder (#9063)Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
[expo-file-system] fix download progress event name on Android (#8605)
[file-system][android] add ability to read from bundle resources (#8104)
[expo-file-system][android] Add support for multipart upload (#7405)
[file system][android] Add upload method (#7393)* [file system] Add upload method * [file system] Apply requested changes * [expo-file-system] Change http method type to string * [expo-fil
[file system][android] Add upload method (#7393)* [file system] Add upload method * [file system] Apply requested changes * [expo-file-system] Change http method type to string * [expo-file-system] Fix formatting
123