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

Migrate to V2 embedding #68

Open
deepak786 opened this issue Aug 2, 2021 · 9 comments
Open

Migrate to V2 embedding #68

deepak786 opened this issue Aug 2, 2021 · 9 comments

Comments

@deepak786
Copy link
Contributor

migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

@tkeithblack
Copy link
Contributor

+1 I'm receiving the following warning with Flutter 2.5.0 using flutter_contact version: 0.9.1+7:

"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."

@wish32
Copy link

wish32 commented Sep 18, 2021

+1 Good plugin!
I'm facing the same problem...

@deepak786
Copy link
Contributor Author

@tkeithblack @wish32

I have submitted the PR (#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

@rabi-palmtree
Copy link

+1
Hope this will be resolved soon

@wangbo4020
Copy link

Running "flutter pub get" in Xxx...                   5.9s

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.

Process finished with exit code 0

@vernalclareai
Copy link

Hi, any update to fix the warning?
Thanks.

@vernalclareai
Copy link

I have another issue on this lib.

e: /Volumes/Data/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_contact-0.9.1+8/android/src/main/kotlin/co/sunnyapp/flutter_contact/FlutterContactFormsPlugin.kt: (85, 13): Smart cast to 'Activity' is impossible, because 'registrar.activity()' is a complex expression

if Anyone can know?
Thanks.

@deepak786
Copy link
Contributor Author

@vernalclareai
you can use this patch

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

It also resolved the above issue.

@vernalclareai
Copy link

okay, it could be resolved using the version.
Thanks.

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

No branches or pull requests

6 participants