4Q-s-r-o / ota_update

Flutter plugin implementing OTA update for both iOS and Android
MIT License
182 stars 62 forks source link

lint warning regarding PluginRegistry Depreciation #98

Closed christopherowen closed 1 year ago

christopherowen commented 1 year ago

I'm receiving this error on release build with lint enabled.

/opt/homebrew/Caskroom/flutter/3.7.0/flutter/.pub-cache/hosted/pub.dev/ota_update-4.0.2/android/src/main/java/sk/fourq/otaupdate/OtaUpdatePlugin.java:81: warning: [deprecation] Registrar in PluginRegistry has been deprecated
    public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
                                                                           ^
1 warning

My searching on the topic lead me to this page, but I'm a little out of my depth:

MartinHlavna commented 1 year ago

Hello, we still support old APIs therefore this produces the lint warning. We are planning to remove backwards compatibility with old flutter soon, so this will be fixed in one of the upcoming releases.

MartinHlavna commented 1 year ago

We are dropping support for Android Embedding v1 in 5.0.0. Warning should disappear.