mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-01 02:02:33 +01:00
The release build is minified (R8), which renamed/removed the private
OverlayService fields (instance, flutterView, windowManager) that
OverlayActionBridge reaches by reflection to re-top the overlay and toggle
keep-screen-on. Both calls therefore threw NoSuchFieldException at runtime
("No field instance in ...OverlayService"). Add a proguard-rules.pro keep
rule for the service and wire proguardFiles into the release buildType.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
8 lines
524 B
Prolog
8 lines
524 B
Prolog
# OverlayActionBridge reflects into the running flutter_overlay_window
|
|
# OverlayService (its static `instance`, plus `flutterView` and `windowManager`)
|
|
# to re-top the overlay and toggle keep-screen-on, because the package exposes
|
|
# no API for either. R8 otherwise renames or removes those fields, so the
|
|
# reflection throws NoSuchFieldException at runtime ("No field instance in
|
|
# ...OverlayService"). Keep the service and its members intact.
|
|
-keep class flutter.overlay.window.flutter_overlay_window.OverlayService { *; }
|