firebase-core和firebase-analytics libraray有什么不同? [英] What the difference in firebase-core and firebase-analytics libraray?
本文介绍了firebase-core和firebase-analytics libraray有什么不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
那么这些库有什么区别?
com.google.firebase:firebase-analytics:9.0.0
和
com.google.firebase:firebase-core:9.0.0
我发现核心也用于分析。
所以有什么区别?我应该使用哪一个。
解决方案
目前没有区别。 > 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>
<依赖关系>
<依赖>
< groupId> com.google.firebase< / groupId>
< artifactId> firebase-analytics< / artifactId>
< version> 9.0.0< / version>
< scope>编译< / scope>
< type> aar< / type>
< /依赖>
< /依赖关系>
< / project>
com.google.firebase:firebase-core:9.0 .0 - >> Analytics
Google recently released new verison of Firebase. So I was trying to migrateto Firebase analytics.
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.
解决方案
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
这篇关于firebase-core和firebase-analytics libraray有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文