From 02ffe72cca385ecf3e15db09be384fa1ec7f6170 Mon Sep 17 00:00:00 2001 From: vishnukvmd Date: Thu, 24 Nov 2022 16:15:24 +0530 Subject: [PATCH] Revert "Disable OpenFile to please PlayStore overlords" This reverts commit a5cac1579b60ce5a0a0f61908cb33682e5a9588e. --- lib/ui/settings/app_update_dialog.dart | 4 ++-- pubspec.lock | 7 +++++++ pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/ui/settings/app_update_dialog.dart b/lib/ui/settings/app_update_dialog.dart index fb566fe68c..25c3c7ba04 100644 --- a/lib/ui/settings/app_update_dialog.dart +++ b/lib/ui/settings/app_update_dialog.dart @@ -6,7 +6,7 @@ import 'package:ente_auth/ente_theme_data.dart'; import 'package:ente_auth/services/update_service.dart'; import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; -// import 'package:open_file/open_file.dart'; +import 'package:open_file/open_file.dart'; class AppUpdateDialog extends StatefulWidget { final LatestVersionInfo latestVersionInfo; @@ -157,7 +157,7 @@ class _ApkDownloaderDialogState extends State { }, ); Navigator.of(context, rootNavigator: true).pop('dialog'); - // OpenFile.open(_saveUrl); + OpenFile.open(_saveUrl); } catch (e) { Logger("ApkDownloader").severe(e); final AlertDialog alert = AlertDialog( diff --git a/pubspec.lock b/pubspec.lock index 27ef5adab2..5435f86b65 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -728,6 +728,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.1" + open_file: + dependency: "direct main" + description: + name: open_file + url: "https://pub.dartlang.org" + source: hosted + version: "3.2.1" otp: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 63c828ec1b..a528882144 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -50,7 +50,7 @@ dependencies: local_auth: ^1.1.5 logging: ^1.0.1 move_to_background: ^1.0.2 - # open_file: ^3.2.1 Disabled to please PlayStore overlords + open_file: ^3.2.1 otp: ^3.1.1 package_info_plus: ^1.0.1 password_strength: ^0.2.0