Skip to content

Commit

Permalink
Remove desktop_webview_window
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert committed Sep 10, 2024
1 parent cf2147f commit 92f247f
Show file tree
Hide file tree
Showing 8 changed files with 352 additions and 368 deletions.
11 changes: 0 additions & 11 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'package:cloudotp/Utils/file_util.dart';
import 'package:cloudotp/Utils/hive_util.dart';
import 'package:cloudotp/Utils/request_header_util.dart';
import 'package:cloudotp/Widgets/Item/item_builder.dart';
import 'package:desktop_webview_window/desktop_webview_window.dart';
import 'package:ente_crypto_dart/ente_crypto_dart.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -47,17 +46,7 @@ Future<void> main(List<String> args) async {
}

Future<void> runMyApp(List<String> args) async {
if (ResponsiveUtil.isDesktop() && runWebViewTitleBarWidget(args)) {
return;
}
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
// if (ResponsiveUtil.isWindows()) {
// await WindowsSingleInstance.ensureSingleInstance(
// args,
// kWindowSingleInstanceName,
// onSecondWindow: (args) {},
// );
// }
await initApp(widgetsBinding);
late Widget home;
if (!DatabaseManager.initialized) {
Expand Down
4 changes: 0 additions & 4 deletions linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "generated_plugin_registrant.h"

#include <biometric_storage/biometric_storage_plugin.h>
#include <desktop_webview_window/desktop_webview_window_plugin.h>
#include <flutter_secure_storage_linux/flutter_secure_storage_linux_plugin.h>
#include <hotkey_manager_linux/hotkey_manager_linux_plugin.h>
#include <isar_flutter_libs/isar_flutter_libs_plugin.h>
Expand All @@ -24,9 +23,6 @@ void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) biometric_storage_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "BiometricStoragePlugin");
biometric_storage_plugin_register_with_registrar(biometric_storage_registrar);
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) flutter_secure_storage_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterSecureStorageLinuxPlugin");
flutter_secure_storage_linux_plugin_register_with_registrar(flutter_secure_storage_linux_registrar);
Expand Down
1 change: 0 additions & 1 deletion linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

list(APPEND FLUTTER_PLUGIN_LIST
biometric_storage
desktop_webview_window
flutter_secure_storage_linux
hotkey_manager_linux
isar_flutter_libs
Expand Down
4 changes: 2 additions & 2 deletions macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Foundation

import audio_session
import biometric_storage
import desktop_webview_window
import device_info_plus
import flutter_inappwebview_macos
import flutter_local_notifications
Expand All @@ -32,13 +31,13 @@ import tray_manager
import url_launcher_macos
import video_player_avfoundation
import wakelock_plus
import webview_flutter_wkwebview
import window_manager
import window_to_front

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
AudioSessionPlugin.register(with: registry.registrar(forPlugin: "AudioSessionPlugin"))
BiometricStorageMacOSPlugin.register(with: registry.registrar(forPlugin: "BiometricStorageMacOSPlugin"))
DesktopWebviewWindowPlugin.register(with: registry.registrar(forPlugin: "DesktopWebviewWindowPlugin"))
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
InAppWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "InAppWebViewFlutterPlugin"))
FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin"))
Expand All @@ -63,6 +62,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
FVPVideoPlayerPlugin.register(with: registry.registrar(forPlugin: "FVPVideoPlayerPlugin"))
WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin"))
FLTWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "FLTWebViewFlutterPlugin"))
WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin"))
WindowToFrontPlugin.register(with: registry.registrar(forPlugin: "WindowToFrontPlugin"))
}
Loading

0 comments on commit 92f247f

Please sign in to comment.