A libGDX cross-platform API for Firebase.
The first thing you should do is installing Firebase SDK and add gradle dependencies.
Core
compile "pl.mk5.gdx-fireapp:gdx-fireapp-core:$gdxFireappVersion"
Android
compile "pl.mk5.gdx-fireapp:gdx-fireapp-android:$gdxFireappVersion"
iOS
compile "pl.mk5.gdx-fireapp:gdx-fireapp-ios-moe:$gdxFireappVersion"
GWT
compile "pl.mk5.gdx-fireapp:gdx-fireapp-html:$gdxFireappVersion"
The latest version was built using libGDX 1.9.8, multi-os-engine 1.4.3, gwt 2.8.0, iOS firebase sdk 5.x,
android firebase sdk 16.x
API is something like bridge between libGDX app and firebase sdk. It's cover firebase functionality so if you have some knowledge about firebase SDK - using this API should be intuitive for you.
To initialize Firebase SDK just put this line somewhere in your app initialization code:
GdxFIRApp.inst().configure();
Firebase Analytics should start working just after this step.
If you added Fabric/Crashlytics to your project you should initialize it also:
GdxFIRCrash.inst().initialize();
Firebase SDK communication is done with following classes:
To see some examples please go to examples wiki page.
- Better wiki/documentation
- Facebook, github authorization
- Messaging
- Upload task monitoring
- Analytics
- Authentication
- Database
- Storage
- Crash raporting (Crashlytics)
- Messaging
- Android
- iOS (Multi-os Engine)
- GWT
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.