blaugold / user_messaging_platform

A flutter plugin which provides a Dart API for the User Messaging Platform (UMP) SDK, which is the Consent Management Platform (CMP) SDK provided as part of Google's Funding Choices.
https://pub.dev/packages/user_messaging_platform
MIT License
9 stars 7 forks source link

Swift Compiler Warning #19

Closed ilzdktahgw closed 2 years ago

ilzdktahgw commented 2 years ago

There's a warning that comes up during buildtime when I run on an iOS device:

private func showConsentForm(_ result: @escaping FlutterResult) {
...
} else {
    result(getConsentInfo()) 

    Warning Message: Call to method 'getConsentInfo' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in Swift 6
                     Reference 'self.' explicitly
    }
...
}
blaugold commented 2 years ago

Thanks for reporting this.