Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecation API warning #48

Closed
ruthvik-github opened this issue Jul 30, 2020 · 5 comments
Closed

deprecation API warning #48

ruthvik-github opened this issue Jul 30, 2020 · 5 comments

Comments

@ruthvik-github
Copy link

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
Copy link
Owner

jaumard commented Aug 26, 2020

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

@jack24254029 jack24254029 mentioned this issue Oct 15, 2020
@jaumard
Copy link
Owner

jaumard commented Oct 15, 2020

Should be fixed in 1.2.6 thanks to @jack24254029

@jaumard jaumard closed this as completed Oct 15, 2020
@jack24254029
Copy link
Contributor

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.

jack24254029 added a commit to jack24254029/sms_autofill that referenced this issue Oct 25, 2020
I think dependencies lib use deprecation APIs.
After I update dependencies, I never see the deprecation API warning.
jaumard pushed a commit that referenced this issue Oct 25, 2020
I think dependencies lib use deprecation APIs.
After I update dependencies, I never see the deprecation API warning.
@ruthvik-github
Copy link
Author

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
Copy link

Amr1440 commented Sep 8, 2021

still getting same error using
sms_autofill: ^2.0.1
Screen Shot 2021-09-08 at 10 55 41 AM
@jaumard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants