Open kyo504 opened 4 years ago
Maybe better to not use a case transformation for such keys at all and instead replace it with a more robust transformation logic?
@mifi yeah, that would be another way to solve this problem. But I don't know the history of current implementation and what you mentioned would cause backward compatibility issue(I think this is not as important as all the people should bump major version).
I agree with @mifi, can we use a switch statement to return the proper enum value instead?
Fixes # #728
Test Plan:
Before this PR, if you run following example,
you could see the following error on Android Debug Console.
And this leads crash on release mode. I've tested that app works fine after this pr.