Firebase SDK 9.0.0纯Java版本? [英] Firebase SDK 9.0.0 plain java version?

查看:195
本文介绍了Firebase SDK 9.0.0纯Java版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firebase SDK 9.0.0令人兴奋,但我找不到其库的普通java版本。 较早的2.5.2 doc 过去曾为Android和普通JVM提供单独的SDK,我在新文档中找不到此信息。

Firebase SDK 9.0.0 is exciting but I cannot find the plain java version of its library. The older 2.5.2 doc used to have separate SDK for Android and plain JVM, I cannot find this information in the new doc.

有没有办法将这个SDK用于非Android项目,比如说JavaFX?如果没有,我是否会在我的JavaFX项目中使用旧的2.5.2 SDK时遇到问题?

Is there a way to use this SDK for non-Android project, like say, JavaFX? If not, will I run into a problem for still using the older 2.5.2 SDK on my JavaFX project?

推荐答案

是的你能够。查看文档中的服务器,而不是Android部分。

Yes you can. Look under Server in the docs instead of the Android section.


我们将Firebase Java SDK发布到Maven中央存储库。要
安装库,你可以简单地将它声明为
build.gradle文件中的依赖项:

We publish the Firebase Java SDK to the Maven central repository. To install the library, you can simply declare it as a dependency in your build.gradle file:

dependencies {
    compile 'com.google.firebase:firebase-server-sdk:[3.0.0,)'
}

如果使用Maven
来构建应用程序,可以将以下依赖项添加到
你的pom.xml:

If you use Maven to build your application, you can add the following dependency to your pom.xml:

<dependency>
    <groupId>com.google.firebase</groupId>
    <artifactId>firebase-server-sdk</artifactId>
    <version>[3.0.0,)</version>
</dependency>


这篇关于Firebase SDK 9.0.0纯Java版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆