expo-file-system 19.0.15 → 19.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/filesystem/FileSystemFile.kt +17 -0
- package/android/src/main/java/expo/modules/filesystem/{legacy/FileSystemFileProvider.kt → FileSystemFileProvider.kt} +1 -1
- package/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt +10 -2
- package/android/src/main/java/expo/modules/filesystem/FileSystemNextRecords.kt +11 -0
- package/build/ExpoFileSystem.types.d.ts +18 -1
- package/build/ExpoFileSystem.types.d.ts.map +1 -1
- package/build/FileSystem.d.ts +4 -4
- package/expo-module.config.json +1 -1
- package/ios/FileSystemExceptions.swift +6 -0
- package/ios/FileSystemFile.swift +6 -0
- package/ios/FileSystemModule.swift +9 -2
- package/ios/FileSystemRecords.swift +9 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.15/expo.modules.filesystem-19.0.15-sources.jar → 19.0.16/expo.modules.filesystem-19.0.16-sources.jar} +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16-sources.jar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16-sources.jar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16-sources.jar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16-sources.jar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.15/expo.modules.filesystem-19.0.15.module → 19.0.16/expo.modules.filesystem-19.0.16.module} +22 -22
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.15/expo.modules.filesystem-19.0.15.pom → 19.0.16/expo.modules.filesystem-19.0.16.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.16/expo.modules.filesystem-19.0.16.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha512 +1 -1
- package/package.json +2 -2
- package/src/ExpoFileSystem.types.ts +20 -1
- package/src/FileSystem.ts +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15-sources.jar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15-sources.jar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15-sources.jar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15-sources.jar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.aar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.aar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.aar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.aar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.15/expo.modules.filesystem-19.0.15.pom.sha512 +0 -1
- /package/android/src/main/{java/expo/modules/filesystem/AndroidManifest.xml → AndroidManifest.xml} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,17 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 19.0.16 — 2025-10-01
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- Add write options for base64 encoded bytes. ([#39963](https://github.com/expo/expo/pull/39963) by [@aleqsio](https://github.com/aleqsio))
|
|
18
|
+
|
|
19
|
+
### 🐛 Bug fixes
|
|
20
|
+
|
|
21
|
+
- Fix typedoc in the File class. ([#40064](https://github.com/expo/expo/pull/40064) by [@aleqsio](https://github.com/aleqsio))
|
|
22
|
+
- [Android] Fix getContentUri. ([#40001](https://github.com/expo/expo/pull/40001) by [@aleqsio](https://github.com/aleqsio))
|
|
23
|
+
|
|
13
24
|
## 19.0.15 — 2025-09-22
|
|
14
25
|
|
|
15
26
|
### 🎉 New features
|
package/android/build.gradle
CHANGED
|
@@ -80,6 +80,23 @@ class FileSystemFile(uri: Uri) : FileSystemPath(uri) {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
fun write(content: ByteArray) {
|
|
84
|
+
validateType()
|
|
85
|
+
validatePermission(Permission.WRITE)
|
|
86
|
+
if (!exists) {
|
|
87
|
+
create()
|
|
88
|
+
}
|
|
89
|
+
if (uri.isContentUri) {
|
|
90
|
+
file.outputStream().use { outputStream ->
|
|
91
|
+
outputStream.write(content)
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
FileOutputStream(javaFile).use {
|
|
95
|
+
it.write(content)
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
83
100
|
fun asString(): String {
|
|
84
101
|
val uriString = file.uri.toString()
|
|
85
102
|
return if (uriString.endsWith("/")) uriString.dropLast(1) else uriString
|
|
@@ -2,7 +2,10 @@ package expo.modules.filesystem
|
|
|
2
2
|
|
|
3
3
|
import android.content.Context
|
|
4
4
|
import android.net.Uri
|
|
5
|
+
import android.os.Build
|
|
6
|
+
import android.util.Base64
|
|
5
7
|
import android.webkit.URLUtil
|
|
8
|
+
import androidx.annotation.RequiresApi
|
|
6
9
|
import expo.modules.interfaces.filesystem.Permission
|
|
7
10
|
import expo.modules.kotlin.activityresult.AppContextActivityResultLauncher
|
|
8
11
|
import expo.modules.kotlin.apifeatures.EitherType
|
|
@@ -24,6 +27,7 @@ class FileSystemModule : Module() {
|
|
|
24
27
|
private val context: Context
|
|
25
28
|
get() = appContext.reactContext ?: throw Exceptions.AppContextLost()
|
|
26
29
|
|
|
30
|
+
@RequiresApi(Build.VERSION_CODES.O)
|
|
27
31
|
@OptIn(EitherType::class)
|
|
28
32
|
override fun definition() = ModuleDefinition {
|
|
29
33
|
Name("FileSystem")
|
|
@@ -138,10 +142,14 @@ class FileSystemModule : Module() {
|
|
|
138
142
|
file.create(options ?: CreateOptions())
|
|
139
143
|
}
|
|
140
144
|
|
|
141
|
-
Function("write") { file: FileSystemFile, content: Either<String, TypedArray
|
|
145
|
+
Function("write") { file: FileSystemFile, content: Either<String, TypedArray>, options: WriteOptions? ->
|
|
142
146
|
if (content.`is`(String::class)) {
|
|
143
147
|
content.get(String::class).let {
|
|
144
|
-
|
|
148
|
+
if (options?.encoding == EncodingType.BASE64) {
|
|
149
|
+
file.write(Base64.decode(it, Base64.DEFAULT))
|
|
150
|
+
} else {
|
|
151
|
+
file.write(it)
|
|
152
|
+
}
|
|
145
153
|
}
|
|
146
154
|
}
|
|
147
155
|
if (content.`is`(TypedArray::class)) {
|
|
@@ -2,6 +2,7 @@ package expo.modules.filesystem
|
|
|
2
2
|
|
|
3
3
|
import expo.modules.kotlin.records.Field
|
|
4
4
|
import expo.modules.kotlin.records.Record
|
|
5
|
+
import expo.modules.kotlin.types.Enumerable
|
|
5
6
|
|
|
6
7
|
data class InfoOptions(
|
|
7
8
|
@Field
|
|
@@ -17,6 +18,16 @@ data class CreateOptions(
|
|
|
17
18
|
val idempotent: Boolean = false
|
|
18
19
|
) : Record
|
|
19
20
|
|
|
21
|
+
enum class EncodingType(val value: String) : Enumerable {
|
|
22
|
+
UTF8("utf8"),
|
|
23
|
+
BASE64("base64")
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
data class WriteOptions(
|
|
27
|
+
@Field
|
|
28
|
+
val encoding: EncodingType = EncodingType.UTF8
|
|
29
|
+
) : Record
|
|
30
|
+
|
|
20
31
|
data class DownloadOptions(
|
|
21
32
|
@Field
|
|
22
33
|
val headers: Map<String, String> = emptyMap(),
|
|
@@ -10,6 +10,23 @@ export type FileCreateOptions = {
|
|
|
10
10
|
*/
|
|
11
11
|
overwrite?: boolean;
|
|
12
12
|
};
|
|
13
|
+
export declare enum EncodingType {
|
|
14
|
+
/**
|
|
15
|
+
* Standard encoding format.
|
|
16
|
+
*/
|
|
17
|
+
UTF8 = "utf8",
|
|
18
|
+
/**
|
|
19
|
+
* Binary, radix-64 representation.
|
|
20
|
+
*/
|
|
21
|
+
Base64 = "base64"
|
|
22
|
+
}
|
|
23
|
+
export type FileWriteOptions = {
|
|
24
|
+
/**
|
|
25
|
+
* The encoding format to use when writing the file.
|
|
26
|
+
* @default FileSystem.EncodingType.UTF8
|
|
27
|
+
*/
|
|
28
|
+
encoding?: EncodingType | 'utf8' | 'base64';
|
|
29
|
+
};
|
|
13
30
|
export type DirectoryCreateOptions = {
|
|
14
31
|
/**
|
|
15
32
|
* Whether to create intermediate directories if they do not exist.
|
|
@@ -187,7 +204,7 @@ export declare class File {
|
|
|
187
204
|
* Writes content to the file.
|
|
188
205
|
* @param content The content to write into the file.
|
|
189
206
|
*/
|
|
190
|
-
write(content: string | Uint8Array): void;
|
|
207
|
+
write(content: string | Uint8Array, options: FileWriteOptions): void;
|
|
191
208
|
/**
|
|
192
209
|
* Deletes a file.
|
|
193
210
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoFileSystem.types.d.ts","sourceRoot":"","sources":["../src/ExpoFileSystem.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B;;;;;;;OAOG;gBACS,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE;IAElD;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,YAAY,IAAI,IAAI;IAEpB;;;;OAIG;IACH,MAAM,IAAI,IAAI;IAEd;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,IAAI;IAE9C,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAEvD,eAAe,CAAC,IAAI,EAAE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/FileSystem.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class Paths extends PathUtilities {
|
|
|
36
36
|
* The constructor accepts an array of strings that are joined to create the file URI. The first argument can also be a `Directory` instance (like `Paths.cache`) or a `File` instance (which creates a new reference to the same file).
|
|
37
37
|
* @example
|
|
38
38
|
* ```ts
|
|
39
|
-
* const file = new File(
|
|
39
|
+
* const file = new File(Paths.cache, "subdirName", "file.txt");
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
export declare class File extends ExpoFileSystem.FileSystemFile implements Blob {
|
|
@@ -47,7 +47,7 @@ export declare class File extends ExpoFileSystem.FileSystemFile implements Blob
|
|
|
47
47
|
* @param uris An array of: `file:///` string URIs, `File` instances, and `Directory` instances representing an arbitrary location on the file system.
|
|
48
48
|
* @example
|
|
49
49
|
* ```ts
|
|
50
|
-
* const file = new File(
|
|
50
|
+
* const file = new File(Paths.cache, "subdirName", "file.txt");
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
53
|
constructor(...uris: (string | File | Directory)[]);
|
|
@@ -75,7 +75,7 @@ export declare class File extends ExpoFileSystem.FileSystemFile implements Blob
|
|
|
75
75
|
* The constructor accepts an array of strings that are joined to create the directory URI. The first argument can also be a `Directory` instance (like `Paths.cache`).
|
|
76
76
|
* @example
|
|
77
77
|
* ```ts
|
|
78
|
-
* const directory = new Directory(
|
|
78
|
+
* const directory = new Directory(Paths.cache, "subdirName");
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
81
|
export declare class Directory extends ExpoFileSystem.FileSystemDirectory {
|
|
@@ -86,7 +86,7 @@ export declare class Directory extends ExpoFileSystem.FileSystemDirectory {
|
|
|
86
86
|
* @param uris An array of: `file:///` string URIs, `File` instances, and `Directory` instances representing an arbitrary location on the file system.
|
|
87
87
|
* @example
|
|
88
88
|
* ```ts
|
|
89
|
-
* const directory = new Directory(
|
|
89
|
+
* const directory = new Directory(Paths.cache, "subdirName");
|
|
90
90
|
* ```
|
|
91
91
|
*/
|
|
92
92
|
constructor(...uris: (string | File | Directory)[]);
|
package/expo-module.config.json
CHANGED
|
@@ -13,6 +13,12 @@ internal final class UnableToDownloadException: GenericException<String> {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
internal final class UnableToWriteBase64DataException: GenericException<String> {
|
|
17
|
+
override var reason: String {
|
|
18
|
+
"Unable to write base64 data to a file: \(param)"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
internal final class InvalidTypeFileException: Exception {
|
|
17
23
|
override var reason: String {
|
|
18
24
|
"A folder with the same name already exists in the file location"
|
package/ios/FileSystemFile.swift
CHANGED
|
@@ -81,6 +81,12 @@ internal final class FileSystemFile: FileSystemPath {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
func write(_ data: Data) throws {
|
|
85
|
+
try withCorrectTypeAndScopedAccess(permission: .write) {
|
|
86
|
+
try data.write(to: url)
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
// TODO: blob support
|
|
85
91
|
func write(_ content: TypedArray) throws {
|
|
86
92
|
try withCorrectTypeAndScopedAccess(permission: .write) {
|
|
@@ -202,9 +202,16 @@ public final class FileSystemModule: Module {
|
|
|
202
202
|
return try file.info(options: options ?? InfoOptions())
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
Function("write") { (file, content: Either<String, TypedArray
|
|
205
|
+
Function("write") { (file: FileSystemFile, content: Either<String, TypedArray>, options: WriteOptions?) in
|
|
206
206
|
if let content: String = content.get() {
|
|
207
|
-
|
|
207
|
+
if options?.encoding == WriteEncoding.base64 {
|
|
208
|
+
guard let data = Data(base64Encoded: content, options: .ignoreUnknownCharacters) else {
|
|
209
|
+
throw UnableToWriteBase64DataException(file.url.absoluteString)
|
|
210
|
+
}
|
|
211
|
+
try file.write(data)
|
|
212
|
+
} else {
|
|
213
|
+
try file.write(content)
|
|
214
|
+
}
|
|
208
215
|
}
|
|
209
216
|
if let content: TypedArray = content.get() {
|
|
210
217
|
try file.write(content)
|
|
@@ -35,3 +35,12 @@ struct DirectoryInfo: Record {
|
|
|
35
35
|
@Field var modificationTime: Int64?
|
|
36
36
|
@Field var creationTime: Int64?
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
enum WriteEncoding: String, Enumerable {
|
|
40
|
+
case utf8
|
|
41
|
+
case base64
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
struct WriteOptions: Record {
|
|
45
|
+
@Field var encoding: WriteEncoding?
|
|
46
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eb9c254f5ab2514e83db9dd934eaa22c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d372fc4ea514b436e89656c186c54f3c27320b7e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2ce5bf618d3e1370e92da41b3ae54847ee10874310bac1c7a31918ea9b463777
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
60c1582dab4e6504250846af398e2e5993b17a7c14c141282407f8f7f7949256331d238c5ea32afb7c5753903fc0b868fe1a79c3f972ea2525e947744005c6dc
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
87d735cdcd4a073816bf205bbf6dbe7c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b75600742761aa7454e90367911205a044962027
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
feab8d53caa9bbf48cf41532048ac5f206b0ab482118d2279a5124126902b9fa
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c6a7ae1fb95df6076dd160993ce6650502806e924f35b7e87fa03f0f6060bc7db14f7a603692ce8b880f84462404d59dd8129b486a1e732c5b9d1cc4c255440d
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.filesystem",
|
|
6
|
-
"version": "19.0.
|
|
6
|
+
"version": "19.0.16",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
],
|
|
76
76
|
"files": [
|
|
77
77
|
{
|
|
78
|
-
"name": "expo.modules.filesystem-19.0.
|
|
79
|
-
"url": "expo.modules.filesystem-19.0.
|
|
80
|
-
"size":
|
|
81
|
-
"sha512": "
|
|
82
|
-
"sha256": "
|
|
83
|
-
"sha1": "
|
|
84
|
-
"md5": "
|
|
78
|
+
"name": "expo.modules.filesystem-19.0.16.aar",
|
|
79
|
+
"url": "expo.modules.filesystem-19.0.16.aar",
|
|
80
|
+
"size": 390234,
|
|
81
|
+
"sha512": "c6a7ae1fb95df6076dd160993ce6650502806e924f35b7e87fa03f0f6060bc7db14f7a603692ce8b880f84462404d59dd8129b486a1e732c5b9d1cc4c255440d",
|
|
82
|
+
"sha256": "feab8d53caa9bbf48cf41532048ac5f206b0ab482118d2279a5124126902b9fa",
|
|
83
|
+
"sha1": "b75600742761aa7454e90367911205a044962027",
|
|
84
|
+
"md5": "87d735cdcd4a073816bf205bbf6dbe7c"
|
|
85
85
|
}
|
|
86
86
|
]
|
|
87
87
|
},
|
|
@@ -153,13 +153,13 @@
|
|
|
153
153
|
],
|
|
154
154
|
"files": [
|
|
155
155
|
{
|
|
156
|
-
"name": "expo.modules.filesystem-19.0.
|
|
157
|
-
"url": "expo.modules.filesystem-19.0.
|
|
158
|
-
"size":
|
|
159
|
-
"sha512": "
|
|
160
|
-
"sha256": "
|
|
161
|
-
"sha1": "
|
|
162
|
-
"md5": "
|
|
156
|
+
"name": "expo.modules.filesystem-19.0.16.aar",
|
|
157
|
+
"url": "expo.modules.filesystem-19.0.16.aar",
|
|
158
|
+
"size": 390234,
|
|
159
|
+
"sha512": "c6a7ae1fb95df6076dd160993ce6650502806e924f35b7e87fa03f0f6060bc7db14f7a603692ce8b880f84462404d59dd8129b486a1e732c5b9d1cc4c255440d",
|
|
160
|
+
"sha256": "feab8d53caa9bbf48cf41532048ac5f206b0ab482118d2279a5124126902b9fa",
|
|
161
|
+
"sha1": "b75600742761aa7454e90367911205a044962027",
|
|
162
|
+
"md5": "87d735cdcd4a073816bf205bbf6dbe7c"
|
|
163
163
|
}
|
|
164
164
|
]
|
|
165
165
|
},
|
|
@@ -173,13 +173,13 @@
|
|
|
173
173
|
},
|
|
174
174
|
"files": [
|
|
175
175
|
{
|
|
176
|
-
"name": "expo.modules.filesystem-19.0.
|
|
177
|
-
"url": "expo.modules.filesystem-19.0.
|
|
178
|
-
"size":
|
|
179
|
-
"sha512": "
|
|
180
|
-
"sha256": "
|
|
181
|
-
"sha1": "
|
|
182
|
-
"md5": "
|
|
176
|
+
"name": "expo.modules.filesystem-19.0.16-sources.jar",
|
|
177
|
+
"url": "expo.modules.filesystem-19.0.16-sources.jar",
|
|
178
|
+
"size": 28785,
|
|
179
|
+
"sha512": "60c1582dab4e6504250846af398e2e5993b17a7c14c141282407f8f7f7949256331d238c5ea32afb7c5753903fc0b868fe1a79c3f972ea2525e947744005c6dc",
|
|
180
|
+
"sha256": "2ce5bf618d3e1370e92da41b3ae54847ee10874310bac1c7a31918ea9b463777",
|
|
181
|
+
"sha1": "d372fc4ea514b436e89656c186c54f3c27320b7e",
|
|
182
|
+
"md5": "eb9c254f5ab2514e83db9dd934eaa22c"
|
|
183
183
|
}
|
|
184
184
|
]
|
|
185
185
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0d446f8b0a79a7de05074e1b098b6601
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9aba248a42b385e7fda4cca5746b2a558bdae056
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dbc438671dad3d9ecc355bb0a26971e115bd4aa098c41cdd9e86d69053b90f88
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5924747e355b59660367ab020f805afbea65b5f506f6673a9f06cac9343b362c472c4d96588a97944393b9cec3f75271c1a8aa516097f475985badc7944b6c1b
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.filesystem</artifactId>
|
|
12
|
-
<version>19.0.
|
|
12
|
+
<version>19.0.16</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.filesystem</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
64d5cb2e4efcfd67348f8b9327477cca
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
98c45d5273e1d874978c5b336e587e0453d4b5cc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9fd2cff40ef53e89777a2dc995002720fb7e374e2fa808b903802961746178ba
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5ee2686dec6aa95c7e1a8de47a63033bdf696758808744e079a151f3e390242b9cf7c66985a92b8e36c81d0b5ff4508fd7311929029668098c017f9cb9e33285
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.filesystem</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>19.0.
|
|
7
|
-
<release>19.0.
|
|
6
|
+
<latest>19.0.16</latest>
|
|
7
|
+
<release>19.0.16</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>19.0.
|
|
9
|
+
<version>19.0.16</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20251001002202</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
70816adde62d1cabb634f2d24c390556
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8e488291cf4e0ddf1a2bb0b1e43c507b4c05150b
|
package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
182697a7c3a5a66cc3676be5ea1e4114c8efb000bf682749bcbfc47b53228257
|
package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
af9e7e36960251e4ad9d0ab63105464bcb20251ede5c2705c7f1e80eb07371a9087c9610624f97c4b5e23c5a3a766db5dcf99ee0f6b89aa2b9e54b8d48a15c52
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-file-system",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.16",
|
|
4
4
|
"description": "Provides access to the local file system on the device.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"expo": "*",
|
|
43
43
|
"react-native": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "1ab3b9621b78b77b81049ebf06149753a1e0898c"
|
|
46
46
|
}
|
|
@@ -11,6 +11,25 @@ export type FileCreateOptions = {
|
|
|
11
11
|
overwrite?: boolean;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
+
export enum EncodingType {
|
|
15
|
+
/**
|
|
16
|
+
* Standard encoding format.
|
|
17
|
+
*/
|
|
18
|
+
UTF8 = 'utf8',
|
|
19
|
+
/**
|
|
20
|
+
* Binary, radix-64 representation.
|
|
21
|
+
*/
|
|
22
|
+
Base64 = 'base64',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type FileWriteOptions = {
|
|
26
|
+
/**
|
|
27
|
+
* The encoding format to use when writing the file.
|
|
28
|
+
* @default FileSystem.EncodingType.UTF8
|
|
29
|
+
*/
|
|
30
|
+
encoding?: EncodingType | 'utf8' | 'base64';
|
|
31
|
+
};
|
|
32
|
+
|
|
14
33
|
export type DirectoryCreateOptions = {
|
|
15
34
|
/**
|
|
16
35
|
* Whether to create intermediate directories if they do not exist.
|
|
@@ -212,7 +231,7 @@ export declare class File {
|
|
|
212
231
|
* Writes content to the file.
|
|
213
232
|
* @param content The content to write into the file.
|
|
214
233
|
*/
|
|
215
|
-
write(content: string | Uint8Array): void;
|
|
234
|
+
write(content: string | Uint8Array, options: FileWriteOptions): void;
|
|
216
235
|
|
|
217
236
|
/**
|
|
218
237
|
* Deletes a file.
|
package/src/FileSystem.ts
CHANGED
|
@@ -65,7 +65,7 @@ export class Paths extends PathUtilities {
|
|
|
65
65
|
* The constructor accepts an array of strings that are joined to create the file URI. The first argument can also be a `Directory` instance (like `Paths.cache`) or a `File` instance (which creates a new reference to the same file).
|
|
66
66
|
* @example
|
|
67
67
|
* ```ts
|
|
68
|
-
* const file = new File(
|
|
68
|
+
* const file = new File(Paths.cache, "subdirName", "file.txt");
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
71
|
export class File extends ExpoFileSystem.FileSystemFile implements Blob {
|
|
@@ -76,7 +76,7 @@ export class File extends ExpoFileSystem.FileSystemFile implements Blob {
|
|
|
76
76
|
* @param uris An array of: `file:///` string URIs, `File` instances, and `Directory` instances representing an arbitrary location on the file system.
|
|
77
77
|
* @example
|
|
78
78
|
* ```ts
|
|
79
|
-
* const file = new File(
|
|
79
|
+
* const file = new File(Paths.cache, "subdirName", "file.txt");
|
|
80
80
|
* ```
|
|
81
81
|
*/
|
|
82
82
|
constructor(...uris: (string | File | Directory)[]) {
|
|
@@ -151,7 +151,7 @@ File.pickFileAsync = async function (initialUri?: string, mimeType?: string) {
|
|
|
151
151
|
* The constructor accepts an array of strings that are joined to create the directory URI. The first argument can also be a `Directory` instance (like `Paths.cache`).
|
|
152
152
|
* @example
|
|
153
153
|
* ```ts
|
|
154
|
-
* const directory = new Directory(
|
|
154
|
+
* const directory = new Directory(Paths.cache, "subdirName");
|
|
155
155
|
* ```
|
|
156
156
|
*/
|
|
157
157
|
export class Directory extends ExpoFileSystem.FileSystemDirectory {
|
|
@@ -162,7 +162,7 @@ export class Directory extends ExpoFileSystem.FileSystemDirectory {
|
|
|
162
162
|
* @param uris An array of: `file:///` string URIs, `File` instances, and `Directory` instances representing an arbitrary location on the file system.
|
|
163
163
|
* @example
|
|
164
164
|
* ```ts
|
|
165
|
-
* const directory = new Directory(
|
|
165
|
+
* const directory = new Directory(Paths.cache, "subdirName");
|
|
166
166
|
* ```
|
|
167
167
|
*/
|
|
168
168
|
constructor(...uris: (string | File | Directory)[]) {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e4ed87add3090ef9b1f273d33bc37969
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8de8a89b5e329ae1f0989a09d1fc13fe6b672fb5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
243397e0d8c3e68d5bce371d9a1ac30805c8b93e4f2940d0ddb312d5056ef292
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5e896d6a549d64430a226c22eb689f3d84f088506657d2985750534e5840f17b1c903a4fee9cd9a915f47a3e6773596b1f33bd388570e9f4fd360ac2d5d54521
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
65a90c8c307beb7e905d5d1b87f47f71
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
795f2aa667934af20b277058a973e66e567aabd5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
38db39dc4425a365524ef25cca51740a6c671970a34c27bc8da80ad7ef853a97
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
acbe861a908142be88eae95809a80e51574b5a70c980bc45fa0c1c634972e7ee98ca03d9286e6a2aca0b9b2764e3e92e4f484472a587e9330f1cf9efb3b866a9
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
edb9b08217271bbd4befa89eb738d0f2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5fec8c09cdc861ef19fb7949c088a1e339b669ce
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8a122e20c3496ba05ce6a47b5505fa9fdd756c2a41d5b47376a58c3686485e1a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9a660930a1f487c38b1bb23f51eb84ba9d44e98e41041e8116785f1b026850ab2aa65cfadf4b7e881ff230ef43689c78fe92dd5a081cb02468b94ce857a8e3c0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
535fe0d5278cdb592991164f4249319a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3965b36a2d431f5b037b85b03efd6e757b8e966f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bc5aad17ac0c14a65fa0d1cbd707e397ad87855cda5ee7ec90c18ef319105790
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9fc3e1e35258de6ed24367b89ebd600ba65f09a12ed80d5699f3f161efd687d4e36a0c46633ff6b3d43509e2ef1fae3458e467cc3976a2ddddd2a5dd9a993dbf
|
/package/android/src/main/{java/expo/modules/filesystem/AndroidManifest.xml → AndroidManifest.xml}
RENAMED
|
File without changes
|