ShekarMudaliyar / social_share

Flutter package to share images/videos/text on social media
https://pub.dev/packages/social_share
MIT License
112 stars 191 forks source link

The plugins `social_share` use a deprecated version of the Android embedding. #80

Open savinmathew-Ref opened 3 years ago

savinmathew-Ref commented 3 years ago

I am seeing this error when running pubget.


> The plugins `flutter_webview_plugin, social_share` use a deprecated version of the Android embedding.
> To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them 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.

flutter doctor -v [✓] Flutter (Channel master, 2.5.0-7.0.pre.105, on macOS 11.0.1 20B29 darwin-x64, locale en-IN) • Flutter version 2.5.0-7.0.pre.105 at /Users/savinmathew/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision a2e33dec7c (2 days ago), 2021-08-16 22:51:16 -0700 • Engine revision 7dc8eba6ae • Dart version 2.15.0 (build 2.15.0-15.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/savinmathew/Library/Android/sdk • Platform android-31, build-tools 31.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165) • All Android licenses accepted.

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Connected device (2 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator) • Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.107

Justice4Joffrey commented 3 years ago

Also affecting our builds. Is this package no longer maintained?

Justice4Joffrey commented 3 years ago

This package has the same issue, but looks a bit more widely supported -https://github.com/fluttercommunity/plus_plugins/issues/314

mikaelim-id commented 3 years ago

I have done the android embedding migration. You can use this in your pubscpec.yaml temporary until my pull request merged to master.

social_share: git: https://github.com/mikaelim-id/social_share

guyluz11 commented 2 years ago

I have done the android embedding migration. You can use this in your pubscpec.yaml temporary until my pull request merged to master.

social_share: git: https://github.com/mikaelim-id/social_share

@mikaelim-id I see that your pr got merged #90 , did it solve this issue for anybody else?.