Skip to content

Commit c11aa38

Browse files
authored
Merge pull request #26 from vm-px/master
fix(ios): missing disabling of protection screens in background
2 parents 36a0686 + 5ad3b15 commit c11aa38

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.4.1
2+
3+
* fix(ios): missing disabling of protection screens when calling protectDataLeakage off methods in inactive app state
4+
15
## 1.4.0
26

37
* feat(ios): add method protectDataLeakageWithColorOff

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ packages:
121121
path: ".."
122122
relative: true
123123
source: path
124-
version: "1.4.0"
124+
version: "1.4.1"
125125
sky_engine:
126126
dependency: transitive
127127
description: flutter

ios/Classes/SwiftScreenProtectorPlugin.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public class SwiftScreenProtectorPlugin: NSObject, FlutterPlugin {
7373
break
7474
case "protectDataLeakageWithBlurOff":
7575
enabledProtectDataLeakageWithBlur = .off
76+
screenProtectorKit?.disableBlurScreen()
7677
result(true)
7778
break
7879
case "protectDataLeakageWithImage":
@@ -92,6 +93,7 @@ public class SwiftScreenProtectorPlugin: NSObject, FlutterPlugin {
9293
break
9394
case "protectDataLeakageWithColorOff":
9495
enabledProtectDataLeakageWithColor = .off
96+
screenProtectorKit?.disableColorScreen()
9597
result(true)
9698
break
9799
case "preventScreenshotOn":

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: screen_protector
22
description: Safe Data Leakage via Application Background Screenshot and Prevent Screenshot for Android and iOS.
3-
version: 1.4.0
3+
version: 1.4.1
44
homepage: https://github.com/prongbang/screen_protector
55

66
environment:

0 commit comments

Comments
 (0)