Documentation question - which Firebase SDK version depends on what Google Play Services library version?

313 views
Skip to first unread message

Andreas B

unread,
Apr 8, 2021, 6:59:00 AM4/8/21
to Firebase Google Group
Is there any way to find out (on the web) what dependencies on Play Services exactly a certain Firebase SDK really has? I know that https://firebase.google.com/support/release-notes/android exists, and I just found https://firebase.google.com/docs/android/android-play-services?hl=en , but which only talks about the "latest release" of each SDK.

For some context, I'm in the process of updating a few of my Android apps. One uses com.google.android.gms:play-services-ads directly, and when updating the dependency from 19.8.0 to 20.0.0 I found out that there had been some major changes I had to deal with.

Another app uses com.google.firebase:firebase-ads, which in turn has a dependency on play-services-ads, and when updating the Firebase BoM version from 26.1.1 to 26.8.0 I wanted to know whether that means a Play Services version bump to v20.

For what it's worth, while the second resource seems to claim that it does, Android Studio's gradle claims otherwise (and I assume the Firebase version (19.8.0) might actually correspond to the same Play Services version?).

Am I missing something obvious here?

Sam Stern

unread,
Apr 8, 2021, 7:13:56 AM4/8/21
to Firebase Google Group
We don't document the versions of all transitive dependencies however if you want to check you can always go straight to the source and look at the POM files! They're on maven.google.com

So if you're curious about firebase-ads you can check these two places:
The dependencies of firebase-ads 19.8.0 are:

  <dependencies>
    <dependency>
      <groupId>com.google.android.gms</groupId>
      <artifactId>play-services-ads</artifactId>
      <version>19.8.0</version>
      <scope>compile</scope>
      <type>aar</type>
    </dependency>
    <dependency>
      <groupId>com.google.firebase</groupId>
      <artifactId>firebase-analytics</artifactId>
      <version>18.0.0</version>
      <scope>compile</scope>
      <type>aar</type>
    </dependency>
  </dependencies>


And the dependencies of firebase-ads 20.0.0 are:

  <dependencies>
    <dependency>
      <groupId>com.google.android.gms</groupId>
      <artifactId>play-services-ads</artifactId>
      <version>20.0.0</version>
      <scope>compile</scope>
      <type>aar</type>
    </dependency>
    <dependency>
      <groupId>com.google.firebase</groupId>
      <artifactId>firebase-analytics</artifactId>
      <version>18.0.0</version>
      <scope>compile</scope>
      <type>aar</type>
    </dependency>
  </dependencies>


So yes in this case it does look like the firebase-ads and play-services-ads version numbers line up.

- Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/077dafa1-1a3e-4019-b836-16ac1596c768n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages