Closed kast-ppi closed 8 months ago
The following code does not return a result future:
await ScreenProtector.protectDataLeakageWithBlur()
In SwiftScreenProtectorPlugin.swift there are result(...) statements missing:
case "protectDataLeakageWithBlur": enabledProtectDataLeakageWithBlur = .on <-- TODO result(...) missing --> break case "protectDataLeakageWithImage": if args != nil { protectDataLeakageWithImageName = args!["name"] ?? "LaunchImage" } enabledProtectDataLeakageWithImage = .on <-- TODO result(...) missing --> break case "protectDataLeakageWithColor": if args != nil { guard let hexColor = args!["hexColor"] else {return} protectDataLeakageWithColor = hexColor enabledProtectDataLeakageWithColor = .on } <-- TODO result(...) missing --> break
Thank you for reporting the issue. The issue has been fixed in version screen_protector: ^1.4.0.
screen_protector: ^1.4.0
The following code does not return a result future:
await ScreenProtector.protectDataLeakageWithBlur()
In SwiftScreenProtectorPlugin.swift there are result(...) statements missing: