Code Monkey home page Code Monkey logo

FirebaseUI for Android — UI Bindings for Firebase

FirebaseOpensource.com Actions Status

FirebaseUI is an open-source library for Android that allows you to quickly connect common UI elements to Firebase APIs.

A compatible FirebaseUI client is also available for iOS.

Table of contents

  1. Usage
  2. Installation
    1. Upgrading
  3. Dependencies
    1. Compatibility
    2. Upgrading dependencies
  4. Sample App
  5. Snapshot Builds
  6. Contributing
    1. Installing
    2. License agreements
    3. Process

Usage

FirebaseUI has separate modules for using Firebase Realtime Database, Cloud Firestore, Firebase Auth, and Cloud Storage. To get started, see the individual instructions for each module:

Installation

FirebaseUI is published as a collection of libraries separated by the Firebase API they target. Each FirebaseUI library has a transitive dependency on the appropriate Firebase SDK so there is no need to include those separately in your app.

In your app/build.gradle file add a dependency on one of the FirebaseUI libraries.

dependencies {
    // FirebaseUI for Firebase Realtime Database
    implementation 'com.firebaseui:firebase-ui-database:8.0.2'

    // FirebaseUI for Cloud Firestore
    implementation 'com.firebaseui:firebase-ui-firestore:8.0.2'

    // FirebaseUI for Firebase Auth
    implementation 'com.firebaseui:firebase-ui-auth:8.0.2'

    // FirebaseUI for Cloud Storage
    implementation 'com.firebaseui:firebase-ui-storage:8.0.2'
}

If you're including the firebase-ui-auth dependency, there's a little more setup required.

After the project is synchronized, we're ready to start using Firebase functionality in our app.

Upgrading

If you are using an old version of FirebaseUI and upgrading, please see the appropriate migration guide:

Dependencies

FirebaseUI para Android es una biblioteca de código abierto que proporciona vínculos de interfaz de usuario para las APIs de Firebase. Permite conectar rápidamente elementos comunes de la interfaz de usuario a las APIs de Firebase, como la autenticación, la base de datos en tiempo real, Firestore y el almacenamiento en la nube.

Para utilizar FirebaseUI, debes agregar las dependencias correspondientes al archivo  build.gradle  de tu proyecto. Por ejemplo, para usar FirebaseUI para la autenticación de Firebase, puedes agregar la siguiente dependencia:

implementation 'com.firebaseui:firebase-ui-auth:8.0.2'

 También puedes agregar dependencias para otros módulos de FirebaseUI, como FirebaseUI para Firestore, FirebaseUI para la base de datos en tiempo real y FirebaseUI para el almacenamiento en la nube.

Una vez que hayas agregado las dependencias, puedes comenzar a utilizar FirebaseUI siguiendo las instrucciones de uso proporcionadas en la documentación de la biblioteca. Cada módulo tiene sus propias instrucciones y características específicas, por lo que es importante consultar el módulo específico que te interese.

FirebaseUI simplifica la integración de las funcionalidades de Firebase en tu aplicación de Android, permitiéndote crear experiencias de usuario intuitivas y responsivas. Proporciona una forma conveniente de manejar la autenticación de usuarios, las operaciones en la base de datos, el almacenamiento de archivos y más.

Si deseas contribuir al desarrollo de FirebaseUI, puedes encontrar información sobre cómo instalarlo localmente y pautas para contribuir en la documentación de la biblioteca. Recuerda revisar y firmar el Acuerdo de Licencia del Colaborador requerido antes de enviar tus contribuciones.

FirebaseUI para Android está activamente mantenido y respaldado por el equipo de Firebase, lo que te permite aprovechar las potentes funcionalidades de la infraestructura de Firebase y proporcionar una experiencia de usuario elegante y sin problemas en tu aplicación de Android.FirebaseUI para Android es una biblioteca de código abierto que proporciona vínculos de interfaz de usuario para las APIs de Firebase. Permite conectar rápidamente elementos comunes de la interfaz de usuario a las APIs de Firebase, como la autenticación, la base de datos en tiempo real, Firestore y el almacenamiento en la nube.

Para utilizar FirebaseUI, debes agregar las dependencias correspondientes al archivo  build.gradle  de tu proyecto. Por ejemplo, para usar FirebaseUI para la autenticación de Firebase, puedes agregar la siguiente dependencia:

implementation 'com.firebaseui:firebase-ui-auth:8.0.2'

También puedes agregar dependencias para otros módulos de FirebaseUI, como FirebaseUI para Firestore, FirebaseUI para la base de datos en tiempo real y FirebaseUI para el almacenamiento en la nube.

Una vez que hayas agregado las dependencias, puedes comenzar a utilizar FirebaseUI siguiendo las instrucciones de uso proporcionadas en la documentación de la biblioteca. Cada módulo tiene sus propias instrucciones y características específicas, por lo que es importante consultar el módulo específico que te interese.

FirebaseUI simplifica la integración de las funcionalidades de Firebase en tu aplicación de Android, permitiéndote crear experiencias de usuario intuitivas y responsivas. Proporciona una forma conveniente de manejar la autenticación de usuarios, las operaciones en la base de datos, el almacenamiento de archivos y más.

Si deseas contribuir al desarrollo de FirebaseUI, puedes encontrar información sobre cómo instalarlo localmente y pautas para contribuir en la documentación de la biblioteca. Recuerda revisar y firmar el Acuerdo de Licencia del Colaborador requerido antes de enviar tus contribuciones.

FirebaseUI para Android está activamente mantenido y respaldado por el equipo de Firebase, lo que te permite aprovechar las potentes funcionalidades de la infraestructura de Firebase y proporcionar una experiencia de usuario elegante y sin problemas en tu aplicación de Android.

Compatibility with Firebase / Google Play Services libraries

FirebaseUI libraries have the following transitive dependencies on the Firebase SDK:

firebase-ui-auth
|--- com.google.firebase:firebase-auth
|--- com.google.android.gms:play-services-auth

firebase-ui-database
|--- com.google.firebase:firebase-database

firebase-ui-firestore
|--- com.google.firebase:firebase-firestore

firebase-ui-storage
|--- com.google.firebase:firebase-storage

You can see the specific dependencies associated with each release on the Releases page.

Upgrading dependencies

If you would like to use a newer version of one of FirebaseUI's transitive dependencies, such as Firebase, Play services, or the Android support libraries, you need to add explicit implementation declarations in your build.gradle for all of FirebaseUI's dependencies at the version you want to use. Here are some examples listing all of the critical dependencies:

Auth

implementation "com.google.firebase:firebase-auth:$X.Y.Z"
implementation "com.google.android.gms:play-services-auth:$X.Y.Z"

implementation "androidx.lifecycle:lifecycle-extensions:$X.Y.Z"
implementation "androidx.browser:browser:$X.Y.Z"
implementation "androidx.cardview:cardview:$X.Y.Z"
implementation "androidx.constraintlayout:constraintlayout:$X.Y.Z"
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
implementation "com.google.android.material:material:$X.Y.Z"

Firestore

implementation "com.google.firebase:firebase-firestore:$X.Y.Z"

implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
implementation "androidx.recyclerview:recyclerview:$X.Y.Z"

Realtime Database

implementation "com.google.firebase:firebase-database:$X.Y.Z"

implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
implementation "androidx.recyclerview:recyclerview:$X.Y.Z"

Storage

implementation "com.google.firebase:firebase-storage:$X.Y.Z"

implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"

Sample app

There is a sample app in the app/ directory that demonstrates most of the features of FirebaseUI. Load the project in Android Studio and run it on your Android device to see a demonstration.

Before you can run the sample app, you must create a project in the Firebase console. Add an Android app to the project, and copy the generated google-services.json file into the app/ directory. Also enable anonymous authentication for the Firebase project, since some components of the sample app requires it.

If you encounter a version incompatibility error between Android Studio and Gradle while trying to run the sample app, try disabling the Instant Run feature of Android Studio. Alternatively, update Android Studio and Gradle to their latest versions.

A note on importing the project using Android Studio: Using 'Project from Version Control' will not automatically link the project with Gradle (issue #1349). When doing so and opening any build.gradle.kts file, an error shows up: Project 'FirebaseUI-Android' isn't linked with Gradle. To resolve this issue, please git checkout the project manually and import with Import from external model.

Snapshot builds

Like to live on the cutting edge? Want to try the next release of FirebaseUI before anyone else? FirebaseUI hosts "snapshot" builds on oss.jfrog.org.

Just add the following to your build.gradle:

repositories {
  maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }
}

Then you can depend on snapshot versions:

implementation 'com.firebaseui:firebase-ui-auth:$X.Y.Z-SNAPSHOT'

You can see which SNAPSHOT builds are avaiable here: https://oss.jfrog.org/webapp/#/artifacts/browse/tree/General/oss-snapshot-local/com/firebaseui

Snapshot builds come with absolutely no guarantees and we will close any issues asking to troubleshoot a snapshot report unless they identify a bug that should block the release launch. Experiment at your own risk!

Contributing

Installing locally

You can download FirebaseUI and install it locally by cloning this repository and running:

./gradlew :library:prepareArtifacts publishToMavenLocal

Contributor License Agreements

We'd love to accept your sample apps and patches! Before we can take them, we have to jump a couple of legal hurdles.

Please fill out either the individual or corporate Contributor License Agreement (CLA).

  • If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an individual CLA.
  • If you work for a company that wants to allow you to contribute your work, then you'll need to sign a corporate CLA.

Follow either of the two links above to access the appropriate CLA and instructions for how to sign and return it. Once we receive it, we'll be able to accept your pull requests.

Contribution process

  1. Submit an issue describing your proposed change to the repo in question.
  2. The repo owner will respond to your issue promptly.
  3. If your proposed change is accepted, and you haven't already done so, sign a Contributor License Agreement (see details above).
  4. Fork the desired repo, develop, and then test your code changes on the latest dev branch.
  5. Ensure that your code adheres to the existing style of the library to which you are contributing.
  6. Ensure that your code has an appropriate set of unit tests which all pass.
  7. Submit a pull request targeting the latest dev branch.

CD.CER's Projects

.github icon .github

Default configuration for Firebase repos

aboutlibraries icon aboutlibraries

AboutLibraries automatically collects all dependencies and licenses of any gradle project (Kotlin MultiPlatform), and provides easy to integrate UI components for Android and Compose-jb environments

python-devs-ci-images---raw-main-readme.md icon python-devs-ci-images---raw-main-readme.md

Esta es una imagen oficial de Docker que contiene varias versiones estables y en desarrollo de Python. Está basado en [Ubuntu 22.04 LTS](http://releases.ubuntu.com/22.04/). La imagen "activa" (también conocida como "principal") contiene todas las versiones mantenidas actualmente de Python.

termux-app icon termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.