2

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.

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?

Hendra Anggrian
  • 5,780
  • 13
  • 57
  • 97

1 Answers1

2

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

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>
eikooc
  • 2,363
  • 28
  • 37
  • 3
    Please note that the server SDK uses a Google service account and would not be appropriate for a JavaFX client. You can't distribute that. – nathaniel.camomot Sep 28 '16 at 01:54