谷歌最近发布了新版本的Firebase。所以我尝试迁移到 Firebase 分析。
那么这些库有什么区别
com.google.firebase:firebase-analytics:9.0.0
and
com.google.firebase:firebase-core:9.0.0
我发现核心也用于分析。
那么有什么区别呢?我应该使用哪个。
目前没有区别。
The 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你可以找到:
com.google.firebase:firebase-core:9.0.0 ->> Analytics
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)