expo-file-system 19.0.21-canary-20251210-1f163e3 → 19.0.21
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 +9 -8
- package/android/build.gradle +2 -2
- package/android/src/main/AndroidManifest.xml +2 -2
- package/build/ExpoFileSystem.d.ts +1 -3
- package/build/ExpoFileSystem.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/FileSystemModule.swift +2 -2
- package/ios/Legacy/FileSystemHelpers.swift +2 -2
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.module → 19.0.21/expo.modules.filesystem-19.0.21.module} +18 -18
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.pom → 19.0.21/expo.modules.filesystem-19.0.21.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21/expo.modules.filesystem-19.0.21.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 +6 -5
- package/plugin/build/withFileSystem.d.ts +1 -5
- package/plugin/build/withFileSystem.js +2 -13
- package/plugin/src/withFileSystem.ts +3 -25
- package/src/ExpoFileSystem.ts +1 -3
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.aar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.aar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.aar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.aar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3-sources.jar → 19.0.21/expo.modules.filesystem-19.0.21-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3-sources.jar.md5 → 19.0.21/expo.modules.filesystem-19.0.21-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3-sources.jar.sha1 → 19.0.21/expo.modules.filesystem-19.0.21-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3-sources.jar.sha256 → 19.0.21/expo.modules.filesystem-19.0.21-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{19.0.21-canary-20251210-1f163e3/expo.modules.filesystem-19.0.21-canary-20251210-1f163e3-sources.jar.sha512 → 19.0.21/expo.modules.filesystem-19.0.21-sources.jar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,13 +10,15 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## 19.0.21 — 2025-12-12
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 19.0.20 — 2025-12-05
|
|
16
18
|
|
|
17
19
|
_This version does not introduce any user-facing changes._
|
|
18
20
|
|
|
19
|
-
## 19.0.19
|
|
21
|
+
## 19.0.19 — 2025-11-18
|
|
20
22
|
|
|
21
23
|
### 🎉 New features
|
|
22
24
|
|
|
@@ -26,29 +28,28 @@ _This version does not introduce any user-facing changes._
|
|
|
26
28
|
|
|
27
29
|
- [iOS] Add missing `createFile` and `createDirectory` methods. ([#40314](https://github.com/expo/expo/pull/40314) by [@jakex7](https://github.com/jakex7))
|
|
28
30
|
|
|
29
|
-
## 19.0.18
|
|
31
|
+
## 19.0.18 — 2025-11-17
|
|
30
32
|
|
|
31
33
|
_This version does not introduce any user-facing changes._
|
|
32
34
|
|
|
33
|
-
## 19.0.17
|
|
35
|
+
## 19.0.17 — 2025-10-09
|
|
34
36
|
|
|
35
37
|
### 🐛 Bug fixes
|
|
36
38
|
|
|
37
39
|
- [Android] Fix recursive file deletion. ([#40248](https://github.com/expo/expo/pull/40248) by [@aleqsio](https://github.com/aleqsio))
|
|
38
40
|
|
|
39
|
-
## 19.0.16
|
|
41
|
+
## 19.0.16 — 2025-10-01
|
|
40
42
|
|
|
41
43
|
### 🎉 New features
|
|
42
44
|
|
|
43
45
|
- Add write options for base64 encoded bytes. ([#39963](https://github.com/expo/expo/pull/39963) by [@aleqsio](https://github.com/aleqsio))
|
|
44
|
-
- [iOS] Add file sharing config options ([#39286](https://github.com/expo/expo/pull/39286) by [@kosmydel](https://github.com/kosmydel))
|
|
45
46
|
|
|
46
47
|
### 🐛 Bug fixes
|
|
47
48
|
|
|
48
49
|
- Fix typedoc in the File class. ([#40064](https://github.com/expo/expo/pull/40064) by [@aleqsio](https://github.com/aleqsio))
|
|
49
50
|
- [Android] Fix getContentUri. ([#40001](https://github.com/expo/expo/pull/40001) by [@aleqsio](https://github.com/aleqsio))
|
|
50
51
|
|
|
51
|
-
## 19.0.15
|
|
52
|
+
## 19.0.15 — 2025-09-22
|
|
52
53
|
|
|
53
54
|
### 🎉 New features
|
|
54
55
|
|
package/android/build.gradle
CHANGED
|
@@ -4,13 +4,13 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '19.0.21
|
|
7
|
+
version = '19.0.21'
|
|
8
8
|
|
|
9
9
|
android {
|
|
10
10
|
namespace "expo.modules.filesystem"
|
|
11
11
|
defaultConfig {
|
|
12
12
|
versionCode 30
|
|
13
|
-
versionName "19.0.21
|
|
13
|
+
versionName "19.0.21"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
|
2
2
|
<uses-permission android:name="android.permission.INTERNET"/>
|
|
3
|
-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
|
|
4
|
-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
|
|
3
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
4
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
5
5
|
<application>
|
|
6
6
|
<provider tools:replace="android:authorities" android:name=".FileSystemFileProvider" android:authorities="${applicationId}.FileSystemFileProvider" android:exported="false" android:grantUriPermissions="true">
|
|
7
7
|
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_system_provider_paths" />
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { NativeModule } from 'expo-modules-core';
|
|
2
|
-
import type { Directory, File, DownloadOptions
|
|
2
|
+
import type { Directory, File, DownloadOptions } from './ExpoFileSystem.types';
|
|
3
3
|
declare class ExpoFileSystemModule extends NativeModule {
|
|
4
4
|
FileSystemDirectory: typeof Directory;
|
|
5
5
|
FileSystemFile: typeof File;
|
|
6
6
|
downloadFileAsync(url: string, destination: File | Directory, options?: DownloadOptions): Promise<string>;
|
|
7
7
|
pickDirectoryAsync(initialUri?: string): Promise<Directory>;
|
|
8
8
|
pickFileAsync(initialUri?: string, mimeType?: string): Promise<File>;
|
|
9
|
-
info(uri: string): PathInfo;
|
|
10
9
|
totalDiskSpace: number;
|
|
11
10
|
availableDiskSpace: number;
|
|
12
11
|
documentDirectory: string;
|
|
13
12
|
cacheDirectory: string;
|
|
14
13
|
bundleDirectory: string;
|
|
15
|
-
appleSharedContainers?: Record<string, string>;
|
|
16
14
|
}
|
|
17
15
|
declare const _default: ExpoFileSystemModule;
|
|
18
16
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoFileSystem.d.ts","sourceRoot":"","sources":["../src/ExpoFileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,mBAAmB,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"ExpoFileSystem.d.ts","sourceRoot":"","sources":["../src/ExpoFileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,mBAAmB,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE/E,OAAO,OAAO,oBAAqB,SAAQ,YAAY;IACrD,mBAAmB,EAAE,OAAO,SAAS,CAAC;IACtC,cAAc,EAAE,OAAO,IAAI,CAAC;IAC5B,iBAAiB,CACf,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,IAAI,GAAG,SAAS,EAC7B,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,MAAM,CAAC;IAClB,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAC3D,aAAa,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB;;AAED,wBAAuE"}
|
package/expo-module.config.json
CHANGED
|
@@ -143,11 +143,11 @@ public final class FileSystemModule: Module {
|
|
|
143
143
|
output.exists = false
|
|
144
144
|
output.isDirectory = nil
|
|
145
145
|
|
|
146
|
-
guard let
|
|
146
|
+
guard let permissionsManager: EXFilePermissionModuleInterface = appContext?.legacyModule(implementing: EXFilePermissionModuleInterface.self) else {
|
|
147
147
|
return output
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
if
|
|
150
|
+
if permissionsManager.getPathPermissions(url.path).contains(.read) {
|
|
151
151
|
var isDirectory: ObjCBool = false
|
|
152
152
|
if FileManager.default.fileExists(atPath: url.path, isDirectory: &isDirectory) {
|
|
153
153
|
output.exists = true
|
|
@@ -60,10 +60,10 @@ internal func getResourceValues(from directory: URL?, forKeys: Set<URLResourceKe
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
internal func ensurePathPermission(_ appContext: AppContext?, path: String, flag: EXFileSystemPermissionFlags) throws {
|
|
63
|
-
guard let
|
|
63
|
+
guard let permissionsManager: EXFilePermissionModuleInterface = appContext?.legacyModule(implementing: EXFilePermissionModuleInterface.self) else {
|
|
64
64
|
throw Exceptions.PermissionsModuleNotFound()
|
|
65
65
|
}
|
|
66
|
-
guard
|
|
66
|
+
guard permissionsManager.getPathPermissions(path).contains(flag) else {
|
|
67
67
|
throw flag == .read ? FileNotReadableException(path) : FileNotWritableException(path)
|
|
68
68
|
}
|
|
69
69
|
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
083a9a998bd18c4424272ba3827a26ee
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0d42a8415fa94ce162b33e740bb63f1602d7cc21
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
addebabe9511120923e9a0f4490c31306162dc95ae60cb64867a27847d99dfaf
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
66cca546f6f55437628c6fad443bb817e5c0eef007414292fed3f907c68b11d718a3f3d816ee0ea78835567fdaa5686f525ab9f1a27137d5f799b9459d9719d1
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.filesystem",
|
|
6
|
-
"version": "19.0.21
|
|
6
|
+
"version": "19.0.21",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"createdBy": {
|
|
12
12
|
"gradle": {
|
|
13
|
-
"version": "
|
|
13
|
+
"version": "8.14.3"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"variants": [
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
],
|
|
76
76
|
"files": [
|
|
77
77
|
{
|
|
78
|
-
"name": "expo.modules.filesystem-19.0.21
|
|
79
|
-
"url": "expo.modules.filesystem-19.0.21
|
|
80
|
-
"size":
|
|
81
|
-
"sha512": "
|
|
82
|
-
"sha256": "
|
|
83
|
-
"sha1": "
|
|
84
|
-
"md5": "
|
|
78
|
+
"name": "expo.modules.filesystem-19.0.21.aar",
|
|
79
|
+
"url": "expo.modules.filesystem-19.0.21.aar",
|
|
80
|
+
"size": 393129,
|
|
81
|
+
"sha512": "66cca546f6f55437628c6fad443bb817e5c0eef007414292fed3f907c68b11d718a3f3d816ee0ea78835567fdaa5686f525ab9f1a27137d5f799b9459d9719d1",
|
|
82
|
+
"sha256": "addebabe9511120923e9a0f4490c31306162dc95ae60cb64867a27847d99dfaf",
|
|
83
|
+
"sha1": "0d42a8415fa94ce162b33e740bb63f1602d7cc21",
|
|
84
|
+
"md5": "083a9a998bd18c4424272ba3827a26ee"
|
|
85
85
|
}
|
|
86
86
|
]
|
|
87
87
|
},
|
|
@@ -153,13 +153,13 @@
|
|
|
153
153
|
],
|
|
154
154
|
"files": [
|
|
155
155
|
{
|
|
156
|
-
"name": "expo.modules.filesystem-19.0.21
|
|
157
|
-
"url": "expo.modules.filesystem-19.0.21
|
|
158
|
-
"size":
|
|
159
|
-
"sha512": "
|
|
160
|
-
"sha256": "
|
|
161
|
-
"sha1": "
|
|
162
|
-
"md5": "
|
|
156
|
+
"name": "expo.modules.filesystem-19.0.21.aar",
|
|
157
|
+
"url": "expo.modules.filesystem-19.0.21.aar",
|
|
158
|
+
"size": 393129,
|
|
159
|
+
"sha512": "66cca546f6f55437628c6fad443bb817e5c0eef007414292fed3f907c68b11d718a3f3d816ee0ea78835567fdaa5686f525ab9f1a27137d5f799b9459d9719d1",
|
|
160
|
+
"sha256": "addebabe9511120923e9a0f4490c31306162dc95ae60cb64867a27847d99dfaf",
|
|
161
|
+
"sha1": "0d42a8415fa94ce162b33e740bb63f1602d7cc21",
|
|
162
|
+
"md5": "083a9a998bd18c4424272ba3827a26ee"
|
|
163
163
|
}
|
|
164
164
|
]
|
|
165
165
|
},
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
},
|
|
174
174
|
"files": [
|
|
175
175
|
{
|
|
176
|
-
"name": "expo.modules.filesystem-19.0.21-
|
|
177
|
-
"url": "expo.modules.filesystem-19.0.21-
|
|
176
|
+
"name": "expo.modules.filesystem-19.0.21-sources.jar",
|
|
177
|
+
"url": "expo.modules.filesystem-19.0.21-sources.jar",
|
|
178
178
|
"size": 29329,
|
|
179
179
|
"sha512": "6cac7b2fa58a18696e1468e4e9afe7e6092ca1a404351400345349e028cbaeda51386f4303d05372a2be2baf8de77fd97490ea91caa74bfc2a8cfe7b62619bfe",
|
|
180
180
|
"sha256": "4177d9bd9a22a528b97cc2f2bd7ba47f6cbf7fb1c09d93a1cacdce6f553b05d6",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b68d8117aa767bebac447623b001591c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
15a6c53126455a238e143dad7309f5e57f1bb72c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
310d00e93ecdea91b7ae525e36efb3ed08b5d7b1bbdda2ed7d332c3e1cc8e4df
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
14433a3082cfc2243753b6b0bce12c20e1efae455704e1cbac876b0451f9c67931560e448bbb117e359296b6187301403193881cf5d911cd8852e8c9e6cc8128
|
|
@@ -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.21
|
|
12
|
+
<version>19.0.21</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
|
+
8d0975666c55900e9c02ace3cda329fa
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1872d3f9ca1cae47722d272fb9d699509ec6c081
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5c29855dbddfc5a34f6b9518a3b090a782adc062910b1c72b15a9c7fbcb42079
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b008eeea7225cdef6329cc1b9d8979e72c18049e79cfddcdbe84a55a9928729f0e9cc6b8fdbdf63dbd67df8c7dd2e17f7054442d6f9cf4618bbcbf32e060e8b4
|
|
@@ -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.21
|
|
7
|
-
<release>19.0.21
|
|
6
|
+
<latest>19.0.21</latest>
|
|
7
|
+
<release>19.0.21</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>19.0.21
|
|
9
|
+
<version>19.0.21</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20251212085511</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2c078e361a0394f908d43a21f0ef5c81
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
95b3b875518eca8b712fc5a7536b6c59fd85ce04
|
package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f3642f5acb76a95f82e1d965270cba67bc8012ee3d4cb42746193dcccc599582
|
package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
99deafff9d0d0defe25e607fa5241bdc789397ddd37eabfe53d9bf05497fb3949f87c07761b4a1afc81396ff6b76c7bbad1913984ada578c3df77c7f494c0428
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-file-system",
|
|
3
|
-
"version": "19.0.21
|
|
3
|
+
"version": "19.0.21",
|
|
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",
|
|
@@ -35,11 +35,12 @@
|
|
|
35
35
|
"preset": "expo-module-scripts"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"expo-module-scripts": "5.
|
|
39
|
-
"jest-expo": "
|
|
38
|
+
"expo-module-scripts": "^5.0.8",
|
|
39
|
+
"jest-expo": "~54.0.16"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"expo": "
|
|
42
|
+
"expo": "*",
|
|
43
43
|
"react-native": "*"
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "599ebc94db5c972f961641db9aa33e2964498c42"
|
|
45
46
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { ConfigPlugin } from 'expo/config-plugins';
|
|
2
|
-
|
|
3
|
-
supportsOpeningDocumentsInPlace?: boolean;
|
|
4
|
-
enableFileSharing?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: ConfigPlugin<FileSystemProps>;
|
|
2
|
+
declare const _default: ConfigPlugin<void>;
|
|
7
3
|
export default _default;
|
|
@@ -2,22 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const config_plugins_1 = require("expo/config-plugins");
|
|
4
4
|
const pkg = require('expo-file-system/package.json');
|
|
5
|
-
const withFileSystem = (config
|
|
6
|
-
|
|
7
|
-
config = config_plugins_1.AndroidConfig.Permissions.withPermissions(config, [
|
|
5
|
+
const withFileSystem = (config) => {
|
|
6
|
+
return config_plugins_1.AndroidConfig.Permissions.withPermissions(config, [
|
|
8
7
|
'android.permission.READ_EXTERNAL_STORAGE',
|
|
9
8
|
'android.permission.WRITE_EXTERNAL_STORAGE',
|
|
10
9
|
'android.permission.INTERNET',
|
|
11
10
|
]);
|
|
12
|
-
// Apply iOS modifications
|
|
13
|
-
return (0, config_plugins_1.withInfoPlist)(config, (config) => {
|
|
14
|
-
if ('supportsOpeningDocumentsInPlace' in options) {
|
|
15
|
-
config.modResults.LSSupportsOpeningDocumentsInPlace = options.supportsOpeningDocumentsInPlace;
|
|
16
|
-
}
|
|
17
|
-
if ('enableFileSharing' in options) {
|
|
18
|
-
config.modResults.UIFileSharingEnabled = options.enableFileSharing;
|
|
19
|
-
}
|
|
20
|
-
return config;
|
|
21
|
-
});
|
|
22
11
|
};
|
|
23
12
|
exports.default = (0, config_plugins_1.createRunOncePlugin)(withFileSystem, pkg.name, pkg.version);
|
|
@@ -1,35 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AndroidConfig,
|
|
3
|
-
ConfigPlugin,
|
|
4
|
-
createRunOncePlugin,
|
|
5
|
-
withInfoPlist,
|
|
6
|
-
} from 'expo/config-plugins';
|
|
1
|
+
import { AndroidConfig, ConfigPlugin, createRunOncePlugin } from 'expo/config-plugins';
|
|
7
2
|
|
|
8
3
|
const pkg = require('expo-file-system/package.json');
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
enableFileSharing?: boolean;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const withFileSystem: ConfigPlugin<FileSystemProps> = (config, options = {}) => {
|
|
16
|
-
// Apply Android permissions
|
|
17
|
-
config = AndroidConfig.Permissions.withPermissions(config, [
|
|
5
|
+
const withFileSystem: ConfigPlugin = (config) => {
|
|
6
|
+
return AndroidConfig.Permissions.withPermissions(config, [
|
|
18
7
|
'android.permission.READ_EXTERNAL_STORAGE',
|
|
19
8
|
'android.permission.WRITE_EXTERNAL_STORAGE',
|
|
20
9
|
'android.permission.INTERNET',
|
|
21
10
|
]);
|
|
22
|
-
|
|
23
|
-
// Apply iOS modifications
|
|
24
|
-
return withInfoPlist(config, (config) => {
|
|
25
|
-
if ('supportsOpeningDocumentsInPlace' in options) {
|
|
26
|
-
config.modResults.LSSupportsOpeningDocumentsInPlace = options.supportsOpeningDocumentsInPlace;
|
|
27
|
-
}
|
|
28
|
-
if ('enableFileSharing' in options) {
|
|
29
|
-
config.modResults.UIFileSharingEnabled = options.enableFileSharing;
|
|
30
|
-
}
|
|
31
|
-
return config;
|
|
32
|
-
});
|
|
33
11
|
};
|
|
34
12
|
|
|
35
13
|
export default createRunOncePlugin(withFileSystem, pkg.name, pkg.version);
|
package/src/ExpoFileSystem.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NativeModule, requireNativeModule } from 'expo-modules-core';
|
|
2
2
|
|
|
3
|
-
import type { Directory, File, DownloadOptions
|
|
3
|
+
import type { Directory, File, DownloadOptions } from './ExpoFileSystem.types';
|
|
4
4
|
|
|
5
5
|
declare class ExpoFileSystemModule extends NativeModule {
|
|
6
6
|
FileSystemDirectory: typeof Directory;
|
|
@@ -12,13 +12,11 @@ declare class ExpoFileSystemModule extends NativeModule {
|
|
|
12
12
|
): Promise<string>;
|
|
13
13
|
pickDirectoryAsync(initialUri?: string): Promise<Directory>;
|
|
14
14
|
pickFileAsync(initialUri?: string, mimeType?: string): Promise<File>;
|
|
15
|
-
info(uri: string): PathInfo;
|
|
16
15
|
totalDiskSpace: number;
|
|
17
16
|
availableDiskSpace: number;
|
|
18
17
|
documentDirectory: string;
|
|
19
18
|
cacheDirectory: string;
|
|
20
19
|
bundleDirectory: string;
|
|
21
|
-
appleSharedContainers?: Record<string, string>;
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
export default requireNativeModule<ExpoFileSystemModule>('FileSystem');
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d1496f79ec35ab85452ff33b608b13fd
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bc51c8dda80dd8be7a700052d158bae50d9e6d13
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
64296d18c5609bd13c32abe79e4cdbc2baa25ceae129b62531a15bf5c68f8a64
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a5291613c37278eb20f359b7119621e1046f0c6499b8ba8d98bc7dd3eb3a180312f35de230e1c1c273342e6567dbf98c09f36de8ab54150af58f78e1193d0811
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b5c2d1df92e6c683ba67d968be6f8dc0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
99d224b3819e4d3c2f918e81356c11ed5106567d
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
16a368ccedf0e8fc0b3ef52b9abeb70dd4b377e6d1d2d6309d1591ffa63d8fda
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ec9eb823fb8d7572efe05c87b3fd13655c97846eccc64877d5d1180faa4a2cc6f977f7aa06256fe1fb3c99a197f22109ae207d8c29136584c334921aa0c610a0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
beb671ae0630b0c5e8784fdaff51b462
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c83130d5c32d812233264a01d25e3557bb6f734f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1eac50ef8c4e15a306b3ed28d3cea094f088d20d7a1c4a7623f7c9ca09607422
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3792904eff1a682c2f00516be96d71cb8a4db8e0c3b4dbd82254571ef5d8a9c6913e3a74ba4291924c68a2e66d03c3ffe5bc394cc3da61578e99c7b84871c2cb
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|