Skip to content

[Android] Migrate to FlutterPlugin and ActivityAware (remove deprecated Registrar) #593

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MAM606
Copy link

@MAM606 MAM606 commented Jun 22, 2025

πŸ“Œ Summary

This Pull Request migrates the Android implementation of flutter_tts away from the deprecated PluginRegistry.Registrar API to the modern FlutterPlugin and ActivityAware APIs.

βœ… What Changed

  • Removed deprecated Registrar-based registration.
  • Added FlutterPlugin onAttachedToEngine() binding.
  • Implemented ActivityAware for safer context handling.
  • Maintained backward compatibility with existing usage.

πŸ§ͺ Testing

  • βœ… Verified speaking, pitch, and rate adjustments
  • βœ… Tested on Android physical device (API 33)

πŸ“Ž Related Issue

Closes #592 Issue


Happy to adjust or expand based on feedback. Thank you for maintaining this plugin!

@echogit
Copy link

echogit commented Jul 10, 2025

Are the comments in arabic? Wouldn't english be more broadly understood?

@MAM606
Copy link
Author

MAM606 commented Jul 10, 2025

I become more comfortable with Arabic, and I can describe my codes better in this way, thank you for your feedback. (;

@echogit
Copy link

echogit commented Jul 10, 2025

I become more comfortable with Arabic, and I can describe my codes better in this way, thank you for your feedback. (;

I suggest using AI to translate :P

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.

[Proposal] Migrate Android plugin implementation to modern FlutterPlugin API
2 participants