Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Auth] Add objc attribute to UserInfoImpl so legacy decoding works #14169

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

ncooke3
Copy link
Member

@ncooke3 ncooke3 commented Nov 25, 2024

The class names was changed from FIRUserInfoImpl to UserInfoImpl, but the unarchiving older copies (pre name change) requires knowing the original ObjC name. The rest of the direct/transitive types from the User class's init?(coder:) look okay.

We actually do this for other classes, I just had to make the connection that the class wasn't being decoded because the pre-11 archive didn't have a blob mapping to "UserInfoImpl". The blob was mapping to "FIRUserInfoImpl".

@objc(FIRAuthAppCredential) // objc Needed for decoding old versions
class AuthAppCredential: NSObject, NSSecureCoding {

Fix #14011

@ncooke3 ncooke3 merged commit 19f36aa into main Nov 25, 2024
55 checks passed
@ncooke3 ncooke3 deleted the nc/fix-userimpl branch November 25, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrading to 11.0.0+ causes user to get logged out.
3 participants