Firebase SDK 9.0.0 令人兴奋,但我找不到其库的纯 java 版本。 older 2.5.2 doc曾经有单独的 Android SDK 和普通 JVM,我在 new doc 中找不到此信息.
有没有办法将此 SDK 用于非 Android 项目,例如 JavaFX?如果没有,我在 JavaFX 项目上仍然使用旧版 2.5.2 SDK 是否会遇到问题?
最佳答案
是的,你可以。看下Server在文档中而不是 Android 部分。
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,)' }
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>
关于java - Firebase SDK 9.0.0 纯 java 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37455308/