flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

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

Open MAM606 opened this issue 6 months ago โ€ข 4 comments

๐Ÿ“Œ 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!

MAM606 avatar Jun 22 '25 16:06 MAM606

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

echogit avatar Jul 10 '25 07:07 echogit

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

MAM606 avatar Jul 10 '25 09:07 MAM606

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

echogit avatar Jul 10 '25 15:07 echogit

@MAM606 please update the comments to English and I'll merge this in

dlutton avatar Aug 30 '25 15:08 dlutton