Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# v3.3.4 (June 6, 2025)
* [#85](https://github.com/sourcetoad/react-native-fs2/pull/85) - Upgrade example app to RN 79.
* [#84](https://github.com/sourcetoad/react-native-fs2/pull/84) - MediaStore improvements with IS_PENDING flag for Android 29+.

# v3.3.3 (April 16, 2025)
* [#82](https://github.com/sourcetoad/react-native-fs2/pull/82) - Move to `try-with-resources` to close streams.

Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ if (await RNFS.isResumable('JobID')) {
RNFS.resumeDownload('JobID')
}
```
* Check if the the download job with this ID is resumable.
* Check if the download job with this ID is resumable.

### `touch`
```ts
Expand All @@ -278,13 +278,13 @@ await RNFS.scanFile('FilePath', Date, Date)
```
* Scan the file using [Media Scanner](https://developer.android.com/reference/android/media/MediaScannerConnection).

# MediaStore

### RNFS2 can now interact with the MediaStore on Android. This allows you to add, delete, and update media files in the MediaStore.
----

### Inspiration for this feature came from [react-native-blob-util](https://github.com/RonRadtke/react-native-blob-util/wiki/MediaStore/)
# MediaStore
_RNFS2 can now interact with the MediaStore on Android. This allows you to add, delete, and update media files in the MediaStore._

### This feature is only available on Android targeting API 29 or higher. And may require the following permissions:
* Inspiration for this feature came from [react-native-blob-util](https://github.com/RonRadtke/react-native-blob-util/wiki/MediaStore/)
* This feature is only available on Android targeting API 29 or higher. And may require the following permissions:

```xml
<!-- Required only if your app needs to access images or photos that other apps created. -->
Expand Down Expand Up @@ -385,26 +385,26 @@ await RNFS.MediaStore.deleteFromMediaStore('content://media/external/images/medi

## FileDescriptor
```ts
type FileDescriptor = {
name: string;
parentFolder: string;
mimeType: string
type FileDescriptor = {
name: string;
parentFolder: string;
mimeType: string
};
```

## MediaStoreSearchOptions
```ts
type MediaStoreSearchOptions = {
uri: string;
fileName: string;
relativePath: string;
mediaType: MediaCollections
type MediaStoreSearchOptions = {
uri: string;
fileName: string;
relativePath: string;
mediaType: MediaCollections
};
```

## MediaStoreQueryResult
```ts
type MediaStoreQueryResult = {
type MediaStoreQueryResult = {
contentUri: string;
};
```
Expand Down
14 changes: 12 additions & 2 deletions example/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ GEM
json (>= 1.5.1)
atomos (0.1.3)
base64 (0.2.0)
benchmark (0.4.0)
bigdecimal (3.1.9)
claide (1.1.0)
cocoapods (1.14.3)
addressable (~> 2.8)
Expand Down Expand Up @@ -70,8 +72,10 @@ GEM
i18n (1.14.5)
concurrent-ruby (~> 1.0)
json (2.7.2)
logger (1.7.0)
minitest (5.24.1)
molinillo (0.8.0)
mutex_m (0.3.0)
nanaimo (0.3.0)
nap (1.1.0)
netrc (0.11.0)
Expand All @@ -97,8 +101,14 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
activesupport (>= 6.1.7.5, < 7.1.0)
cocoapods (>= 1.13, < 1.15)
activesupport (>= 6.1.7.5, != 7.1.0)
benchmark
bigdecimal
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
concurrent-ruby (< 1.3.4)
logger
mutex_m
xcodeproj (< 1.26.0)

RUBY VERSION
ruby 2.7.7p221
Expand Down
Loading
Loading