warting / firebase-compose

Firebase Compoe friendly lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maven Central

Firebase Compose

A set of Compose components to make it easier to use firebase in the composable world

Firebase Compose Auth

A jetpack compose module to deal with firebase authentication

How to include in your project

The library is available via MavenCentral:

allprojects {
    repositories {
        // ...
        mavenCentral()
    }
}

Add it to your module dependencies:

dependencies {
    implementation("se.warting.firebase-compose:auth:<latest_version>")
}
Snapshots of the development version are available in Sonatype's snapshots repository.

Sonatype Nexus (Snapshots) Sonatype Nexus (Snapshots) Sonatype Nexus (Snapshots) Sonatype Nexus (Snapshots) Sonatype Nexus (Snapshots)

allprojects {
    repositories {
        // ...
        maven {
            url 'https://oss.sonatype.org/content/repositories/snapshots/'
        }
    }
}

How to use

All you need to do is to call FirebaseComposeAuth:

    FirebaseComposeAuth(
        loggedInContent = { LoggedIn() },
        loggedOutContent = { LoggedOut() }
    )

For a full implementation see: Full sample

Notes

You must install and initiate firebase in your app before using this

About

Firebase Compoe friendly lib

License:MIT License


Languages

Language:Kotlin 98.0%Language:Shell 2.0%