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.
Files changed (52) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/android/build.gradle +2 -2
  3. package/build/index.d.ts +1 -0
  4. package/build/index.d.ts.map +1 -1
  5. package/build/legacyWarnings.d.ts +66 -0
  6. package/build/legacyWarnings.d.ts.map +1 -0
  7. package/expo-module.config.json +1 -1
  8. package/ios/FilePickingHandler.swift +2 -1
  9. package/ios/FilePickingUtils.swift +2 -1
  10. package/ios/FileSystemModule.swift +2 -2
  11. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar +0 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar.md5 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar.sha1 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar.sha256 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.aar.sha512 +1 -0
  16. 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
  17. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.module.md5 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.module.sha1 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.module.sha256 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.module.sha512 +1 -0
  21. 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
  22. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.pom.md5 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.pom.sha1 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.pom.sha256 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.10/expo.modules.filesystem-19.0.10.pom.sha512 +1 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml +4 -4
  27. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.md5 +1 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha1 +1 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha256 +1 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha512 +1 -1
  31. package/next.ts +1 -0
  32. package/package.json +3 -3
  33. package/src/index.ts +2 -0
  34. package/src/legacyWarnings.ts +163 -0
  35. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar +0 -0
  36. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar.md5 +0 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar.sha1 +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar.sha256 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.aar.sha512 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.module.md5 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.module.sha1 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.module.sha256 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.module.sha512 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.pom.md5 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.pom.sha1 +0 -1
  46. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.pom.sha256 +0 -1
  47. package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.8/expo.modules.filesystem-19.0.8.pom.sha512 +0 -1
  48. /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
  49. /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
  50. /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
  51. /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
  52. /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
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '19.0.8'
7
+ version = '19.0.10'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.filesystem"
11
11
  defaultConfig {
12
12
  versionCode 30
13
- versionName "19.0.8"
13
+ versionName "19.0.10"
14
14
  }
15
15
  }
16
16
 
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
@@ -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"}
@@ -12,7 +12,7 @@
12
12
  "publication": {
13
13
  "groupId": "host.exp.exponent",
14
14
  "artifactId": "expo.modules.filesystem",
15
- "version": "19.0.8",
15
+ "version": "19.0.10",
16
16
  "repository": "local-maven-repo"
17
17
  }
18
18
  }
@@ -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
- #if os(iOS) || os(tvOS)
3
+ // UIDocumentPickerViewController is unavailable on tvOS
4
+ #if os(iOS)
4
5
  import ExpoModulesCore
5
6
  import UIKit
6
7
 
@@ -1,4 +1,5 @@
1
- #if os(iOS) || os(tvOS)
1
+ // UIDocumentPickerViewController is unavailable on tvOS
2
+ #if os(iOS)
2
3
  import ExpoModulesCore
3
4
  import MobileCoreServices
4
5
  import UIKit
@@ -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) || os(tvOS)
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) || os(tvOS)
110
+ #if os(iOS)
111
111
  filePickingHandler.presentDocumentPicker(
112
112
  picker: createFilePicker(initialUri: initialUri, mimeType: mimeType),
113
113
  isDirectory: false,
@@ -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.8",
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.8.aar",
79
- "url": "expo.modules.filesystem-19.0.8.aar",
80
- "size": 386221,
81
- "sha512": "56d4b780eb2b6164377db2d9756e9d1d6872436d2313f75a77b4ffce8be47d92c2fc502cc87369554a595d1844763bdb6ce3d14dc68ef849379070a259f920f3",
82
- "sha256": "25644f10378a71e515dcfe1df64fb41fef0862fdfbe9cf52ac91675939cd76fb",
83
- "sha1": "91a70d10d282ea3c01290747edd6b4f19226ad65",
84
- "md5": "5af511777ab5671351368ebf881eb54b"
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.8.aar",
157
- "url": "expo.modules.filesystem-19.0.8.aar",
158
- "size": 386221,
159
- "sha512": "56d4b780eb2b6164377db2d9756e9d1d6872436d2313f75a77b4ffce8be47d92c2fc502cc87369554a595d1844763bdb6ce3d14dc68ef849379070a259f920f3",
160
- "sha256": "25644f10378a71e515dcfe1df64fb41fef0862fdfbe9cf52ac91675939cd76fb",
161
- "sha1": "91a70d10d282ea3c01290747edd6b4f19226ad65",
162
- "md5": "5af511777ab5671351368ebf881eb54b"
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.8-sources.jar",
177
- "url": "expo.modules.filesystem-19.0.8-sources.jar",
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
+ 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.8</version>
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
+ 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.8</latest>
7
- <release>19.0.8</release>
6
+ <latest>19.0.10</latest>
7
+ <release>19.0.10</release>
8
8
  <versions>
9
- <version>19.0.8</version>
9
+ <version>19.0.10</version>
10
10
  </versions>
11
- <lastUpdated>20250902175113</lastUpdated>
11
+ <lastUpdated>20250908140921</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 42876019a2c534b254bcc519820b1a83
1
+ bdd6f9e6903f8ac94d253e4518a2563d
@@ -1 +1 @@
1
- eeba47e1c3b9979298a9ff3e5f5e21a0721a16dc
1
+ 320942a144f533dc15e34d2d2ccbca2e8ad0c0f0
@@ -1 +1 @@
1
- 6d9ade77b228fbce494829fbc4a09a437b07cbc2bb89011bf3a84c349a4749fa
1
+ 8f73a4681cb29ff9b1467b0a54e210cd069fb65a4ff623faecd201bf6930291c
@@ -1 +1 @@
1
- 34e81020fc62cdc3e7d46321907a3f51b3802e95dd3716f63f2863237708f41c9c3b79c26cd14ba1cd8d9bb4cde63aa24d8cfa54299d6c330b494f1454a596d2
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.8",
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.7"
39
+ "jest-expo": "~54.0.8"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "expo": "*",
43
43
  "react-native": "*"
44
44
  },
45
- "gitHead": "d635404a12ea7996b987ce0fb7679a238ebcf31b"
45
+ "gitHead": "d087a2182086089f23bcee65e27434f21db50128"
46
46
  }
package/src/index.ts CHANGED
@@ -9,3 +9,5 @@ export {
9
9
  type PathInfo,
10
10
  type DirectoryInfo,
11
11
  } from './ExpoFileSystem.types';
12
+
13
+ export * from './legacyWarnings';
@@ -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
+ }
@@ -1 +0,0 @@
1
- 25644f10378a71e515dcfe1df64fb41fef0862fdfbe9cf52ac91675939cd76fb
@@ -1 +0,0 @@
1
- 56d4b780eb2b6164377db2d9756e9d1d6872436d2313f75a77b4ffce8be47d92c2fc502cc87369554a595d1844763bdb6ce3d14dc68ef849379070a259f920f3
@@ -1 +0,0 @@
1
- 42270c63b7df7a7e5d137d6c77f95b0a8a2aaa33325e69c7b4426caf00a21e8c
@@ -1 +0,0 @@
1
- 7ac666d194796a12dc4fcb504841bd4f1aa9073e73f8c6166fe35d3679ae078e1ae857a94f9f3285abfb042ef69c051dcfd81aa1f1ed5311e9f4cf9493a90a59
@@ -1 +0,0 @@
1
- 602db45c912619293ac6cf4d840554e6269d8572329dde7f5af51d6d1174a883
@@ -1 +0,0 @@
1
- ec765be6812ea03216616a6ed18c3b28ce4f4d8f60fa8c6400c629204426074fc9373ffd65290d8f3f735408401fe47e140fd2754aebcd0a3729f57f82839bd0