expo-sharing 10.3.0 → 11.0.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 +12 -0
- package/android/build.gradle +2 -2
- package/ios/EXSharing/EXSharingModule.m +14 -3
- package/ios/EXSharing.podspec +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 11.0.1 — 2022-10-27
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- On iOS, dismiss share sheet after sharing to an app is canceled, so the file doesn't fail to attach when trying to share again ([#19656](https://github.com/expo/expo/pull/19656) by [@keith-kurak](https://github.com/keith-kurak))
|
|
18
|
+
|
|
19
|
+
## 11.0.0 — 2022-10-25
|
|
20
|
+
|
|
21
|
+
### 🛠 Breaking changes
|
|
22
|
+
|
|
23
|
+
- Bumped iOS deployment target to 13.0 and deprecated support for iOS 12. ([#18873](https://github.com/expo/expo/pull/18873) by [@tsapeta](https://github.com/tsapeta))
|
|
24
|
+
|
|
13
25
|
## 10.3.0 — 2022-07-07
|
|
14
26
|
|
|
15
27
|
### 🛠 Breaking changes
|
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 = '
|
|
6
|
+
version = '11.0.1'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -74,7 +74,7 @@ android {
|
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
75
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
76
76
|
versionCode 16
|
|
77
|
-
versionName '
|
|
77
|
+
versionName '11.0.1'
|
|
78
78
|
}
|
|
79
79
|
lintOptions {
|
|
80
80
|
abortOnError false
|
|
@@ -48,11 +48,10 @@ EX_EXPORT_METHOD_AS(shareAsync,
|
|
|
48
48
|
_documentInteractionController.delegate = self;
|
|
49
49
|
_documentInteractionController.UTI = params[@"UTI"];
|
|
50
50
|
|
|
51
|
-
UIViewController *viewController = [[_moduleRegistry getModuleImplementingProtocol:@protocol(EXUtilitiesInterface)] currentViewController];
|
|
52
|
-
|
|
53
51
|
EX_WEAKIFY(self);
|
|
54
52
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
55
53
|
EX_ENSURE_STRONGIFY(self);
|
|
54
|
+
UIViewController *viewController = [[self.moduleRegistry getModuleImplementingProtocol:@protocol(EXUtilitiesInterface)] currentViewController];
|
|
56
55
|
UIView *rootView = [viewController view];
|
|
57
56
|
if ([self.documentInteractionController presentOpenInMenuFromRect:CGRectZero inView:rootView animated:YES]) {
|
|
58
57
|
self.pendingResolver = resolve;
|
|
@@ -68,7 +67,19 @@ EX_EXPORT_METHOD_AS(shareAsync,
|
|
|
68
67
|
_pendingResolver(nil);
|
|
69
68
|
_pendingResolver = nil;
|
|
70
69
|
|
|
71
|
-
|
|
70
|
+
// This delegate method is called whenever:
|
|
71
|
+
// a) the share sheet is canceled
|
|
72
|
+
// b) an app is chosen, it's dialog opened, and the share is confirmed/ sent
|
|
73
|
+
// c) an app is chosen, it's dialog opened, and that dialog is canceled
|
|
74
|
+
// In case c), the share sheet remains open, even though the promise was resolved
|
|
75
|
+
// Future attempts to share without closing the sheet will fail to attach the file, so we need to close it
|
|
76
|
+
// No other delegate methods fire only when the share sheet is dismissed, unfortunately
|
|
77
|
+
EX_WEAKIFY(self);
|
|
78
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
79
|
+
EX_ENSURE_STRONGIFY(self);
|
|
80
|
+
[self.documentInteractionController dismissMenuAnimated:true];
|
|
81
|
+
self.documentInteractionController = nil;
|
|
82
|
+
});
|
|
72
83
|
}
|
|
73
84
|
|
|
74
85
|
@end
|
package/ios/EXSharing.podspec
CHANGED
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.homepage = package['homepage']
|
|
13
|
-
s.platform = :ios, '
|
|
13
|
+
s.platform = :ios, '13.0'
|
|
14
14
|
s.source = { git: 'https://github.com/expo/expo.git' }
|
|
15
15
|
s.static_framework = true
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-sharing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "ExpoSharing standalone module",
|
|
5
5
|
"main": "build/Sharing.js",
|
|
6
6
|
"types": "build/Sharing.d.ts",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"homepage": "https://docs.expo.dev/versions/latest/sdk/sharing/",
|
|
33
33
|
"dependencies": {},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"expo-module-scripts": "^
|
|
35
|
+
"expo-module-scripts": "^3.0.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"expo": "*"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "5ff3a7e56ae21f002da3d699cc95bc98d784cd77"
|
|
41
41
|
}
|