firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.67k stars 1.49k forks source link

[Auth] Use constants for 'supportsSecureCoding' implementation #13988

Closed ncooke3 closed 2 weeks ago

ncooke3 commented 2 weeks ago

The static var does not compile in Swift 6 due to shared mutable state. To work around, you can use a constant or a computed var. To standardize things, I chose to go with a constant.

This should not affect how the types conform to NSSecureCoding as a constant can be used to implement a protocol getter-only property. See https://stackoverflow.com/a/38281420/9331576

no-changelog