firebase / firebase/firebaseopensource.com

Firestore (Android)

Ouverte
#162 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
needs-info
Langage dominant
TypeScript
Étoiles
127
Forks
49
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**Link to project (GitHub)**: https://github.com/natario1/Firestore

**Describe the project in 2-3 sentences**: A lightweight, efficient library to manage Firestore model data as reactive, observable objects that adapt to your Firestore schema and provide type safety and efficiency. Written in Kotlin, with built-in data-binding and `Parcelable` support.

**Why would Firebase developers be interested in this project?**: The library is a needed companion to the official Firestore SDK. It uses annotation processing to generate type-safe, null-safe, efficient (no reflection) objects around your Firestore model. It leverages Kotlin syntax, so declaring a property is as simple as `var name: String by this`.

Controlling the model class lets the engine do many things much more efficiently, for example:
- parsing data from snapshot: the library will cache and reuse as many objects as possible, plus use generated setters instead of reflection
- saving data to server: saves time and bandwidth by keeping track of dirty fields and uploading them, instead of the whole object.

In addition, each model class automatically offers a `@Parcelable` implementation and it works with Android's databinding out of the box, by simply declaring fields as bindable:

```kotlin
@FirestoreClass
class Message : FirestoreDocument() {
// You can use {message.text} and {message.comment} in XML layouts
// and they will be updated automatically when the model changes.
@get:Bindable var text: String by this
@get:Bindable var author: String by this
}
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

L’issue contient une description de soumission de projet pour la bibliothèque Firestore Android, mais ne nomme aucun fichier du dépôt, test ni point d’entrée. Examinez d’abord la gestion existante des soumissions de projets sur firebaseopensource.com et déterminez si ce contenu doit être ajouté ou mis à jour ; le travail est considéré comme terminé lorsque la soumission est représentée conformément au format établi par le site.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
firebase, kotlin
Domaine
content, documentation
Type d'issue
Documentation
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
20/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.