Hi all,
is there any chance to integrate Firebase into a common module, and get dataSnapshot for example:
val postListener = object : ValueEventListener {
override fun onDataChange(dataSnapshot: DataSnapshot) {
}
override fun onCancelled(databaseError: DatabaseError) {
}
}
postReference.addValueEventListener(postListener)
I would like to be a common part of the app, and the parsing object and future data manipulation to be platform-specific.
Thanks