expo-file-system 16.0.0 → 16.0.2
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
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 16.0.2 — 2023-12-19
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 16.0.1 — 2023-12-13
|
|
18
|
+
|
|
19
|
+
_This version does not introduce any user-facing changes._
|
|
20
|
+
|
|
13
21
|
## 16.0.0 — 2023-12-12
|
|
14
22
|
|
|
15
23
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '16.0.
|
|
6
|
+
version = '16.0.2'
|
|
7
7
|
|
|
8
8
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
9
9
|
if (expoModulesCorePlugin.exists()) {
|
|
@@ -94,7 +94,7 @@ android {
|
|
|
94
94
|
namespace "expo.modules.filesystem"
|
|
95
95
|
defaultConfig {
|
|
96
96
|
versionCode 30
|
|
97
|
-
versionName "16.0.
|
|
97
|
+
versionName "16.0.2"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -471,7 +471,9 @@ open class FileSystemModule : Module() {
|
|
|
471
471
|
|
|
472
472
|
AsyncFunction("uploadAsync") { url: String, fileUriString: String, options: FileSystemUploadOptions, promise: Promise ->
|
|
473
473
|
val request = createUploadRequest(
|
|
474
|
-
url,
|
|
474
|
+
url,
|
|
475
|
+
fileUriString,
|
|
476
|
+
options
|
|
475
477
|
) { requestBody -> requestBody }
|
|
476
478
|
|
|
477
479
|
okHttpClient?.let {
|
|
@@ -519,7 +521,7 @@ open class FileSystemModule : Module() {
|
|
|
519
521
|
val request = createUploadRequest(
|
|
520
522
|
url,
|
|
521
523
|
fileUriString,
|
|
522
|
-
options
|
|
524
|
+
options
|
|
523
525
|
) { requestBody -> CountingRequestBody(requestBody, progressListener) }
|
|
524
526
|
|
|
525
527
|
val call = okHttpClient!!.newCall(request)
|
|
@@ -669,7 +671,11 @@ open class FileSystemModule : Module() {
|
|
|
669
671
|
val call = client.newCall(request)
|
|
670
672
|
taskHandlers[uuid] = DownloadTaskHandler(fileUri, call)
|
|
671
673
|
val params = DownloadResumableTaskParams(
|
|
672
|
-
options,
|
|
674
|
+
options,
|
|
675
|
+
call,
|
|
676
|
+
fileUri.toFile(),
|
|
677
|
+
resumeData != null,
|
|
678
|
+
promise
|
|
673
679
|
)
|
|
674
680
|
moduleCoroutineScope.launch {
|
|
675
681
|
downloadResumableTask(params)
|
|
@@ -1065,7 +1071,9 @@ open class FileSystemModule : Module() {
|
|
|
1065
1071
|
val file = DocumentFile.fromSingleUri(context, uri)
|
|
1066
1072
|
return if (file != null && file.isFile) {
|
|
1067
1073
|
file
|
|
1068
|
-
} else
|
|
1074
|
+
} else {
|
|
1075
|
+
DocumentFile.fromTreeUri(context, uri)
|
|
1076
|
+
}
|
|
1069
1077
|
}
|
|
1070
1078
|
|
|
1071
1079
|
// extension functions of Uri class
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-file-system",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.2",
|
|
4
4
|
"description": "Provides access to the local file system on the device.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -34,9 +34,6 @@
|
|
|
34
34
|
"jest": {
|
|
35
35
|
"preset": "expo-module-scripts"
|
|
36
36
|
},
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"uuid": "^3.4.0"
|
|
39
|
-
},
|
|
40
37
|
"devDependencies": {
|
|
41
38
|
"expo-module-scripts": "^3.0.0",
|
|
42
39
|
"jest-expo": "~50.0.0-alpha.0"
|
|
@@ -44,5 +41,5 @@
|
|
|
44
41
|
"peerDependencies": {
|
|
45
42
|
"expo": "*"
|
|
46
43
|
},
|
|
47
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
|
|
48
45
|
}
|