Skip to content

Commit 0b3e4cf

Browse files
chrisbobbegnprice
authored andcommitted
deps: Upgrade packages to latest, namely package_info_plus, share_plus
This is the result of `tools/upgrade pod-major`, and some small adjustments for a breaking API change in share_plus. Changelogs: https://pub.dev/packages/package_info_plus/changelog https://pub.dev/packages/share_plus/changelog Tested on my iPhone and on the office Android device. In particular, I checked that sharing message content via the message action sheet still worked, and I checked that the "About Zulip" page still shows the "App version" field correctly.
1 parent 92f5dd5 commit 0b3e4cf

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

lib/widgets/action_sheet.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class ShareButton extends MessageActionSheetMenuItemButton {
205205
// https://pub.dev/packages/share_plus#ipad
206206
// Perhaps a wart in the API; discussion:
207207
// https://github.com/zulip/zulip-flutter/pull/12#discussion_r1130146231
208-
final result = await Share.shareWithResult(rawContent);
208+
final result = await Share.share(rawContent);
209209

210210
switch (result.status) {
211211
// The plugin isn't very helpful: "The status can not be determined".

pubspec.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -752,18 +752,18 @@ packages:
752752
dependency: "direct main"
753753
description:
754754
name: package_info_plus
755-
sha256: cb44f49b6e690fa766f023d5b22cac6b9affe741dd792b6ac7ad4fabe0d7b097
755+
sha256: b93d8b4d624b4ea19b0a5a208b2d6eff06004bc3ce74c06040b120eeadd00ce0
756756
url: "https://pub.dev"
757757
source: hosted
758-
version: "6.0.0"
758+
version: "8.0.0"
759759
package_info_plus_platform_interface:
760760
dependency: transitive
761761
description:
762762
name: package_info_plus_platform_interface
763-
sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6"
763+
sha256: f49918f3433a3146047372f9d4f1f847511f2acd5cd030e1f44fe5a50036b70e
764764
url: "https://pub.dev"
765765
source: hosted
766-
version: "2.0.1"
766+
version: "3.0.0"
767767
path:
768768
dependency: "direct main"
769769
description:
@@ -904,18 +904,18 @@ packages:
904904
dependency: "direct main"
905905
description:
906906
name: share_plus
907-
sha256: fb5319f3aab4c5dda5ebb92dca978179ba21f8c783ee4380910ef4c1c6824f51
907+
sha256: ef3489a969683c4f3d0239010cc8b7a2a46543a8d139e111c06c558875083544
908908
url: "https://pub.dev"
909909
source: hosted
910-
version: "8.0.3"
910+
version: "9.0.0"
911911
share_plus_platform_interface:
912912
dependency: "direct main"
913913
description:
914914
name: share_plus_platform_interface
915-
sha256: "251eb156a8b5fa9ce033747d73535bf53911071f8d3b6f4f0b578505ce0d4496"
915+
sha256: "0f9e4418835d1b2c3ae78fdb918251959106cefdbc4dd43526e182f80e82f6d4"
916916
url: "https://pub.dev"
917917
source: hosted
918-
version: "3.4.0"
918+
version: "4.0.0"
919919
shelf:
920920
dependency: transitive
921921
description:

pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ dependencies:
5656
image_picker: ^1.0.0
5757
intl: ^0.19.0
5858
json_annotation: ^4.8.1
59-
package_info_plus: ^6.0.0
59+
package_info_plus: ^8.0.0
6060
path: ^1.8.3
6161
path_provider: ^2.0.13
62-
share_plus: ^8.0.2
63-
share_plus_platform_interface: ^3.3.1
62+
share_plus: ^9.0.0
63+
share_plus_platform_interface: ^4.0.0
6464
sqlite3: ^2.4.0
6565
sqlite3_flutter_libs: ^0.5.13
6666
url_launcher: ^6.1.11

test/test_share_plus.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MockSharePlus {
1212

1313
Future<Object?> handleMethodCall(MethodCall methodCall) async {
1414
switch (methodCall.method) {
15-
case 'shareWithResult':
15+
case 'share':
1616
// The method channel doesn't preserve Map<String, dynamic> as
1717
// `arguments`'s type; logging runtimeType gives _Map<Object?, Object?>.
1818
final arguments = methodCall.arguments as Map;

0 commit comments

Comments
 (0)