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

fix callbackDispatcher not found issue in release mode for Android #615

Merged
merged 1 commit into from
Mar 9, 2022
Merged

Conversation

mehayhe
Copy link
Contributor

@mehayhe mehayhe commented Mar 8, 2022

Need to add @pragma('vm:entry-point') to callbackDispatcher & custom callback for these to be triggered properly in release mode for Android. The issue only started happening after upgrading to flutter 2.10.

This PR will fix this issue #614

For more info about pragma entry-point, check out:
https://github.com/dart-lang/sdk/blob/master/runtime/docs/compiler/aot/entry_point_pragma.md
https://github.com/flutter/flutter/wiki/Experimental:-Launch-Flutter-with-non-main-entrypoint#avoid-tree-shaking-in-release

@hnvn
Copy link
Member

hnvn commented Mar 9, 2022

LGTM, thanks you

@hnvn hnvn merged commit 02236c7 into fluttercommunity:master Mar 9, 2022
@mehayhe
Copy link
Contributor Author

mehayhe commented Mar 15, 2022

@hnvn will you be rolling out the new changes on master to pub.dev soon?

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.

2 participants