expo-document-picker 11.5.0 → 11.5.1
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 +5 -0
- package/android/build.gradle +2 -2
- package/ios/DocumentPickerModule.swift +6 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 11.5.1 — 2023-06-27
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
13
17
|
## 11.5.0 — 2023-06-21
|
|
14
18
|
|
|
15
19
|
### 🐛 Bug fixes
|
|
16
20
|
|
|
21
|
+
- Fix `copyToCacheDirectory` on iOS. ([#23102](https://github.com/expo/expo/pull/23102) by [@aleqsio](https://github.com/aleqsio))
|
|
17
22
|
- Fixed Android build warnings for Gradle version 8. ([#22537](https://github.com/expo/expo/pull/22537), [#22609](https://github.com/expo/expo/pull/22609) by [@kudo](https://github.com/kudo))
|
|
18
23
|
|
|
19
24
|
## 11.4.0 — 2023-05-08
|
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 = '11.5.
|
|
6
|
+
version = '11.5.1'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -67,7 +67,7 @@ android {
|
|
|
67
67
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
68
68
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
69
69
|
versionCode 17
|
|
70
|
-
versionName '11.5.
|
|
70
|
+
versionName '11.5.1'
|
|
71
71
|
}
|
|
72
72
|
lintOptions {
|
|
73
73
|
abortOnError false
|
|
@@ -110,7 +110,6 @@ public class DocumentPickerModule: Module, PickingResultHandler {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
private func readDocumentDetails(documentUrl: URL, copy: Bool) throws -> DocumentInfo {
|
|
113
|
-
let pathExtension = documentUrl.pathExtension
|
|
114
113
|
var newUrl = documentUrl
|
|
115
114
|
|
|
116
115
|
guard let fileSystem = self.appContext?.fileSystem else {
|
|
@@ -122,13 +121,16 @@ public class DocumentPickerModule: Module, PickingResultHandler {
|
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
if copy {
|
|
125
|
-
let
|
|
126
|
-
let
|
|
124
|
+
let cacheDirURL = URL(fileURLWithPath: fileSystem.cachesDirectory)
|
|
125
|
+
let directory = cacheDirURL.appendingPathComponent("DocumentPicker", isDirectory: true).path
|
|
126
|
+
let fileExtension = "." + documentUrl.pathExtension
|
|
127
|
+
let path = fileSystem.generatePath(inDirectory: directory, withExtension: fileExtension)
|
|
127
128
|
newUrl = URL(fileURLWithPath: path)
|
|
129
|
+
|
|
128
130
|
try FileManager.default.copyItem(at: documentUrl, to: newUrl)
|
|
129
131
|
}
|
|
130
132
|
|
|
131
|
-
let mimeType = self.getMimeType(from: pathExtension)
|
|
133
|
+
let mimeType = self.getMimeType(from: documentUrl.pathExtension)
|
|
132
134
|
|
|
133
135
|
return DocumentInfo(
|
|
134
136
|
uri: newUrl.absoluteString,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-document-picker",
|
|
3
|
-
"version": "11.5.
|
|
3
|
+
"version": "11.5.1",
|
|
4
4
|
"description": "Provides access to the system's UI for selecting documents from the available providers on the user's device.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"expo": "*"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "aa6bda733cef821234c77a19bbe6008b72c1c594"
|
|
44
44
|
}
|