What is the difference between
compile 'com.google.firebase:firebase-database:11.2.2'
And
compile 'com.firebaseui:firebase-ui-database:2.3.0'
Why do you need one or both?
What is the difference between
compile 'com.google.firebase:firebase-database:11.2.2'
And
compile 'com.firebaseui:firebase-ui-database:2.3.0'
Why do you need one or both?
These are 2 separate libraries:
com.google.firebase:firebase-database
is the official Firebase Database SDK which provides access to the Firebase Realtime Databasecom.firebaseui:firebase-ui-database
is the FirebaseUI Database library which provides UI bindings to be used in conjunction with the above libraryThe official Firebase SDK libraries provide the required functions for developing with Firebase.
Whereas FirebaseUI libraries make it simple to bind Firebase features to your app's UI. Therefore, you only need to include FirebaseUI libraries if you intend to use the additional functionality provided by them.
compile com.google.firebase:firebase-database:'version'
is the dependency for Firebase Realtime Database
compile com.firebaseui:firebase-ui-database:'version'
is the dependency for FirebaseUI ( an open-source library for Android that allows you to quickly connect common UI elements to Firebase API).
You don't need to add FirebaseUI if you don't want to use the UI Bindings for Firebase it offers
PS: if you have update gradle to 3.0.0
, please use implementation
instead of compile
for dependecies