Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Switch to older version of share_plus

Neeraj Guptac183531e8bfa
diff --git a/mobile/lib/ui/account/recovery_key_page.dart b/mobile/lib/ui/account/recovery_key_page.dart
index 6b4a116243..9ea3107096 100644
--- a/mobile/lib/ui/account/recovery_key_page.dart
+++ b/mobile/lib/ui/account/recovery_key_page.dart
@@ -11,7 +11,7 @@ import 'package:photos/ente_theme_data.dart';
import "package:photos/generated/l10n.dart";
import 'package:photos/ui/common/gradient_button.dart';
import 'package:photos/utils/toast_util.dart';
-import 'package:share_plus/share_plus.dart';
+import "package:share_plus/share_plus.dart";
import 'package:step_progress_indicator/step_progress_indicator.dart';
class RecoveryKeyPage extends StatefulWidget {
@@ -248,7 +248,8 @@ class _RecoveryKeyPageState extends State<RecoveryKeyPage> {
await _recoveryKeyFile.delete();
}
_recoveryKeyFile.writeAsStringSync(recoveryKey);
- await Share.shareFiles([_recoveryKeyFile.path]);
+
+ await Share.shareXFiles([XFile(_recoveryKeyFile.path)]);
Future.delayed(const Duration(milliseconds: 500), () {
if (mounted) {
setState(() {
diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock
index 752d7a1738..970383016a 100644
--- a/mobile/pubspec.lock
+++ b/mobile/pubspec.lock
@@ -1862,10 +1862,10 @@ packages:
dependency: "direct main"
description:
name: share_plus
- sha256: fb5319f3aab4c5dda5ebb92dca978179ba21f8c783ee4380910ef4c1c6824f51
+ sha256: "3ef39599b00059db0990ca2e30fca0a29d8b37aae924d60063f8e0184cf20900"
url: "https://pub.dev"
source: hosted
- version: "8.0.3"
+ version: "7.2.2"
share_plus_platform_interface:
dependency: transitive
description:
diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml
index d2fd4c5919..dee9c67059 100644
--- a/mobile/pubspec.yaml
+++ b/mobile/pubspec.yaml
@@ -143,7 +143,7 @@ dependencies:
scrollable_positioned_list: ^0.3.5
sentry: ^7.9.0
sentry_flutter: ^7.9.0
- share_plus: ^8.0.3
+ share_plus: 7.2.2
shared_preferences: ^2.0.5
sqflite: ^2.3.0
sqflite_migration: ^0.3.0