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

Upgrade play-services-basement to 18.1.0 #1982

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

jkasten2
Copy link
Member

@jkasten2 jkasten2 commented Feb 6, 2024

Description

One Line Summary

Google recommends updating to play-services-basement:18.1.0.

Details

Bumped firebase-messaging from 23.0.0 to 23.0.8. It has a dependency on play-services-basement:18.1.0 which gives us the recommended version. Also removed our direct dependency on play-services-base as this can easily get out of sync with other Google libraries when when we update them, such as firebase-messaging we updated in this PR. See commit message for even more details.

Motivation

Google recommends updating to play-services-basement:18.1.0.

Scope

Only changes required to update firebase-messaging and updated required code, which also gives us an updated play-services-basement.

Testing

Unit testing

Manual testing

Tested a new installed on an Android 14 emulator, ensuring we still get a FCM push token.

Affected code checklist

  • Notifications
    • Display
    • Open
    • Push Processing
    • Confirm Deliveries
  • Outcomes
  • Sessions
  • In-App Messaging
  • REST API requests
  • Public API changes

Checklist

Overview

  • I have filled out all REQUIRED sections above
  • PR does one thing
  • Any Public API changes are explained in the PR details and conform to existing APIs

Testing

  • I have included test coverage for these changes, or explained why they are not needed
  • All automated tests pass, or I explained why that is not possible
    • Test are currently failing on main
  • I have personally tested this on my device, or explained why that is not possible

Final pass

  • Code is as readable as possible.
  • I have reviewed this PR myself, ensuring it meets each checklist item

This change is Reviewable

Upgraded firebase-messaging from 23.0.0 -> 23.0.8, which upgrades to
play-services-basement:18.1.0.

Removed direct dependency reference to
com.google.android.gms:play-services-base. Version locking isn't
recommened for this specific dependency, since other things depend
on it like com.google.firebase:firebase-messaging.
When we upgrade to FCM 23.0.8 they changed the defintion to
tokenTask.exception to be possiblity null. Updated our code to
handle thier change.

Changes above also exposed the getToken defintion was out of sync with
between PushRegistratorAbstractGoogle and PushRegistratorFCM so this
was addressed.
@jkasten2 jkasten2 changed the title WIP - Upgrade play-services-basement to 18.1.0 Upgrade play-services-basement to 18.1.0 Feb 8, 2024
@jkasten2 jkasten2 merged commit 6c6b12c into main Feb 8, 2024
1 of 2 checks passed
@jkasten2 jkasten2 deleted the upgrade/play-services-basement branch February 8, 2024 20:45
@jinliu9508 jinliu9508 mentioned this pull request Feb 9, 2024
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

2 participants