avioli / uni_links

Flutter plugin for accepting incoming links.
BSD 2-Clause "Simplified" License
563 stars 303 forks source link

UniLinksPlugin.java uses or overrides a deprecated API #131

Open YumanYIN opened 3 years ago

YumanYIN commented 3 years ago

I'm using uni_links 0.5.1 and am building APK (android).

There is a red note of Flutter: Note: /Users/yinyuman/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/android/src/main/java/name/avioli/unilinks/UniLinksPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Is that important? Can you update this API? Thanks so much.

majidbagheri66 commented 2 years ago

I have the same problem.

RettPop commented 2 years ago

Is there any chance to get it fixed?

amenk commented 2 years ago

I had a closer look using this approach: https://stackoverflow.com/questions/49711773/how-to-recompile-with-xlintdeprecation Then flutter run shows:

2 warnings
/home/user/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/android/src/main/java/name/avioli/unilinks/UniLinksPlugin.java:84: warning: [deprecation] Registrar in PluginRegistry has been deprecated
    public static void registerWith(@NonNull PluginRegistry.Registrar registrar) {
                                                           ^
1 warning

But I don't know how to fix this...

Anyways, it's just a warning, not an error for the app we are building.