Pin shared_preferences_android 2.4.28: 2.5.0 crashes on start under R8
build / build (push) Canceled after 0s

2.5.0 (Pigeon JNI) reaches SharedPreferencesApiRegistrar.getAll only
through JNI, R8 strips it, and the app dies with NoSuchMethodError
before the first frame (black screen). Verified on a phone: 2.4.28
starts normally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-10-19 13:03:39 +02:00
1 parent aa8af0e2c2
commit ffc0f579a6
6 files changed
+4 -11

No files matched your search

@@ -7,16 +7,12 @@
#include "generated_plugin_registrant.h"
#include <file_selector_linux/file_selector_plugin.h>
#include <flutter_onnxruntime/flutter_onnxruntime_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_onnxruntime_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterOnnxruntimePlugin");
flutter_onnxruntime_plugin_register_with_registrar(flutter_onnxruntime_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);