What the difference in firebase-core and firebase-analytics libraray?

陌路散爱 提交于 2019-12-01 15:26:36

Currently there is no difference.

The firebase-core:9.0.0 has no classes and resources in the aar file and contains the firebase-analytics as you can check in the pom file.

  <modelVersion>4.0.0</modelVersion>
  <groupId>com.google.firebase</groupId>
  <artifactId>firebase-core</artifactId>
  <version>9.0.0</version>
  <packaging>aar</packaging>
  <dependencies>
    <dependency>
      <groupId>com.google.firebase</groupId>
      <artifactId>firebase-analytics</artifactId>
      <version>9.0.0</version>
      <scope>compile</scope>
      <type>aar</type>
    </dependency>
  </dependencies>
</project>

Also in the doc you can find:

com.google.firebase:firebase-core:9.0.0 ->> Analytics

Apparently since June 12, 2018 declaring com.google.firebase:firebase-core is required to use any of the Firebase features (firebase.google.com/support/release-notes/android#update_may_23_2018). According to firebase.google.com/docs/android/setup#available-libraries , firebase-analytics is not even a public module, and is probably not intended to be used directly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!