jaumard / sms_autofill

Flutter plugin to provide SMS code autofill support
MIT License
293 stars 187 forks source link

deprecation API warning #48

Closed ruthvik-github closed 4 years ago

ruthvik-github commented 4 years ago

i am having latest version in pubspec.yaml

Screenshot 2020-07-30 at 9 10 17 PM

and i am getting this warning some times

Screenshot 2020-07-30 at 9 09 21 PM

how can i change the code to avoid such errors.

jaumard commented 4 years ago

Would be nice to know which API causes problem, it probably need to be change inside the plugin

jaumard commented 4 years ago

Should be fixed in 1.2.6 thanks to @jack24254029

jack24254029 commented 4 years ago
Note: /root/.pub-cache/hosted/pub.dartlang.org/sms_autofill-1.2.6/android/src/main/java/com/jaumard/smsautofill/AppSignatureHelper.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

1.2.6 still have some deprecated APIs, but I am not sure which API is deprecated.

ruthvik-github commented 3 years ago

I am getting these Warnings even after updating packages

pawanv/development/flutter/.pub-cache/git/sms_autofill-8aa82ffe539d2289951511af8257ea97e9e2b80d/android/src/main/java/com/jaumard/smsautofill/AppSignatureHelper.java:59: warning: [deprecation] GET_SIGNATURES in PackageManager has been deprecated
                    PackageManager.GET_SIGNATURES).signatures;
                                  ^
flutter/.pub-cache/git/sms_autofill-8aa82ffe539d2289951511af8257ea97e9e2b80d/android/src/main/java/com/jaumard/smsautofill/AppSignatureHelper.java:59: warning: [deprecation] signatures in PackageInfo has been deprecated
                    PackageManager.GET_SIGNATURES).signatures;
                                                  ^
2 warnings

i have updated dependencies as well

Amr1440 commented 3 years ago

still getting same error using sms_autofill: ^2.0.1

Screen Shot 2021-09-08 at 10 55 41 AM

@jaumard