-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 [firebase_messaging, firestore] uses or overrides a deprecated API. on Android #8073
Comments
A similar for Another similar from |
Just adding :
Now that i am also using it. |
Tasks.call() is still present in firebase_core, cloud_firestore, firebase_analytics, firebase_crashlytics, firebase_performance |
I must say that I would also add :
Even more weird, i have got :
When i don't use |
how can i remove this warning Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.4.4/android/src/main/java/io/flutter/plugins/firebase/messaging/JobIntentService.java uses or overrides a deprecated API. |
Tasks.call()
to TaskCompletionSource
API
#9404
I think I've nearly addressed all uses of deprecated android API. Performance deprecations are addressed in this PR:#9334. The last outstanding deprecation is the FirebaseMessaging JobIntentService which uses the deprecated |
Thanks for your work @russellwheatley ! With the latest releases from today, i have depe :
Other plugins i am using with their latest version to show they are fine :
|
Getting the same issue... |
firebase_messaging 14.6.8, I have the same issue. |
Please add a thumbs up to the issue so it can be prioritized, rather than polluting the comments with "me too" and "still an issue". |
Same issue for firebase_messaging-14.7.2 Some params from build.gradle:
|
Same issue for cloud_firestore-4.12.2 dependencies:
dev dependencies:
transitive dependencies:
|
who will fix?
…On Sat, Feb 24, 2024 at 3:40 AM ahmed louassef ***@***.***> wrote:
Getting the same issue...
image.png (view on web)
<https://github.com/firebase/flutterfire/assets/110504044/7d2b1537-2bf5-49ec-9556-ae35417582b7>
—
Reply to this email directly, view it on GitHub
<#8073 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIRXJSGSGGHZXHBDBXHKUI3YVELFTAVCNFSM5OFEWS4KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJWGIYDSMZYGM4Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Same issue with the latest flutter release |
Update 2 years after my initial post regarding all of the FlutterFire products with their latest version at the moment of this comment :
And output :
So the active warnings are on |
what update?
…On Thu, Mar 14, 2024 at 9:11 PM Tommy ***@***.***> wrote:
Update 2 years after my initial post regarding all of the FlutterFire
products with their latest version at the moment of this comment :
firebase_core:
firebase_auth:
firebase_messaging:
firebase_analytics:
firebase_performance:
firebase_app_check:
firebase_storage:
firebase_crashlytics:
firebase_database:
firebase_remote_config:
firebase_in_app_messaging:
firebase_ml_model_downloader:
cloud_firestore:
firebase_app_installations:
cloud_functions:
firebase_dynamic_links:
And output :
Note: /Users/foxtom/.pub-cache/hosted/pub.dev/cloud_firestore-4.15.9/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/foxtom/.pub-cache/hosted/pub.dev/firebase_app_check-0.2.1+18/android/src/main/java/io/flutter/plugins/firebase/appcheck/FlutterFirebaseAppCheckPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/foxtom/.pub-cache/hosted/pub.dev/firebase_app_installations-0.2.4+18/android/src/main/java/io/flutter/plugins/firebase/installations/firebase_app_installations/FirebaseInstallationsPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/foxtom/.pub-cache/hosted/pub.dev/firebase_dynamic_links-5.4.18/android/src/main/java/io/flutter/plugins/firebase/dynamiclinks/Utils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/foxtom/.pub-cache/hosted/pub.dev/firebase_messaging-14.7.20/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
So the active warnings are on cloud_firestore: 4.15.9, firebase_app_check:
0.2.1+18, firebase_app_installations: 0.2.4+18, firebase_dynamic_links:
5.4.18 and firebase_messaging: 14.7.20.
—
Reply to this email directly, view it on GitHub
<#8073 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIRXJSHOFEJ627A67RQ6FFTYYHD3ZAVCNFSM5OFEWS4KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJZG44DCOBTGU3A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have updated the issue with the current (14/03/2024) packages in warning / errors. |
same here... Note: /Users/youngrakson/.pub-cache/hosted/pub.dev/cloud_firestore-4.15.9/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestorePlugin.java uses or overrides a deprecated API. |
I don't want to see the error log during apk build.... Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/mj/.pub-cache/hosted/pub.dev/firebase_messaging-14.7.20/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details. My flutter deps related firebase is below ╰─⠠⠵ flutter pub deps | grep 'firebase'
├── firebase_analytics 10.8.0
│ ├── firebase_analytics_platform_interface 3.9.0
│ │ ├── firebase_core...
│ ├── firebase_analytics_web 0.5.5+12
│ │ ├── firebase_analytics_platform_interface...
│ │ ├── firebase_core...
│ │ ├── firebase_core_web...
│ ├── firebase_core...
│ ├── firebase_core_platform_interface...
├── firebase_core 2.27.1
│ ├── firebase_core_platform_interface 5.0.0
│ ├── firebase_core_web...
├── firebase_core_web 2.12.0
│ ├── firebase_core_platform_interface...
├── firebase_crashlytics 3.4.9
│ ├── firebase_core...
│ ├── firebase_core_platform_interface...
│ ├── firebase_crashlytics_platform_interface 3.6.16
│ │ ├── firebase_core...
├── firebase_messaging 14.7.20
│ ├── firebase_core...
│ ├── firebase_core_platform_interface...
│ ├── firebase_messaging_platform_interface 4.5.28
│ │ │ ├── firebase_core...
│ │ │ ├── firebase_core_platform_interface...
│ │ ├── firebase_core...
│ ├── firebase_messaging_web 3.7.0
│ │ ├── firebase_core...
│ │ ├── firebase_core_web...
│ │ ├── firebase_messaging_platform_interface...
├── firebase_remote_config 4.3.18
│ ├── firebase_core...
│ ├── firebase_core_platform_interface...
│ ├── firebase_remote_config_platform_interface 1.4.26
│ │ ├── firebase_core...
│ ├── firebase_remote_config_web 1.4.26
│ │ ├── firebase_core...
│ │ ├── firebase_core_web...
│ │ ├── firebase_remote_config_platform_interface... |
@minseok-jeong-gn It's a note, not an error. But yes, it would be nice, if firebase would not use deprecated APIs. @russellwheatley Any idea when this will be solved? :) |
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: X:\Pub\Cache\hosted\pub.dev\firebase_dynamic_links-5.5.1\android\src\main\java\io\flutter\plugins\firebase\dynamiclinks\Utils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: X:\Pub\Cache\hosted\pub.dev\firebase_messaging-14.8.1\android\src\main\java\io\flutter\plugins\firebase\messaging\FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
|
firebase_messaging updates have now been merged and will go out in the next release. We will not be updating firebase_dynamic_links as it is itself deprecated. If any future deprecations occur, please file a new issue as all the packages mentioned in this thread have now been updated. Thanks 🙏 |
Bug report
Describe the bug
In the title but for many FlutterFire plugins, please see the list below.
My
build.gradle
file :This was fixed for
cloud_functions
in #7446 but not for all plugins.Steps to reproduce
Steps to reproduce the behavior:
Run an app on Android after flutter clean using the following plugins :
firebase_analytics
firebase_messaging
firebase_crashlytics
firebase_dynamic_links
Expected behavior
Not have these warnings despite they are not blocking anything (for now)
Additional context
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: