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

+4
View File
@@ -197,3 +197,7 @@ dependency_overrides:
path: stubs/flutter_onnxruntime
flutter_langdetect:
path: stubs/flutter_langdetect
# 2.5.0 (2026-10-17, "Pigeon JNI") crashes on start in a release build:
# R8 strips SharedPreferencesApiRegistrar.getAll, which is only reached
# through JNI -> NoSuchMethodError, black screen. Drop the pin once fixed.
shared_preferences_android: 2.4.28