expo-document-picker 10.1.2 → 10.1.3
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,11 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 10.1.3 — 2022-02-09
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
13
17
|
## 10.1.2 — 2022-02-01
|
|
14
18
|
|
|
15
19
|
### 🐛 Bug fixes
|
|
16
20
|
|
|
17
21
|
- Fix `Plugin with id 'maven' not found` build error from Android Gradle 7. ([#16080](https://github.com/expo/expo/pull/16080) by [@kudo](https://github.com/kudo))
|
|
22
|
+
- Handle nil MIME type. ([#16156](https://github.com/expo/expo/pull/16156) by [@brentvatne](https://github.com/brentvatne))
|
|
18
23
|
|
|
19
24
|
## 10.1.1 — 2022-01-26
|
|
20
25
|
|
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 = '10.1.
|
|
6
|
+
version = '10.1.3'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
@@ -59,7 +59,7 @@ android {
|
|
|
59
59
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
60
60
|
targetSdkVersion safeExtGet("targetSdkVersion", 30)
|
|
61
61
|
versionCode 17
|
|
62
|
-
versionName '10.1.
|
|
62
|
+
versionName '10.1.3'
|
|
63
63
|
}
|
|
64
64
|
lintOptions {
|
|
65
65
|
abortOnError false
|
|
@@ -186,14 +186,20 @@ EX_EXPORT_METHOD_AS(getDocumentAsync,
|
|
|
186
186
|
|
|
187
187
|
NSString *extension = [url pathExtension];
|
|
188
188
|
NSString *mimeType = [EXDocumentPickerModule getMimeType:extension];
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
|
|
190
|
+
NSMutableDictionary *response = [@{
|
|
191
|
+
@"type": @"success",
|
|
192
|
+
@"uri": [newUrl absoluteString],
|
|
193
|
+
@"name": [url lastPathComponent],
|
|
194
|
+
@"size": @(fileSize)
|
|
195
|
+
} mutableCopy];
|
|
196
|
+
|
|
197
|
+
if (mimeType != nil) {
|
|
198
|
+
response[@"mimeType"] = mimeType;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
_resolve(response);
|
|
202
|
+
|
|
197
203
|
_resolve = nil;
|
|
198
204
|
_reject = nil;
|
|
199
205
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-document-picker",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.3",
|
|
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",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"expo": "*"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "fc89e291a33d38323e192761f940ddc583513c76"
|
|
48
48
|
}
|