Skip to content

Commit

Permalink
fix(ios): missing disabling of protection screens when calling protec…
Browse files Browse the repository at this point in the history
…tDataLeakage off methods in inactive app state
  • Loading branch information
vm-px committed Oct 20, 2023
1 parent 36a0686 commit 5ad3b15
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.4.1

* fix(ios): missing disabling of protection screens when calling protectDataLeakage off methods in inactive app state

## 1.4.0

* feat(ios): add method protectDataLeakageWithColorOff
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.4.0"
version: "1.4.1"
sky_engine:
dependency: transitive
description: flutter
Expand Down
2 changes: 2 additions & 0 deletions ios/Classes/SwiftScreenProtectorPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public class SwiftScreenProtectorPlugin: NSObject, FlutterPlugin {
break
case "protectDataLeakageWithBlurOff":
enabledProtectDataLeakageWithBlur = .off
screenProtectorKit?.disableBlurScreen()
result(true)
break
case "protectDataLeakageWithImage":
Expand All @@ -92,6 +93,7 @@ public class SwiftScreenProtectorPlugin: NSObject, FlutterPlugin {
break
case "protectDataLeakageWithColorOff":
enabledProtectDataLeakageWithColor = .off
screenProtectorKit?.disableColorScreen()
result(true)
break
case "preventScreenshotOn":
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: screen_protector
description: Safe Data Leakage via Application Background Screenshot and Prevent Screenshot for Android and iOS.
version: 1.4.0
version: 1.4.1
homepage: https://github.com/prongbang/screen_protector

environment:
Expand Down

0 comments on commit 5ad3b15

Please sign in to comment.