SunnyApp / flutter_contact

A flutter plugin for retrieving, creating, saving, and watching contacts on native devices
BSD 3-Clause "New" or "Revised" License
80 stars 62 forks source link

Upgrade Required - `flutter_contact` uses a deprecated version of the Android embedding. #73

Open shivshnkr opened 3 years ago

shivshnkr commented 3 years ago

While using this library into our application - we keep getting warnings as follows:

The plugin flutter_contact uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

While the application runs well, I still wanted to bring the deprecation point to be noticed and upgrade if needed. Thanks

deepak786 commented 2 years ago

duplicate of https://github.com/SunnyApp/flutter_contact/issues/68

deepak786 commented 2 years ago

I have submitted the PR (https://github.com/SunnyApp/flutter_contact/pull/69) which not only migrates to Android V2 embedding but also adds new features with some adjustments in the Plugin. Until the PR is not merged, you can use it in your projects.

Add or update the following in your pubspec.yml file.

dependency_overrides:
  flutter_contact:
    git:
      url: https://github.com/deepak786/flutter_contact
      ref: agendaboa_patch

Use it and share the feedback accordingly.

If you like the work, Don't hesitate to buy me coffee. Buy Me A Coffee

EnricoSignoriWeDoc commented 2 years ago

Any news?

tkeithblack commented 2 years ago

Deepak,

I've been using your flutter_contact patch.

url: https://github.com/deepak786/flutter_contact ref: agendaboa_patch

I need to make a change to the kotlin version to support the latest Flutter. I was looking at your Git and It's not clear if it's best to use master or agendaboa_patch. What are you using now?

Thanks, Keith Black

On Wed, Oct 20, 2021 at 2:43 PM Deepak Goyal @.***> wrote:

I have submitted the PR (#69 https://github.com/SunnyApp/flutter_contact/pull/69) which not only migrates to Android V2 embedding but also adds new features with some adjustments in the Plugin. Until the PR is not merged, you can use it in your projects.

Add or update the following in your pubspec.yml file.

dependency_overrides: flutter_contact: git: url: https://github.com/deepak786/flutter_contact ref: agendaboa_patch

Use it and share the feedback accordingly.

If you like the work, Don't hesitate to buy me coffee. [image: Buy Me A Coffee] https://www.buymeacoffee.com/deepakdroid

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SunnyApp/flutter_contact/issues/73#issuecomment-947981551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4WS656AIEM2G6AY74DKZTUH4LV7ANCNFSM5EKXVSTQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

deepak786 commented 2 years ago

@tkeithblack I'm using agendaboa_patch (https://github.com/deepak786/flutter_contact/tree/agendaboa_patch)

tkeithblack commented 2 years ago

Thanks Deepak, I just submitted a pull request to the agendaboa_patch branch.

Keith