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

Remove unnecessary play services dependency #476

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

sarahkoop
Copy link
Contributor

Summary of changes

  • Drop-in contained an unnecessary additional dependency of play service wallet, using an older dependency than core. Remove dependencies so that drop-in gets it's play services wallet dependency from the core SDK.
  • Update country code in demo app to fix prod error.

Checklist

  • [ ] Added a changelog entry

Authors

@sarahkoop sarahkoop requested a review from a team as a code owner May 14, 2024 17:28
@@ -63,7 +63,6 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.4.0-alpha03'
implementation 'androidx.cardview:cardview:1.0.0'

implementation 'com.google.android.gms:play-services-wallet:16.0.1'
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this worthy of a CHANGELOG entry or not something that merchants would notice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They shouldn't notice it - we were duplicate including this dependency (already bundled with the core Google Play module) so it was already resolving to the higher version from core

@@ -284,6 +284,7 @@ private GooglePayRequest getGooglePayRequest() {
.setTotalPriceStatus(WalletConstants.TOTAL_PRICE_STATUS_FINAL)
.build());
googlePayRequest.setEmailRequired(true);
googlePayRequest.setCountryCode("BR");
Copy link
Contributor

Choose a reason for hiding this comment

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

qq: Noticed this is set to Brazil?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah in prod there's currently an error with our default allowed card networks (I think Maestro or some other one requires the country code to be BR) - updated this rather than changing allowed card networks

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh ok yeah that makes total sense 👍

@sarahkoop sarahkoop merged commit ec77bad into main May 15, 2024
4 checks passed
@sarahkoop sarahkoop deleted the update_play_services branch May 15, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants