Skip to content

Conversation

paulb777
Copy link
Member

Fix #9980

The Remote Config Value Codable implementation did not expect arrays or dictionaries other than from json. However, arrays and dictionaries can be specified in defaults set from plists.

This PR adds tests and fixes the implementation.

@paulb777 paulb777 added this to the 9.5.0 - M120 milestone Jul 27, 2022
Copy link
Member

@ncooke3 ncooke3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few questions, but this LGTM

@paulb777
Copy link
Member Author

A future task could be updating DecodingError._typeMismatch with more customized error messages for RCValue decoding failures for json, dictionaries and arrays.

@paulb777 paulb777 merged commit bc2bc6b into master Jul 29, 2022
@paulb777 paulb777 deleted the pb-rc-codable-fix branch July 29, 2022 18:07
@firebase firebase locked and limited conversation to collaborators Aug 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RemoteConfig invalid array decoding
5 participants