mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-07-04 14:43:15 +02:00
The token moved from plaintext SharedPreferences into flutter_secure_storage (Android Keystore / libsecret). Only the non-secret owner/repo/clientId stay in prefs. Migration is confirm-before-delete: load() reads the keystore first and falls back to the legacy plaintext token, migrating it only once a secure write succeeds; save() likewise keeps writing plaintext if no secret service is available, so we degrade to — never below — the old behaviour. 157 tests, 100% line coverage, analyze clean. Verified on-device: Settings stays connected and sync succeeds after the one-time migration. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
24 lines
1.0 KiB
C++
24 lines
1.0 KiB
C++
//
|
|
// Generated file. Do not edit.
|
|
//
|
|
|
|
// clang-format off
|
|
|
|
#include "generated_plugin_registrant.h"
|
|
|
|
#include <file_selector_linux/file_selector_plugin.h>
|
|
#include <flutter_secure_storage_linux/flutter_secure_storage_linux_plugin.h>
|
|
#include <url_launcher_linux/url_launcher_plugin.h>
|
|
|
|
void fl_register_plugins(FlPluginRegistry* registry) {
|
|
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
|
|
file_selector_plugin_register_with_registrar(file_selector_linux_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) url_launcher_linux_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
|
|
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
|
|
}
|