firebase-core和firebase-analytics libraray的区别是什么?

时间:2022-02-27 15:16:33

Google recently released new verison of Firebase. So I was trying to migrateto Firebase analytics.

谷歌最近发布了Firebase的新版本。所以我试图迁移到Firebase分析。

So what is the difference between these libraries

那么这些库之间有什么区别呢

com.google.firebase:firebase-analytics:9.0.0

and

com.google.firebase:firebase-core:9.0.0

I found that core is for analytics too. So whats the difference? Which should I use.

我发现核心也用于分析。那么差异是什么?我应该使用哪个。

1 个解决方案

#1


11  

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.

firebase-core:9.0.0在aar文件中没有类和资源,并且包含firebase-analytics,因为您可以在pom文件中查看。

  <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

#1


11  

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.

firebase-core:9.0.0在aar文件中没有类和资源,并且包含firebase-analytics,因为您可以在pom文件中查看。

  <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