{"repo":"skydoves/firebase-android-ktx","free":true,"listed":false,"github":"https://github.com/skydoves/firebase-android-ktx","clone":"git clone https://github.com/skydoves/firebase-android-ktx.git","description":"🔥 Kotlin & Compose-friendly Firebase extensions designed to help you focus on your business logic.","language":"Kotlin","stars":123,"topics":["android","androidx","compose","extension","firebase","jetpack","kotlin","ktx","library","skydoves"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Firebase Android KTX 🔥 Kotlin & Compose-friendly Firebase extensions designed to help you focus on your business logic. - Firebase Realtime Database KTX : Enables observing snapshot data changes as Kotlin Flow with fully customizable serialization, making it easy to adapt the data format to your application's needs. - Firebase Messaging Lifecycle KTX : Provides a lifecycle-aware version of FirebaseMessagingService , allowing you to cancel coroutine tasks within the onNewToken method in accordance with the service's lifecycle, ensuring efficient resource management and preventing leaks. Firebase Realtime Database KTX The Firebase Realtime Database KTX library allows you to observe changes in the Realtime Database as a Flow, with fully customizable serialization options. This makes it easy to handle data streams while adapting the data format to fit your app's needs, ensuring seamless integration with Kotlin and Jetpack Compose. Version Catalog If you're using Version Catalog, you can configure the dependency by adding it to your libs.versions.toml file as follows: Gradle Add the dependency below to your module 's build.gradle.kts file: The Problem The Firebase Realtime Database is primarily based on Java and callback listeners, making it less compatible with Coroutines and Jetpack Compose. Furthermore, since it returns snapshot values in non-JSON formats, handling objects and implementing custom serialization solutions can be challenging, as shown in the example below: The re","default_branch":null,"files":null,"tree":[],"storefront":"/r/skydoves","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/skydoves/firebase-android-ktx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}