Skip to content

Package uses or overrides a deprecated API #13

@aaronkelton

Description

@aaronkelton

When building a release version for my app flutter build appbundle, I noticed the following warning:

Note: /Users/ak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sim_country_code-0.1.2/android/src/main/java/com/example/flutter_sim_country_code/FlutterSimCountryCodePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

After I updated my Gradle build file to use the -Xlint:deprecation compilerArgs, these two warnings pop up:

/Users/ak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sim_country_code-0.1.2/android/src/main/java/com/example/flutter_sim_country_code/FlutterSimCountryCodePlugin.java:14: warning: [deprecation] Registrar in PluginRegistry has been deprecated
import io.flutter.plugin.common.PluginRegistry.Registrar;
                                              ^
/Users/ak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sim_country_code-0.1.2/android/src/main/java/com/example/flutter_sim_country_code/FlutterSimCountryCodePlugin.java:25: warning: [deprecation] Registrar in PluginRegistry has been deprecated
  public static void registerWith(Registrar registrar) {
                                  ^
2 warnings

Would it be possible to update this package to the latest non-deprecated code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions