-
Notifications
You must be signed in to change notification settings - Fork 658
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
Don't filter countries when they're not supported from Locale.getISOCountries on older Android versions. #6611
Conversation
…ountries on older Android versions. Fixes #6501
Diffuse output:
APK
DEX
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that only API 33+ will see Kosovo emoji?
@@ -79,10 +80,10 @@ class CountryConfigTest { | |||
|
|||
assertThat( | |||
defaultCountries.size | |||
).isEqualTo(249) | |||
).isEqualTo(235) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the size change due to us not updating the list of supported countries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely a behavior change! Before we default was the Locale.getISOCountries
, and filtered by supportedBillingCountries
. No it's always just supportedBillingCountries
.
Fixes #6501
Summary
This change no longer uses
Locale.getISOCountries
, but rather our hardcoded set of supported countries.Locale.getISOCountries
provided an easy way to get the country codes, but was out of sync with what Stripe supported. Now we only filter countries by our hardcoded list, rather than also filtering implicitly via the Android platform.Motivation
#6501
Testing
Screenshots
Notice the missing icon! This is because we use emojis for the flag, and that emoji isn't support on that version of Android.
Changelog