taljacobson / flutter_mailer

A wrapper on top of MFMailComposeViewController from iOS and Mail Intent on android
MIT License
47 stars 39 forks source link

Deprecation warning #51

Open ThexXTURBOXx opened 2 years ago

ThexXTURBOXx commented 2 years ago

This has been partly reported in #43. However, the core issue was something else there. So, this issue is supposed to be a reminder that the warning still exists since Flutter Embedding v2 should be standard by now.

The full warning (with source) is the following:

G:\Programme\Flutter_SDK\.pub-cache\hosted\pub.dartlang.org\flutter_mailer-2.0.1\android\src\main\java\com\dataxad\flutter_mailer\FlutterMailerPlugin.java:22: warning: [deprecation] Registrar in PluginRegistry has been deprecated
    public static void registerWith(PluginRegistry.Registrar registrar) {
                                                  ^
1 warning

In order to fix this, something like https://github.com/firebase/flutterfire/commit/738b0ec925bff934158fb8cc7e40004d39a1085f should do the trick. Also this guide could potentially be helpful if the plugin has not been fully migrated yet.