Files
swiftcontrol/android/app/proguard-rules.pro
Jonas Acker df818dbf6f build(android): Gradle 9.3.1, AGP 9.1.0, Kotlin 2.4.0
Gradle 8.14 refuses to run on Java 25. Versions follow Flutter 3.47's
own template; the newDsl / builtInKotlin opt-outs are already set.

- kotlinOptions → kotlin { compilerOptions } in the app module.
- AGP 9 rejects proguard-android.txt: use the -optimize default with
  -dontoptimize, so R8 does exactly what it did before (the overlay's
  reflected OverlayService fields are still kept; checked in the APK).
- flutter_screen_recording 2.0.25 (no newer release) calls jcenter(),
  which Gradle 9 removed: vendored under packages/ with mavenCentral().
- Plugins still compiling against SDK 31 fail AGP 9's AAR metadata
  check: compile every library against 36 (targetSdk unchanged).

Debug and release APKs build on Java 25.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 10:19:06 +02:00

13 lines
754 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 { *; }
# AGP 9 only accepts proguard-android-optimize.txt as the default file. Until
# release builds have been checked with R8's optimizations on, keep them off so
# R8 does exactly what it did with proguard-android.txt.
-dontoptimize