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

Resolve code deprecation warnings. #42

Open
2 tasks done
UlyssesAlves opened this issue Apr 5, 2023 · 0 comments
Open
2 tasks done

Resolve code deprecation warnings. #42

UlyssesAlves opened this issue Apr 5, 2023 · 0 comments
Labels
P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. platform: ios Issue is related to the iOS platform type: enhancement New feature or request

Comments

@UlyssesAlves
Copy link

UlyssesAlves commented Apr 5, 2023

🏗 Enhancement Proposal

Resolve these code deprecation warnings:

\google_api_availability_android-1.0.0+1\android\src\main\java\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.java:11: warning: [deprecation] Registrar in PluginRegistry has been deprecated
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
\google_api_availability_android-1.0.0+1\android\src\main\java\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.java:12: warning: [deprecation] ViewDestroyListener in PluginRegistry has been deprecated
import io.flutter.plugin.common.PluginRegistry.ViewDestroyListener;
^
\google_api_availability_android-1.0.0+1\android\src\main\java\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.java:13: warning: [deprecation] FlutterNativeView in io.flutter.view has been deprecated
import io.flutter.view.FlutterNativeView;
^
\google_api_availability_android-1.0.0+1\android\src\main\java\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.java:58: warning: [deprecation] Registrar in PluginRegistry has been deprecated
public static void registerWith(Registrar registrar) {
^
\google_api_availability_android-1.0.0+1\android\src\main\java\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.java:63: warning: [deprecation] ViewDestroyListener in PluginRegistry has been deprecated
registrar.addViewDestroyListener(new ViewDestroyListener() {
^
\google_api_availability_android-1.0.0+1\android\src\main\java\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.java:65: warning: [deprecation] FlutterNativeView in io.flutter.view has been deprecated
public boolean onViewDestroy(FlutterNativeView view) {

                               ^

6 warnings

Pitch

It will prevent breaking aplications when updating other flutter and dart packages, even flutter or dart themselves.

Platforms affected (mark all that apply)

  • 📱 iOS
  • 🤖 Android
@TimHoogstrate TimHoogstrate added the type: enhancement New feature or request label Jun 29, 2023
@JeroenWeener JeroenWeener added platform: android Issue is related to the Android platform. platform: ios Issue is related to the iOS platform P2 Important issues not at the top of the work list. labels Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. platform: ios Issue is related to the iOS platform type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants