Skip to content

v1.2.0

Latest

Choose a tag to compare

@fonkamloic fonkamloic released this 14 Jul 16:53

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 custom SceneDelegate that does not subclass FlutterSceneDelegate (#105). screenshotOff()/toggleScreenshot() now return false instead of a misleading true when 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() returns false there; 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) with cacheDisplay for the blur-overlay snapshot — no Screen Recording permission required. The blur overlay on macOS now always uses the system blur material and blurRadius has 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