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

[firebase_messaging]: Remove references to deprecated v1 Android embedding #12936

Closed
1 task done
reidbaker opened this issue Jun 10, 2024 · 5 comments · Fixed by #12968
Closed
1 task done

[firebase_messaging]: Remove references to deprecated v1 Android embedding #12936

reidbaker opened this issue Jun 10, 2024 · 5 comments · Fixed by #12968
Assignees
Labels
Needs Attention This issue needs maintainer attention. platform: android Issues / PRs which are specifically for Android. plugin: messaging resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working

Comments

@reidbaker
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Messaging

Which platforms are affected?

Android

Description

To ensure this plugin will work with users running the next stable version of Flutter remove references to the v1 embedding.

The v1 embedding was deprecated around 6 and a half years ago. In Flutter 3.22, the Flutter tool dropped support for building v1 apps entirely. Flutter plans to delete version one of it's Android embedding in the next stable release, per https://medium.com/flutter/whats-new-in-flutter-3-22-fbde6c164fe3 (in the "Removal of v1 Android embedding" section).

When that deletion happens, any apps using plugins that still have references to the removed classes will fail to build when updating to the next stable version (probably Flutter 3.26).

As a part of this deprecation, the Flutter Android team is doing community outreach by filing bugs and submitting some pull requests to update plugins to minimize the impact this removal has on the community.

Some example PRs:

Consequences:

  • This change should have no impact on users of this plugin that are building apps using the v2 embedding (we don't have a percentage to share, but this is the vast majority of users).
  • It will remove support for users that are still using the v1 embedding on version of Flutter older than 3.22.

If this change doesn't land, this plugin will instead be broken for all apps building on the next stable version of Flutter and beyond.

Is there a way to support both v1 and v2 embedding apps in the next stable version of Flutter?

No.

This is the PR where we are removing the deprecated engine classes: flutter/engine#52022

Reproducing the issue

Build Messaging with a custom engine version targeting flutter/engine#52022

Firebase Core version

tip of tree

Flutter Version

3.26

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
N/A

Additional context and comments

No response

@reidbaker reidbaker added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Jun 10, 2024
@reidbaker
Copy link
Author

Confirmed compilation against the version of the engine with the classes removed.

@Lyokone
Copy link
Contributor

Lyokone commented Jun 12, 2024

Thanks for checking @reidbaker, if I understand properly, the only thing that we still have to do is remove the references in documentation?

@Lyokone Lyokone self-assigned this Jun 12, 2024
@Lyokone Lyokone added plugin: messaging platform: android Issues / PRs which are specifically for Android. labels Jun 12, 2024
@reidbaker
Copy link
Author

Correct. I debated not filing an issue at all since it wont cause issues for your customers but figured you might want to know you are referencing classes that will not exist in the future :).

@Lyokone
Copy link
Contributor

Lyokone commented Jun 17, 2024

Thanks for taking the time to check :)

@TarekkMA TarekkMA added the resolution: fixed A fix has been merged or is pending merge from a PR. label Jun 21, 2024
@firebase firebase locked and limited conversation to collaborators Jul 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Attention This issue needs maintainer attention. platform: android Issues / PRs which are specifically for Android. plugin: messaging resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants