Update flutter_web_auth_2 to use the pub.dev version since supports linux now

codemagic-setup
Hank Grabowski 2023-04-06 15:49:03 -04:00
rodzic dc5bb51360
commit 4f6efd663e
7 zmienionych plików z 25 dodań i 11 usunięć

Wyświetl plik

@ -12,6 +12,7 @@
#include <media_kit_video/media_kit_video_plugin.h>
#include <objectbox_flutter_libs/objectbox_flutter_libs_plugin.h>
#include <url_launcher_linux/url_launcher_plugin.h>
#include <window_to_front/window_to_front_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) desktop_window_registrar =
@ -32,4 +33,7 @@ void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
g_autoptr(FlPluginRegistrar) window_to_front_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "WindowToFrontPlugin");
window_to_front_plugin_register_with_registrar(window_to_front_registrar);
}

Wyświetl plik

@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
media_kit_video
objectbox_flutter_libs
url_launcher_linux
window_to_front
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

Wyświetl plik

@ -16,6 +16,7 @@ import path_provider_foundation
import shared_preferences_foundation
import sqflite
import url_launcher_macos
import window_to_front
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
DesktopWindowPlugin.register(with: registry.registrar(forPlugin: "DesktopWindowPlugin"))
@ -29,4 +30,5 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
WindowToFrontPlugin.register(with: registry.registrar(forPlugin: "WindowToFrontPlugin"))
}

Wyświetl plik

@ -430,12 +430,11 @@ packages:
flutter_web_auth_2:
dependency: "direct main"
description:
path: flutter_web_auth_2
ref: add-linux-support
resolved-ref: ce43f48b3b6c0b055e3871eedf1feee1cbe1a2d9
url: "https://github.com/HankG/flutter_web_auth_2.git"
source: git
version: "2.0.4"
name: flutter_web_auth_2
sha256: "6aebfb1797bb1dd38cd32753832670482792e4f0b9cef0329d357f889dbf07c9"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
flutter_web_auth_2_platform_interface:
dependency: transitive
description:
@ -1334,6 +1333,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.1.3"
window_to_front:
dependency: transitive
description:
name: window_to_front
sha256: "7aef379752b7190c10479e12b5fd7c0b9d92adc96817d9e96c59937929512aee"
url: "https://pub.dev"
source: hosted
version: "0.0.3"
xdg_directories:
dependency: transitive
description:

Wyświetl plik

@ -17,11 +17,7 @@ dependencies:
flutter_dotenv: ^5.0.2
flutter_file_dialog: ^3.0.0
flutter_secure_storage: ^8.0.0
flutter_web_auth_2:
git:
url: https://github.com/HankG/flutter_web_auth_2.git
path: flutter_web_auth_2
ref: add-linux-support
flutter_web_auth_2: ^2.1.2
flutter_widget_from_html_core: ^0.10.0
get_it: ^7.2.0
get_it_mixin: ^4.1.1

Wyświetl plik

@ -11,6 +11,7 @@
#include <media_kit_video/media_kit_video_plugin_c_api.h>
#include <objectbox_flutter_libs/objectbox_flutter_libs_plugin.h>
#include <url_launcher_windows/url_launcher_windows.h>
#include <window_to_front/window_to_front_plugin.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
DesktopWindowPluginRegisterWithRegistrar(
@ -23,4 +24,6 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
registry->GetRegistrarForPlugin("ObjectboxFlutterLibsPlugin"));
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
WindowToFrontPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("WindowToFrontPlugin"));
}

Wyświetl plik

@ -8,6 +8,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
media_kit_video
objectbox_flutter_libs
url_launcher_windows
window_to_front
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST