capawesome-team / capacitor-firebase

⚡️ Firebase plugins for Capacitor. Supports Android, iOS and the Web.
https://capawesome.io/plugins/firebase/
Apache License 2.0
382 stars 99 forks source link

bug: The firebaseAnalyticsVersion of the documentation gives an error in Capacitor 6 #679

Closed bipoza closed 2 months ago

bipoza commented 2 months ago

Plugin(s)

Version

6.1.0

Platform(s)

Current behavior

If you keep the old version of firebaseAnalyticsVersion = '21.2.2' in the new Capacitor 6 version it gives an error when compiling.

By default the new version of Firebase Analytics is now firebaseAnalyticsVersion = '21.5.1' but you should update it in the documentation so that you don't get an error when upgrading.

firebase_analytics_error

Expected behavior

Running build gradle should compile normally. Specifying the version change in the documentation could save time for future developers.

Reproduction

https://github.com/robingenz/capacitor-firebase-plugin-demo/tree/main

Steps to reproduce

  1. Keep the version of the variables.gradle file in firebaseAnalyticsVersion = ‘21.2.1’.
  2. Run ionic cap build android command.
  3. Run it on Android.

Other information

No response

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.1.1 @capacitor/core: 6.1.1 @capacitor/android: 6.1.1 @capacitor/ios: 6.1.1

Installed Dependencies:

@capacitor/cli: 6.1.1 @capacitor/ios: 6.1.1 @capacitor/core: 6.1.1 @capacitor/android: 6.1.1

[success] iOS looking great! 👌 [success] Android looking great! 👌

Before submitting