Bug-fix release restoring compatibility with the latest toolchains and fixing two long-standing iOS/macOS issues.
Fixes
- fix(android): removed a duplicate Kotlin source-directory registration that made the plugin fail to compile on Flutter 3.44.4+ with "Conflicting declarations" errors (#114)
- fix(ios): screenshot prevention now attaches lazily on the first method call, so
screenshotOff()works even when scene lifecycle events never reach the plugin — e.g. apps migrated to the UIScene lifecycle with a customSceneDelegatethat does not subclassFlutterSceneDelegate(#105).screenshotOff()/toggleScreenshot()now returnfalseinstead of a misleadingtruewhen protection could not engage because no window is available yet - fix(ios): iOS builds running on Apple-silicon Macs ("Designed for iPhone/iPad") no longer show a permanently black/white window at launch (#107). Screenshot prevention is not supported by this technique on a macOS host, so
screenshotOff()returnsfalsethere; app-switcher overlays and screenshot/recording detection are unaffected - fix(android): migrated to AGP's built-in Kotlin support, so the plugin keeps building on AGP 9+ where applying the Kotlin Gradle Plugin is no longer allowed (#104)
- fix(macos): replaced
CGWindowListCreateImage(removed in the macOS 26 "Tahoe" SDK) withcacheDisplayfor the blur-overlay snapshot — no Screen Recording permission required. The blur overlay on macOS now always uses the system blur material andblurRadiushas no effect there; content remains fully obscured in Mission Control / the app switcher. Also fixes blur-overlay edges fading to transparent on iOS and macOS — thanks @paulanatoleclaudot-betclic (#102)
Full Changelog: v1.1.0...v1.2.0