flutter-google-api-availability icon indicating copy to clipboard operation
flutter-google-api-availability copied to clipboard

Resolve code deprecation warnings.

Open UlyssesAlves opened this issue 2 years ago • 0 comments

🏗 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)

  • [x] :iphone: iOS
  • [x] :robot: Android

UlyssesAlves avatar Apr 05 '23 01:04 UlyssesAlves