prongbang/screen_protector

Plugin does not return result on iOS

Closed this issue · 1 comments

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.