expo-file-system 19.0.8 → 19.0.10
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 +14 -0
- package/android/build.gradle +2 -2
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/legacyWarnings.d.ts +66 -0
- package/build/legacyWarnings.d.ts.map +1 -0
- package/expo-module.config.json +1 -1
- package/ios/FilePickingHandler.swift +2 -1
- package/ios/FilePickingUtils.swift +2 -1
- package/ios/FileSystemModule.swift +2 -2
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.8/expo.modules.filesystem-19.0.8.module → 19.0.10/expo.modules.filesystem-19.0.10.module} +17 -17
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.8/expo.modules.filesystem-19.0.8.pom → 19.0.10/expo.modules.filesystem-19.0.10.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.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/next.ts +1 -0
- package/package.json +3 -3
- package/src/index.ts +2 -0
- package/src/legacyWarnings.ts +163 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.8/expo.modules.filesystem-19.0.8-sources.jar → 19.0.10/expo.modules.filesystem-19.0.10-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.8/expo.modules.filesystem-19.0.8-sources.jar.md5 → 19.0.10/expo.modules.filesystem-19.0.10-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.8/expo.modules.filesystem-19.0.8-sources.jar.sha1 → 19.0.10/expo.modules.filesystem-19.0.10-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.8/expo.modules.filesystem-19.0.8-sources.jar.sha256 → 19.0.10/expo.modules.filesystem-19.0.10-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.8/expo.modules.filesystem-19.0.8-sources.jar.sha512 → 19.0.10/expo.modules.filesystem-19.0.10-sources.jar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,20 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 19.0.10 — 2025-09-08
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 19.0.9 — 2025-09-03
|
|
18
|
+
|
|
19
|
+
### 🎉 New features
|
|
20
|
+
|
|
21
|
+
- Add stubs for legacy methods imported from "expo-file-system". ([#39244](https://github.com/expo/expo/pull/39244) by [@aleqsio](https://github.com/aleqsio))
|
|
22
|
+
|
|
23
|
+
### 🐛 Bug fixes
|
|
24
|
+
|
|
25
|
+
- [iOS] Fix tvOS compile error. ([#39345](https://github.com/expo/expo/pull/39345) by [@douglowder](https://github.com/douglowder))
|
|
26
|
+
|
|
13
27
|
## 19.0.8 — 2025-09-02
|
|
14
28
|
|
|
15
29
|
### 🎉 New features
|
package/android/build.gradle
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * from './FileSystem';
|
|
2
2
|
export { type FileCreateOptions, type DirectoryCreateOptions, type FileHandle, type FileInfo, type InfoOptions, type PathInfo, type DirectoryInfo, } from './ExpoFileSystem.types';
|
|
3
|
+
export * from './legacyWarnings';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,GACnB,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,GACnB,MAAM,wBAAwB,CAAC;AAEhC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { DownloadOptions, FileSystemNetworkTaskProgressCallback, DownloadProgressData, UploadProgressData, FileInfo, FileSystemDownloadResult, FileSystemUploadOptions, FileSystemUploadResult, ReadingOptions, WritingOptions, DeletingOptions, InfoOptions, RelocatingOptions, MakeDirectoryOptions } from './legacy/FileSystem.types';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use `new File().info` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getInfoAsync(fileUri: string, options?: InfoOptions): Promise<FileInfo>;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `new File().text()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
8
|
+
*/
|
|
9
|
+
export declare function readAsStringAsync(fileUri: string, options?: ReadingOptions): Promise<string>;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getContentUriAsync(fileUri: string): Promise<string>;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `new File().write()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
16
|
+
*/
|
|
17
|
+
export declare function writeAsStringAsync(fileUri: string, contents: string, options?: WritingOptions): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `new File().delete()` or `new Directory().delete()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
20
|
+
*/
|
|
21
|
+
export declare function deleteAsync(fileUri: string, options?: DeletingOptions): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
25
|
+
export declare function deleteLegacyDocumentDirectoryAndroid(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use `new File().move()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
28
|
+
*/
|
|
29
|
+
export declare function moveAsync(options: RelocatingOptions): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use `new File().copy()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
32
|
+
*/
|
|
33
|
+
export declare function copyAsync(options: RelocatingOptions): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use `new Directory().create()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
36
|
+
*/
|
|
37
|
+
export declare function makeDirectoryAsync(fileUri: string, options?: MakeDirectoryOptions): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use `new Directory().list()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
40
|
+
*/
|
|
41
|
+
export declare function readDirectoryAsync(fileUri: string): Promise<string[]>;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use `Paths.availableDiskSpace` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
44
|
+
*/
|
|
45
|
+
export declare function getFreeDiskStorageAsync(): Promise<number>;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated Use `Paths.totalDiskSpace` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
48
|
+
*/
|
|
49
|
+
export declare function getTotalDiskCapacityAsync(): Promise<number>;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use `File.downloadFileAsync` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
52
|
+
*/
|
|
53
|
+
export declare function downloadAsync(uri: string, fileUri: string, options?: DownloadOptions): Promise<FileSystemDownloadResult>;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated Use `@expo/fetch` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
56
|
+
*/
|
|
57
|
+
export declare function uploadAsync(url: string, fileUri: string, options?: FileSystemUploadOptions): Promise<FileSystemUploadResult>;
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated Import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
60
|
+
*/
|
|
61
|
+
export declare function createDownloadResumable(uri: string, fileUri: string, options?: DownloadOptions, callback?: FileSystemNetworkTaskProgressCallback<DownloadProgressData>, resumeData?: string): any;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
64
|
+
*/
|
|
65
|
+
export declare function createUploadTask(url: string, fileUri: string, options?: FileSystemUploadOptions, callback?: FileSystemNetworkTaskProgressCallback<UploadProgressData>): any;
|
|
66
|
+
//# sourceMappingURL=legacyWarnings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacyWarnings.d.ts","sourceRoot":"","sources":["../src/legacyWarnings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,qCAAqC,EACrC,oBAAoB,EACpB,kBAAkB,EAClB,QAAQ,EACR,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AAQnC;;GAEG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAEhG;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEzE;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/F;AAED;;GAEG;AACH,wBAAsB,oCAAoC,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1E;AAED;;GAEG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEzE;AAED;;GAEG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEzE;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAE3E;AAED;;GAEG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAE/D;AAED;;GAEG;AACH,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,MAAM,CAAC,CAEjE;AAED;;GAEG;AACH,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,wBAAwB,CAAC,CAEnC;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,sBAAsB,CAAC,CAEjC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,EACzB,QAAQ,CAAC,EAAE,qCAAqC,CAAC,oBAAoB,CAAC,EACtE,UAAU,CAAC,EAAE,MAAM,GAClB,GAAG,CAEL;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,uBAAuB,EACjC,QAAQ,CAAC,EAAE,qCAAqC,CAAC,kBAAkB,CAAC,GACnE,GAAG,CAEL"}
|
package/expo-module.config.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// UIKit is unavailable on macOS, so platform checks are necessary.
|
|
2
2
|
// For macOS support, we should consider using NSOpenPanel: https://developer.apple.com/documentation/appkit/nsopenpanel
|
|
3
|
-
|
|
3
|
+
// UIDocumentPickerViewController is unavailable on tvOS
|
|
4
|
+
#if os(iOS)
|
|
4
5
|
import ExpoModulesCore
|
|
5
6
|
import UIKit
|
|
6
7
|
|
|
@@ -4,7 +4,7 @@ import ExpoModulesCore
|
|
|
4
4
|
|
|
5
5
|
@available(iOS 14, tvOS 14, *)
|
|
6
6
|
public final class FileSystemModule: Module {
|
|
7
|
-
#if os(iOS)
|
|
7
|
+
#if os(iOS)
|
|
8
8
|
private lazy var filePickingHandler = FilePickingHandler(module: self)
|
|
9
9
|
#endif
|
|
10
10
|
|
|
@@ -107,7 +107,7 @@ public final class FileSystemModule: Module {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
AsyncFunction("pickFileAsync") { (initialUri: URL?, mimeType: String?, promise: Promise) in
|
|
110
|
-
#if os(iOS)
|
|
110
|
+
#if os(iOS)
|
|
111
111
|
filePickingHandler.presentDocumentPicker(
|
|
112
112
|
picker: createFilePicker(initialUri: initialUri, mimeType: mimeType),
|
|
113
113
|
isDirectory: false,
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f65233b7c5a0ddbfa68c89c8dcd996dc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6b7ed4241eba9ffbf0df1ee9694b86db9cd7724a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eade379437d3745877e3a6c3fd849dc24673b01a7c36a1746192785bbdff16ed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4664260638daa31c250a98d8b498932db101396b77116fc31c91deb8ef303685d1efebac87f80671cd76f5e2994938209066f47ebe5e05616b6ef85a1e04dcb6
|
|
@@ -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.10",
|
|
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.10.aar",
|
|
79
|
+
"url": "expo.modules.filesystem-19.0.10.aar",
|
|
80
|
+
"size": 386236,
|
|
81
|
+
"sha512": "4664260638daa31c250a98d8b498932db101396b77116fc31c91deb8ef303685d1efebac87f80671cd76f5e2994938209066f47ebe5e05616b6ef85a1e04dcb6",
|
|
82
|
+
"sha256": "eade379437d3745877e3a6c3fd849dc24673b01a7c36a1746192785bbdff16ed",
|
|
83
|
+
"sha1": "6b7ed4241eba9ffbf0df1ee9694b86db9cd7724a",
|
|
84
|
+
"md5": "f65233b7c5a0ddbfa68c89c8dcd996dc"
|
|
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.10.aar",
|
|
157
|
+
"url": "expo.modules.filesystem-19.0.10.aar",
|
|
158
|
+
"size": 386236,
|
|
159
|
+
"sha512": "4664260638daa31c250a98d8b498932db101396b77116fc31c91deb8ef303685d1efebac87f80671cd76f5e2994938209066f47ebe5e05616b6ef85a1e04dcb6",
|
|
160
|
+
"sha256": "eade379437d3745877e3a6c3fd849dc24673b01a7c36a1746192785bbdff16ed",
|
|
161
|
+
"sha1": "6b7ed4241eba9ffbf0df1ee9694b86db9cd7724a",
|
|
162
|
+
"md5": "f65233b7c5a0ddbfa68c89c8dcd996dc"
|
|
163
163
|
}
|
|
164
164
|
]
|
|
165
165
|
},
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
},
|
|
174
174
|
"files": [
|
|
175
175
|
{
|
|
176
|
-
"name": "expo.modules.filesystem-19.0.
|
|
177
|
-
"url": "expo.modules.filesystem-19.0.
|
|
176
|
+
"name": "expo.modules.filesystem-19.0.10-sources.jar",
|
|
177
|
+
"url": "expo.modules.filesystem-19.0.10-sources.jar",
|
|
178
178
|
"size": 28550,
|
|
179
179
|
"sha512": "b8f0a84aa8f6377f6fb162699e663d8e9de63caff453a37513e1cfeeaaa050261f8ae32032f15e8968e8591d518531d46e8e549c745b2998ee16fc7578903872",
|
|
180
180
|
"sha256": "267e88a3c5d6745c834050282f9a45c0305f51c7b8554e18e0b68a16ab337edb",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c4b723f155418c3413d567ef2fb42a9e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7d9451de39f389aeace7211771fdb60ad8046128
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5e185a4e3e3bd2024c19828c6e9d242e97b9cab479a3c90bb88dde1bab2e4604
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1857d26c441d7ef4f2238795fa6bc224126edb79186792d5f4876eae34e601d79296b002d468709dcb9fb9dcf7d6bcc268eed19aa2b171efced3ba9eeee797e4
|
|
@@ -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.10</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
|
+
9cfb03f0599dfa8582d42e142350f2a6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c209c54524ea80a46b717bad2f058d74f7bded6e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
32d5df40ca69a6ff3fd7950489d44a91ad77c85d1b925eabfd10d29b53c8ef98
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
606848160829b227a708b5ad8de879f2ef4b20c6284742727df476572e82c36dc1f648ae339b0f60ed87d305ebdb0dc15a4a447114fcd05782d89a5aeb228281
|
|
@@ -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.10</latest>
|
|
7
|
+
<release>19.0.10</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>19.0.
|
|
9
|
+
<version>19.0.10</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20250908140921</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bdd6f9e6903f8ac94d253e4518a2563d
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
320942a144f533dc15e34d2d2ccbca2e8ad0c0f0
|
package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8f73a4681cb29ff9b1467b0a54e210cd069fb65a4ff623faecd201bf6930291c
|
package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ae973fe4954282c5d7ea24359f92733c65313d7c2b5ad7f6f533231608f2ae0584adc7b5d0be49f19a685881fd7ef43250d04c62ec2f3c00f544cabd2c110bf1
|
package/next.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-file-system",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.10",
|
|
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",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"expo-module-scripts": "^5.0.6",
|
|
39
|
-
"jest-expo": "~54.0.
|
|
39
|
+
"jest-expo": "~54.0.8"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"expo": "*",
|
|
43
43
|
"react-native": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "d087a2182086089f23bcee65e27434f21db50128"
|
|
46
46
|
}
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
DownloadOptions,
|
|
3
|
+
FileSystemNetworkTaskProgressCallback,
|
|
4
|
+
DownloadProgressData,
|
|
5
|
+
UploadProgressData,
|
|
6
|
+
FileInfo,
|
|
7
|
+
FileSystemDownloadResult,
|
|
8
|
+
FileSystemUploadOptions,
|
|
9
|
+
FileSystemUploadResult,
|
|
10
|
+
ReadingOptions,
|
|
11
|
+
WritingOptions,
|
|
12
|
+
DeletingOptions,
|
|
13
|
+
InfoOptions,
|
|
14
|
+
RelocatingOptions,
|
|
15
|
+
MakeDirectoryOptions,
|
|
16
|
+
} from './legacy/FileSystem.types';
|
|
17
|
+
|
|
18
|
+
function errorOnLegacyMethodUse(methodName: string): Error {
|
|
19
|
+
const message = `Method ${methodName} imported from "expo-file-system" is deprecated.\nYou can migrate to the new filesystem API using "File" and "Directory" classes or import the legacy API from "expo-file-system/legacy".\nAPI reference and examples are available in the filesystem docs: https://docs.expo.dev/versions/v54.0.0/sdk/filesystem/`;
|
|
20
|
+
console.warn(message);
|
|
21
|
+
return new Error(message);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `new File().info` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
26
|
+
*/
|
|
27
|
+
export async function getInfoAsync(fileUri: string, options: InfoOptions = {}): Promise<FileInfo> {
|
|
28
|
+
throw errorOnLegacyMethodUse('getInfoAsync');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Use `new File().text()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
33
|
+
*/
|
|
34
|
+
export async function readAsStringAsync(
|
|
35
|
+
fileUri: string,
|
|
36
|
+
options: ReadingOptions = {}
|
|
37
|
+
): Promise<string> {
|
|
38
|
+
throw errorOnLegacyMethodUse('readAsStringAsync');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
43
|
+
*/
|
|
44
|
+
export async function getContentUriAsync(fileUri: string): Promise<string> {
|
|
45
|
+
throw errorOnLegacyMethodUse('getContentUriAsync');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Use `new File().write()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
50
|
+
*/
|
|
51
|
+
export async function writeAsStringAsync(
|
|
52
|
+
fileUri: string,
|
|
53
|
+
contents: string,
|
|
54
|
+
options: WritingOptions = {}
|
|
55
|
+
): Promise<void> {
|
|
56
|
+
throw errorOnLegacyMethodUse('writeAsStringAsync');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated Use `new File().delete()` or `new Directory().delete()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
61
|
+
*/
|
|
62
|
+
export async function deleteAsync(fileUri: string, options: DeletingOptions = {}): Promise<void> {
|
|
63
|
+
throw errorOnLegacyMethodUse('deleteAsync');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
69
|
+
export async function deleteLegacyDocumentDirectoryAndroid(): Promise<void> {
|
|
70
|
+
throw errorOnLegacyMethodUse('deleteLegacyDocumentDirectoryAndroid');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Use `new File().move()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
75
|
+
*/
|
|
76
|
+
export async function moveAsync(options: RelocatingOptions): Promise<void> {
|
|
77
|
+
throw errorOnLegacyMethodUse('moveAsync');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated Use `new File().copy()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
82
|
+
*/
|
|
83
|
+
export async function copyAsync(options: RelocatingOptions): Promise<void> {
|
|
84
|
+
throw errorOnLegacyMethodUse('copyAsync');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated Use `new Directory().create()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
89
|
+
*/
|
|
90
|
+
export async function makeDirectoryAsync(
|
|
91
|
+
fileUri: string,
|
|
92
|
+
options: MakeDirectoryOptions = {}
|
|
93
|
+
): Promise<void> {
|
|
94
|
+
throw errorOnLegacyMethodUse('makeDirectoryAsync');
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Use `new Directory().list()` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
99
|
+
*/
|
|
100
|
+
export async function readDirectoryAsync(fileUri: string): Promise<string[]> {
|
|
101
|
+
throw errorOnLegacyMethodUse('readDirectoryAsync');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated Use `Paths.availableDiskSpace` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
106
|
+
*/
|
|
107
|
+
export async function getFreeDiskStorageAsync(): Promise<number> {
|
|
108
|
+
throw errorOnLegacyMethodUse('getFreeDiskStorageAsync');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Use `Paths.totalDiskSpace` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
113
|
+
*/
|
|
114
|
+
export async function getTotalDiskCapacityAsync(): Promise<number> {
|
|
115
|
+
throw errorOnLegacyMethodUse('getTotalDiskCapacityAsync');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @deprecated Use `File.downloadFileAsync` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
120
|
+
*/
|
|
121
|
+
export async function downloadAsync(
|
|
122
|
+
uri: string,
|
|
123
|
+
fileUri: string,
|
|
124
|
+
options: DownloadOptions = {}
|
|
125
|
+
): Promise<FileSystemDownloadResult> {
|
|
126
|
+
throw errorOnLegacyMethodUse('downloadAsync');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Use `@expo/fetch` or import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
131
|
+
*/
|
|
132
|
+
export async function uploadAsync(
|
|
133
|
+
url: string,
|
|
134
|
+
fileUri: string,
|
|
135
|
+
options: FileSystemUploadOptions = {}
|
|
136
|
+
): Promise<FileSystemUploadResult> {
|
|
137
|
+
throw errorOnLegacyMethodUse('uploadAsync');
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @deprecated Import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
142
|
+
*/
|
|
143
|
+
export function createDownloadResumable(
|
|
144
|
+
uri: string,
|
|
145
|
+
fileUri: string,
|
|
146
|
+
options?: DownloadOptions,
|
|
147
|
+
callback?: FileSystemNetworkTaskProgressCallback<DownloadProgressData>,
|
|
148
|
+
resumeData?: string
|
|
149
|
+
): any {
|
|
150
|
+
throw errorOnLegacyMethodUse('createDownloadResumable');
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated Import this method from `expo-file-system/legacy`. This method will throw in runtime.
|
|
155
|
+
*/
|
|
156
|
+
export function createUploadTask(
|
|
157
|
+
url: string,
|
|
158
|
+
fileUri: string,
|
|
159
|
+
options?: FileSystemUploadOptions,
|
|
160
|
+
callback?: FileSystemNetworkTaskProgressCallback<UploadProgressData>
|
|
161
|
+
): any {
|
|
162
|
+
throw errorOnLegacyMethodUse('createUploadTask');
|
|
163
|
+
}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5af511777ab5671351368ebf881eb54b
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
91a70d10d282ea3c01290747edd6b4f19226ad65
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
25644f10378a71e515dcfe1df64fb41fef0862fdfbe9cf52ac91675939cd76fb
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
56d4b780eb2b6164377db2d9756e9d1d6872436d2313f75a77b4ffce8be47d92c2fc502cc87369554a595d1844763bdb6ce3d14dc68ef849379070a259f920f3
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
910772c14e4d377fdf880d1f14683815
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
edf18906655a9e36799a9fd7a4a0a0504d80c7b4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
42270c63b7df7a7e5d137d6c77f95b0a8a2aaa33325e69c7b4426caf00a21e8c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7ac666d194796a12dc4fcb504841bd4f1aa9073e73f8c6166fe35d3679ae078e1ae857a94f9f3285abfb042ef69c051dcfd81aa1f1ed5311e9f4cf9493a90a59
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bcf64ce87633dbe2a6143eea0ca47bb9
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
13ef2346544744def69586053a19731cfb269b18
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
602db45c912619293ac6cf4d840554e6269d8572329dde7f5af51d6d1174a883
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ec765be6812ea03216616a6ed18c3b28ce4f4d8f60fa8c6400c629204426074fc9373ffd65290d8f3f735408401fe47e140fd2754aebcd0a3729f57f82839bd0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|