firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.63k stars 3.95k forks source link

🐛 [firebase_auth] some warnings when running the app #12121

Closed Zeinab-Kouhkan closed 8 months ago

Zeinab-Kouhkan commented 8 months ago

Bug report

Describe the bug When the program is run, I encounter the warnings that I posted in the log, but this does not make the program not run or work.


Logs

Pub\Cache\hosted\pub.dev\firebase_auth-4.16.0\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthPlugin.java:459: warning: [deprecation] fetchSignInMethodsForEmail(String) in FirebaseAuth has been deprecated
        .fetchSignInMethodsForEmail(email)
        ^
Pub\Cache\hosted\pub.dev\firebase_auth-4.16.0\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthUser.java:343: warning: [deprecation] updateEmail(String) in FirebaseUser has been deprecated
        .updateEmail(newEmail)
        ^

Platform

Android 9

Version

4.16.0

Flutter SDK

3.16.5


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand ``` [√] Flutter (Channel stable, 3.16.5, on Microsoft Windows [Version 10.0.19045.3803], locale en-US) • Flutter version 3.16.5 on channel stable at D:\sdk\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 78666c8dc5 (3 weeks ago), 2023-12-19 16:14:14 -0800 • Engine revision 3f3e560236 • Dart version 3.2.3 • DevTools version 2.28.4 [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at D:\sdk\android • Platform android-34, build-tools 34.0.0 • Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe [!] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.2.6) • Visual Studio at D:\Microsoft Visual Studio\Enterprise • Visual Studio Enterprise 2022 version 17.2.32630.192 X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components: MSVC v142 - VS 2019 C++ x64/x86 build tools - If there are multiple build tool versions available, install the latest C++ CMake tools for Windows Windows 10 SDK [√] Android Studio (version 2021.2) • Android Studio at D:\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840) [√] Android Studio (version 2022.2) • Android Studio at C:\Program Files\Android\Android Studio1 • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694) [√] Connected device (6 available) • WAS LX1A (mobile) • 2XJDU17C14002494 • android-arm64 • Android 8.0.0 (API 26) • SM G960N (mobile) • emulator-5554 • android-x64 • Android 9 (API 28) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3803] • Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.199 • Edge (web) • edge • web-javascript • Microsoft Edge 120.0.2210.121 [√] Network resources • All expected network resources are available. ! Doctor found issues in 1 category. PS D:\workspace\flutter\zireh> flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.16.5, on Microsoft Windows [Version 10.0.19045.3803], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [!] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.2.6) X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components: MSVC v142 - VS 2019 C++ x64/x86 build tools - If there are multiple build tool versions available, install the latest C++ CMake tools for Windows Windows 10 SDK [√] Android Studio (version 2021.2) [√] Android Studio (version 2022.2) [√] Connected device (6 available) [√] Network resources ```

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand ``` Resolving dependencies... (1.6s) _fe_analyzer_shared 64.0.0 (65.0.0 available) analyzer 6.2.0 (6.3.0 available) app_settings 4.3.1 (5.1.1 available) chewie 1.5.0 (1.7.4 available) connectivity_plus 3.0.6 (5.0.2 available) csslib 0.17.3 (1.0.0 available) device_info_plus 8.2.2 (9.1.1 available) devicelocale 0.6.0 (0.7.0 available) fading_edge_scrollview 3.0.0 (4.0.0 available) file 6.1.4 (7.0.0 available) file_picker 5.2.10 (6.1.1 available) ! firebase_core_platform_interface 4.8.0 (overridden) (5.0.0 available) fl_chart 0.61.0 (0.66.0 available) flick_video_player 0.5.0 (0.7.0 available) flutter_linkify 5.0.2 (6.0.0 available) flutter_lints 2.0.3 (3.0.1 available) flutter_math_fork 0.6.3+1 (0.7.2 available) flutter_staggered_grid_view 0.6.2 (0.7.0 available) flutter_svg 1.1.6 (2.0.9 available) flutter_web_frame 0.0.3 (1.0.0 available) google_mobile_ads 2.4.0 (4.0.0 available) http 0.13.6 (1.1.2 available) image_picker 0.8.9 (1.0.6 available) image_picker_for_web 2.2.0 (3.0.2 available) ! intl 0.18.1 (overridden) (0.19.0 available) js 0.6.7 (0.7.0 available) linkify 4.1.0 (5.0.0 available) lints 2.1.1 (3.0.0 available) logger 1.4.0 (2.0.2+1 available) matcher 0.12.16 (0.12.16+1 available) material_color_utilities 0.5.0 (0.8.0 available) meta 1.10.0 (1.11.0 available) metrix_analytics 1.6.0 (2.1.0 available) package_info_plus 3.1.2 (5.0.1 available) path 1.8.3 (1.9.0 available) permission_handler 10.4.5 (11.1.0 available) permission_handler_android 10.3.6 (12.0.1 available) permission_handler_apple 9.1.4 (9.2.0 available) permission_handler_platform_interface 3.12.0 (4.0.2 available) permission_handler_windows 0.1.3 (0.2.0 available) ! provider 6.1.1 (overridden) purchases_flutter 5.8.0 (6.6.0 available) retrofit_generator 7.0.8 (8.0.6 available) share_plus 6.3.4 (7.2.1 available) sqflite_common_ffi 2.3.1 (2.3.2 available) syncfusion_flutter_core 21.2.10 (24.1.44 available) syncfusion_flutter_gauges 21.2.10 (24.1.44 available) syncfusion_flutter_pdf 21.2.10 (24.1.44 available) syncfusion_flutter_pdfviewer 21.2.10 (24.1.44 available) syncfusion_pdfviewer_macos 21.2.10 (24.1.44 available) syncfusion_pdfviewer_platform_interface 21.2.10 (24.1.44 available) syncfusion_pdfviewer_web 21.2.10 (24.1.44 available) syncfusion_pdfviewer_windows 21.2.10 (24.1.44 available) test_api 0.6.1 (0.7.0 available) uuid 3.0.7 (4.3.1 available) visibility_detector 0.3.3 (0.4.0+2 available) web 0.3.0 (0.4.0 available) web_socket_channel 2.4.0 (2.4.1 available) win32 3.1.4 (5.2.0 available) Got dependencies! ```

darshankawar commented 8 months ago

Thanks for the report.