<!-- Thanks for contributing! Provide a description of your changes below and a general summary in the title Please look at the following checklist to ensure that your PR can be accepted quickly: --> ## Description This is a PR that makes the auth build runnable on the Desktop platform. Below is a screenshot for the same:  Some things to note: - LocalAuth will be bypassed on unsupported platforms (desktop) - Switched to sodium and sodium-libs from flutter_sodium. - QR code library is incompatible with desktop, So I removed access to those pages. - Bumped some dependencies and done some lint fixes - Also add save key option as send file may not help on desktop (related #380) https://github.com/ente-io/auth/assets/41370460/3f3471e8-45f6-4146-88ac-b763d4f38b32 - Update Recovery Key Card UI  So this is a step towards more updated code and better multiplatform support. ## Type of Change <!--- Put an `x` in all the boxes that apply: --> - [ ] 🖼️ New icon - [x] ✨ New feature (non-breaking change which adds functionality) - [ ] 🛠️ Bug fix (non-breaking change which fixes an issue) - [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change) - [x] 🧹 Code refactor - [ ] ✅ Build configuration change - [ ] 📝 Documentation - [ ] 🗑️ Chore --------- Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
52 lines
2.9 KiB
C++
52 lines
2.9 KiB
C++
//
|
|
// Generated file. Do not edit.
|
|
//
|
|
|
|
// clang-format off
|
|
|
|
#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>
|
|
#include <gtk/gtk_plugin.h>
|
|
#include <sentry_flutter/sentry_flutter_plugin.h>
|
|
#include <smart_auth/smart_auth_plugin.h>
|
|
#include <sodium_libs/sodium_libs_plugin.h>
|
|
#include <sqlite3_flutter_libs/sqlite3_flutter_libs_plugin.h>
|
|
#include <url_launcher_linux/url_launcher_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);
|
|
g_autoptr(FlPluginRegistrar) flutter_local_authentication_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterLocalAuthenticationPlugin");
|
|
flutter_local_authentication_plugin_register_with_registrar(flutter_local_authentication_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);
|
|
g_autoptr(FlPluginRegistrar) gtk_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "GtkPlugin");
|
|
gtk_plugin_register_with_registrar(gtk_registrar);
|
|
g_autoptr(FlPluginRegistrar) sentry_flutter_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "SentryFlutterPlugin");
|
|
sentry_flutter_plugin_register_with_registrar(sentry_flutter_registrar);
|
|
g_autoptr(FlPluginRegistrar) smart_auth_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "SmartAuthPlugin");
|
|
smart_auth_plugin_register_with_registrar(smart_auth_registrar);
|
|
g_autoptr(FlPluginRegistrar) sodium_libs_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "SodiumLibsPlugin");
|
|
sodium_libs_plugin_register_with_registrar(sodium_libs_registrar);
|
|
g_autoptr(FlPluginRegistrar) sqlite3_flutter_libs_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "Sqlite3FlutterLibsPlugin");
|
|
sqlite3_flutter_libs_plugin_register_with_registrar(sqlite3_flutter_libs_registrar);
|
|
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);
|
|
}
|