π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: remove dependency on desktop webview
Prateek Sunal10b4abf9cda6
diff --git a/auth/lib/utils/platform_util.dart b/auth/lib/utils/platform_util.dartindex 5e02702579..87fed6f97e 100644--- a/auth/lib/utils/platform_util.dart+++ b/auth/lib/utils/platform_util.dart@@ -1,6 +1,5 @@import 'dart:io';-import 'package:desktop_webview_window/desktop_webview_window.dart';import 'package:ente_auth/ui/common/web_page.dart';import 'package:file_saver/file_saver.dart';import 'package:flutter/cupertino.dart';@@ -31,17 +30,7 @@ class PlatformUtil {static openWebView(BuildContext context, String title, String url) async {if (PlatformUtil.isDesktop()) {- if (!await WebviewWindow.isWebviewAvailable()) {- await launchUrlString(url);- return;- }-- final webview = await WebviewWindow.create(- configuration: CreateConfiguration(- title: title,- ),- );- webview.launch(url);+ await launchUrlString(url);return;}await Navigator.of(context).push(diff --git a/auth/linux/flutter/generated_plugin_registrant.cc b/auth/linux/flutter/generated_plugin_registrant.ccindex 7b1c79935e..2fdf0b385a 100644--- a/auth/linux/flutter/generated_plugin_registrant.cc+++ b/auth/linux/flutter/generated_plugin_registrant.cc@@ -6,7 +6,6 @@#include "generated_plugin_registrant.h"-#include <desktop_webview_window/desktop_webview_window_plugin.h>#include <file_saver/file_saver_plugin.h>#include <flutter_local_authentication/flutter_local_authentication_plugin.h>#include <flutter_secure_storage_linux/flutter_secure_storage_linux_plugin.h>@@ -20,9 +19,6 @@#include <window_manager/window_manager_plugin.h>void fl_register_plugins(FlPluginRegistry* registry) {- g_autoptr(FlPluginRegistrar) desktop_webview_window_registrar =- fl_plugin_registry_get_registrar_for_plugin(registry, "DesktopWebviewWindowPlugin");- desktop_webview_window_plugin_register_with_registrar(desktop_webview_window_registrar);g_autoptr(FlPluginRegistrar) file_saver_registrar =fl_plugin_registry_get_registrar_for_plugin(registry, "FileSaverPlugin");file_saver_plugin_register_with_registrar(file_saver_registrar);diff --git a/auth/linux/flutter/generated_plugins.cmake b/auth/linux/flutter/generated_plugins.cmakeindex 45674067d7..7ad28f0761 100644--- a/auth/linux/flutter/generated_plugins.cmake+++ b/auth/linux/flutter/generated_plugins.cmake@@ -3,7 +3,6 @@#list(APPEND FLUTTER_PLUGIN_LIST- desktop_webview_windowfile_saverflutter_local_authenticationflutter_secure_storage_linuxdiff --git a/auth/macos/Flutter/GeneratedPluginRegistrant.swift b/auth/macos/Flutter/GeneratedPluginRegistrant.swiftindex 5e814a187f..5c6cfc0c6d 100644--- a/auth/macos/Flutter/GeneratedPluginRegistrant.swift+++ b/auth/macos/Flutter/GeneratedPluginRegistrant.swift@@ -7,7 +7,6 @@ import Foundationimport app_linksimport connectivity_plus-import desktop_webview_windowimport device_info_plusimport file_saverimport flutter_inappwebview_macos@@ -31,7 +30,6 @@ import window_managerfunc RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {AppLinksMacosPlugin.register(with: registry.registrar(forPlugin: "AppLinksMacosPlugin"))ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin"))- DesktopWebviewWindowPlugin.register(with: registry.registrar(forPlugin: "DesktopWebviewWindowPlugin"))DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))FileSaverPlugin.register(with: registry.registrar(forPlugin: "FileSaverPlugin"))InAppWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "InAppWebViewFlutterPlugin"))diff --git a/auth/pubspec.lock b/auth/pubspec.lockindex 4068556881..a2249434e4 100644--- a/auth/pubspec.lock+++ b/auth/pubspec.lock@@ -326,15 +326,6 @@ packages:url: "https://pub.dev"source: hostedversion: "0.7.10"- desktop_webview_window:- dependency: "direct main"- description:- path: "packages/desktop_webview_window"- ref: main- resolved-ref: "3e4247ba5b71049704395b70b5a827fb113b88ea"- url: "https://github.com/MixinNetwork/flutter-plugins"- source: git- version: "0.2.4"device_info_plus:dependency: "direct main"description:diff --git a/auth/pubspec.yaml b/auth/pubspec.yamlindex 707fcc1a45..2e4c6e1107 100644--- a/auth/pubspec.yaml+++ b/auth/pubspec.yaml@@ -19,11 +19,6 @@ dependencies:confetti: ^0.8.0connectivity_plus: ^6.0.5convert: ^3.1.1- desktop_webview_window:- git:- url: https://github.com/MixinNetwork/flutter-plugins- ref: main- path: packages/desktop_webview_windowdevice_info_plus: ^9.1.1dio: ^5.4.0dotted_border: ^2.0.0+2diff --git a/auth/windows/flutter/generated_plugin_registrant.cc b/auth/windows/flutter/generated_plugin_registrant.ccindex d4872e8b9c..bfed849740 100644--- a/auth/windows/flutter/generated_plugin_registrant.cc+++ b/auth/windows/flutter/generated_plugin_registrant.cc@@ -8,7 +8,6 @@#include <app_links/app_links_plugin_c_api.h>#include <connectivity_plus/connectivity_plus_windows_plugin.h>-#include <desktop_webview_window/desktop_webview_window_plugin.h>#include <file_saver/file_saver_plugin.h>#include <flutter_inappwebview_windows/flutter_inappwebview_windows_plugin_c_api.h>#include <flutter_local_authentication/flutter_local_authentication_plugin_c_api.h>@@ -27,8 +26,6 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {registry->GetRegistrarForPlugin("AppLinksPluginCApi"));ConnectivityPlusWindowsPluginRegisterWithRegistrar(registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin"));- DesktopWebviewWindowPluginRegisterWithRegistrar(- registry->GetRegistrarForPlugin("DesktopWebviewWindowPlugin"));FileSaverPluginRegisterWithRegistrar(registry->GetRegistrarForPlugin("FileSaverPlugin"));FlutterInappwebviewWindowsPluginCApiRegisterWithRegistrar(diff --git a/auth/windows/flutter/generated_plugins.cmake b/auth/windows/flutter/generated_plugins.cmakeindex 598cf85d96..cc78f72ebb 100644--- a/auth/windows/flutter/generated_plugins.cmake+++ b/auth/windows/flutter/generated_plugins.cmake@@ -5,7 +5,6 @@list(APPEND FLUTTER_PLUGIN_LISTapp_linksconnectivity_plus- desktop_webview_windowfile_saverflutter_inappwebview_windowsflutter_local_authentication