diff --git a/config.lock.yaml b/config.lock.yaml index a7d011f..a3d62e8 100644 --- a/config.lock.yaml +++ b/config.lock.yaml @@ -10,7 +10,7 @@ introduction_screen: 4a90e557630b28834479ed9c64a9d2d0185d8e48 libsignal_protocol_dart: 618f0c0b49534245a640a31d204265440cbac9ee lottie: 4f1a5a52bdf1e1c1e12fa97c96174dcb05419e19 mutex: 84ca903a3ac863735e3228c75a212133621f680f -no_screenshot: 299c2d1d70448f23f1e9835a18585edfc9dbe6fa +no_screenshot: 1b561a2a87c19e317f3cb225ed023b113c9dd3a1 optional: 71c638891ce4f2aff35c7387727989f31f9d877d photo_view: a13ca2fc387a3fb1276126959e092c44d0029987 pointycastle: bbd8569f68a7fccbdf0b92d0b44a9219c126c8dd diff --git a/no_screenshot/android/src/main/kotlin/com/flutterplaza/no_screenshot/NoScreenshotPlugin.kt b/no_screenshot/android/src/main/kotlin/com/flutterplaza/no_screenshot/NoScreenshotPlugin.kt index f4d25cd..1cfd0ba 100644 --- a/no_screenshot/android/src/main/kotlin/com/flutterplaza/no_screenshot/NoScreenshotPlugin.kt +++ b/no_screenshot/android/src/main/kotlin/com/flutterplaza/no_screenshot/NoScreenshotPlugin.kt @@ -273,7 +273,7 @@ class NoScreenshotPlugin : FlutterPlugin, MethodChannel.MethodCallHandler, Activ private fun showImageOverlay(activity: Activity) { if (overlayImageView != null) return - val resId = activity.resources.getIdentifier("image", "drawable", activity.packageName) + val resId = activity.resources.getIdentifier("no_screenshot_image", "drawable", activity.packageName) if (resId == 0) return activity.runOnUiThread { val imageView = ImageView(activity).apply { diff --git a/no_screenshot/ios/no_screenshot/Sources/no_screenshot/IOSNoScreenshotPlugin.swift b/no_screenshot/ios/no_screenshot/Sources/no_screenshot/IOSNoScreenshotPlugin.swift index 5f0b300..d23d6c7 100644 --- a/no_screenshot/ios/no_screenshot/Sources/no_screenshot/IOSNoScreenshotPlugin.swift +++ b/no_screenshot/ios/no_screenshot/Sources/no_screenshot/IOSNoScreenshotPlugin.swift @@ -138,7 +138,7 @@ public class IOSNoScreenshotPlugin: NSObject, FlutterPlugin, FlutterStreamHandle // visible in the app switcher (otherwise the secure text field // would show a blank screen). disablePreventScreenshot() - enableImageScreen(named: "image") + enableImageScreen(named: "NoScreenshotImage") } else if isBlurOverlayModeEnabled { disablePreventScreenshot() enableBlurScreen(radius: blurRadius) diff --git a/no_screenshot/pubspec.yaml b/no_screenshot/pubspec.yaml index ef9a42a..9bf25a1 100644 --- a/no_screenshot/pubspec.yaml +++ b/no_screenshot/pubspec.yaml @@ -1,6 +1,6 @@ name: no_screenshot description: Flutter plugin to prevent screenshots, detect screen recording, and show blur/color/image overlays in the app switcher on Android, iOS, macOS, Linux, Windows, and Web. -version: 1.0.0 +version: 1.1.0 homepage: https://flutterplaza.com repository: https://github.com/FlutterPlaza/no_screenshot