Firebase + Kotlin + RxJava + MVP Practical Tips
summary
Settle Up is a production Android app running Firebase since Feb 2016, migrating from App Engine to Realtime Database and using Authentication, Storage, Hosting, Remote Config, Test Lab and Crash Reporting; architecture uses MVP + Loaders so Firebase listeners live in presenters that survive rotation, RxJava wraps Firebase callbacks via synchronous Observable.from APIs to coordinate many callbacks, lists use addListenerForSingleValue for initial load, data is flattened with duplicated m2m relations, arrays are used only when whole objects are overwritten, and old groups are archived to cheaper file storage to control Firebase costs.
AI-written summary · about
