Skip to content

Compiler Warnings as Errors - WordPress Module - AppInitializer - Google API Client & Firebase Instance Id #17229

@ParaskP7

Description

@ParaskP7

Parent #17173

This issue is about resolving the GoogleApiClient & FirebaseInstanceId compile warnings for the WordPress module and its AppInitializer class.

PS: Some of those warnings are already deprecated (see here).


The GoogleApiClient & FirebaseInstanceId solution within the AppInitializer class seems to be used for:

  • setupCredentialsClient(): This method, upon app initialization, initializes and connects to a credentialsClient client (an instance of GoogleApiClient).
  • wordPressComSignOut(): The above is needed because this method, upon a wp.com user sign-out event, checks this credentialsClient client, that is, whether it is already connected, and if it is, it disables the auto sign-in for this client.
  • removeWpComUserRelatedData(...): This method, upon a wp.com user sign-out event, removes user related data and deletes the Firebase instance id (using an instance of FirebaseInstanceId).

As such, all the above (mainly) sign-out related functionality should be migrated to Play services APIs.


For more info see:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions