FirebaseSignInWithGoogle app it's written in Kotlin and shows a simple solution for implementing Firebase Authentication with Google, using Jetpack Compose on Android.

Overview

FirebaseSignInWithGoogle

It's an app built with Kotlin that shows how to authenticate users with Firebase using Android Architecture Components and the MVVM Architecture Pattern. For the UI it uses Jetpack Compose, Android's modern toolkit for building native UI.

alt text

Below you can find the docs for each tehnology that is used in this app:

Firebase Products:

Android Architecture Components:

Dependency Injection:

Asynchronous Programming:

Other Android Components:


This repo represents the code for following article writen on the Medium publication:

See it also on youtube:

  • //

If you download or clone this repo, in order to make it work, you should follow the instructions given in the official documentation regarding on how to add Firebase to your project.

License

The code in this project is licensed under the Apache License 2.0.

Copyright 2018 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Disclaimer

  • This is not an officially supported Google product.
You might also like...
Pokedex Compose is an independent re-write of a demo application by the name of Pokedex, but written in jetpack compose.
Pokedex Compose is an independent re-write of a demo application by the name of Pokedex, but written in jetpack compose.

Pokedex Compose Pokedex Compose is an independent re-write of a similar project by the name of Pokedex. I am recreating the UI but I am doing it using

Sample app that shows how to create a bitmap from a Jetpack composable
Sample app that shows how to create a bitmap from a Jetpack composable

Creating Bitmaps From Jetpack Composables This app demonstrates how to create a bitmap from a Jetpack composable without the need to display the compo

A simple web app that shows holiday in Estonia

EstoHoli A simple android application that shows holiday in Estonia Built With Android Studio, Kotlin & XML Dependencies RXjava Gson Okhttp BootstrapA

List-programminglanguage-compose - Simple implementation of a list of programming languages using LazyColumn and Coil in Jetpack Compose A collection of animations, compositions, UIs using Jetpack Compose. You can say Jetpack Compose cookbook or play-ground if you want!
A collection of animations, compositions, UIs using Jetpack Compose. You can say Jetpack Compose cookbook or play-ground if you want!

Why Not Compose! A collection of animations, compositions, UIs using Jetpack Compose. You can say Jetpack Compose cookbook or play-ground if you want!

Jetpack-Compose-Demo - Instagram Profile UI using Jetpack Compose
Jetpack-Compose-Demo - Instagram Profile UI using Jetpack Compose

Jetpack-Compose-Demo Instagram Profile UI using Jetpack Compose

Morph is an Android library, written in Kotlin, built to work together with Jetpack Compose.
Morph is an Android library, written in Kotlin, built to work together with Jetpack Compose.

Morph Morph is an Android library, written in Kotlin, built to work together with Jetpack Compose. It allows you to transition any view to another vie

Yet another ToDo app, but the UI completely written in Jetpack Compose!
Yet another ToDo app, but the UI completely written in Jetpack Compose!

Yet another ToDo app, but the UI completely written in Jetpack Compose!

Dynamic Badge with customizable features as max number before displaying with +, color, shadow, border, corner radius, font properties and more written with Jetpack Compose
Dynamic Badge with customizable features as max number before displaying with +, color, shadow, border, corner radius, font properties and more written with Jetpack Compose

✏️📌 Dynamic Badge with customizable features as max number before displaying with +, color, shadow, border, corner radius, font properties and more written with Jetpack Compose. Displays numbers either in circle or rounded rectangle shape based on badge count and selected threshold to transform from circle to rounded rectangle.

Comments
  • Question about sign up request

    Question about sign up request

    First off, great article! I would like to ask--what if I get the same ApiException: 16: Cannot find a matching credential. when launching the sign-up request? I followed your guide on my app and when I got that error on sign in request, I launched the sign up request, but still got the same error.

    opened by alvindizon 4
  • Not working if compile in release config

    Not working if compile in release config

    when I compile the release, it doesn´t work.

    Im sure I´m missing something from firebase configuration or similar.

    I´ll delete the issue if I find the solution, any suggestion is more than welcome

    Thanks!!

    opened by OlegarioLopez 1
  • Error trying to launch the code on Android Studio

    Error trying to launch the code on Android Studio

    Hi Alex! I was trying to run the code on this repo - without any editing on my part - but I'm getting the following Error.

    "Error type 3 Error: Activity class {ro.alexmamo.firebasesigninwithgoogle/ro.alexmamo.firebasesigninwithgoogle.presentation.MainActivity} does not exist"

    I don't have any clue about why I'm getting this error. I hope you could shed some light on this issue and point me in the right direction to be able to run your code. Thanks in advance, FirebaseSignInwithGoogle_Error_Type_3_Activity_Class_Does_Not_Exist_2022-08-31 19-26-38

    opened by Mulodji 1
  • Exception when running on Android TV: Missing Feature{name=auth_api_credentials_begin_sign_in, version=7}

    Exception when running on Android TV: Missing Feature{name=auth_api_credentials_begin_sign_in, version=7}

    Thanks for providing this sample. I've cloned the project and got this working on several devices. My goal is to use the SignIn on the Android TV platform. Unfortunatly when running this on a Android TV emulator I get the following exceptions in my logcat:

    com.google.android.gms.internal.auth-api.zbaz could not execute call because it requires feature (auth_api_credentials_begin_sign_in, 7). Missing Feature{name=auth_api_credentials_begin_sign_in, version=7}

    Does Firebase not support Android TV or is there something wrong in my emulator setup? Regards, Peter

    opened by peterhav 9
Owner
Alex
Software Engineer / Google Developer Expert for Firebase
Alex
Facebook clone built using Jetpack Compose, Firebase Authentication and Firebase Firestore.

facebook-compose Facebook clone built using Jetpack Compose, Firebase Authentication and Firebase Firestore. Setup Create a Firebase project and add t

Alex Styl 27 Dec 3, 2022
Luis David Orellana 11 Jan 1, 2023
A simple authentication application using Jetpack compose to illustrate signin and sign up using Mvvm, Kotlin and jetpack compose

Authentication A simple authentication application using Jetpack compose to illustrate signin and sign up using Mvvm, Kotlin and jetpack compose Scree

Felix Kariuki 5 Dec 29, 2022
A Simple Blog App using Jetpack Compose, Flow, Navigation Compose, Room and Firebase

BlogCompose A Simple Blog App using Jetpack Compose, Flow, Navigation Compose, Room and Firebase Instructions Download your Firebase configuration fil

null 4 Oct 10, 2022
Jetpack Compose Boids | Flocking Insect 🐜. bird or Fish simulation using Jetpack Compose Desktop 🚀, using Canvas API 🎨

?? ?? ?? Compose flocking Ants(boids) ?? ?? ?? Jetpack compose Boids | Flocking Insect. bird or Fish simulation using Jetpack Compose Desktop ?? , usi

Chetan Gupta 38 Sep 25, 2022
Jetpack-compose-uis - A collection of some UIs using Jetpack Compose. built using Katalog

Jetpack Compose UIs This is a collection of some UIs using Jetpack Compose. It i

Mori Atsushi 3 Dec 15, 2022
This is a sample app(For beginners - App #2) built using Jetpack Compose. It demonstrates the concept of State Hoisting in Jetpack Compose.

JetBMICalculator This is a sample app(For beginners - App #2) built using Jetpack Compose. It demonstrates the concept of State Hoisting in Jetpack Co

BHAVNA THACKER 3 Dec 31, 2022
A LibrePhotos android client written using Jetpack Compose and all the latest Android technologies

UhuruPhotos. A LibrePhotos client UhuruPhotos is an Android client for LibrePhotos written using the latest Android technologies, like Jetpack Compose

Savvas Dalkitsis 190 Jan 3, 2023
🚀 Sample Android Clean Architecture on Rorty App focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack.

Android Clean Architecture Android Clean Architecture in Rorty is a sample project that presents modern, approach to Android application development u

Mr.Sanchez 15 Sep 19, 2022
A simple 'Slide to Unlock' Material widget for Android, written in Jetpack Compose

SlideTodo A simple 'Slide to Unlock' Material widget for Android, written in Jetpack Compose you can find source code here Getting Started allprojects

Nthily 7 Aug 8, 2022