Skip to content

This Android app is built with the latest technologies including Dagger-Hilt, Coil, MVVM architecture, Navigation component and Google Auth, to ensure high performance and user satisfaction.

Notifications You must be signed in to change notification settings

Wit0r/GoogleSignIn-JetpackCompose

Repository files navigation

Google SignIn with Jetpack compose!

Adding Firebase Authentication and google-services.json file to a Jetpack Compose project

To add Firebase Authentication and google-services.json file to a Jetpack Compose project, you will need to follow these steps:

  1. Create a project in the Firebase Console, if you don't already have one.
  2. In the "Add Firebase to your app" section, select the Android platform and enter your package name and app name.
  3. Download the google-services.json file provided by the Firebase Console and place it in the app folder of your Jetpack Compose project.
  4. Add the Firebase Authentication dependency to your app module's build.gradle file:
implementation 'com.google.firebase:firebase-auth-ktx:21.0.1'

Implementation

// Navigation Compose
implementation "androidx.navigation:navigation-compose:2.5.3"

// Dagger - Hilt
implementation "com.google.dagger:hilt-android:2.44.2"
kapt "com.google.dagger:hilt-android-compiler:2.44.2"
kapt 'androidx.hilt:hilt-compiler:1.0.0'
implementation 'androidx.hilt:hilt-navigation-compose:1.0.0'

//Google auth dependency
implementation 'com.google.android.gms:play-services-auth:20.4.1'

// Coil
implementation("io.coil-kt:coil-compose:2.2.2")

Dagger-Hilt

Dagger-Hilt is an Android dependency injection library that helps simplify the setup of dependency injection components and modules in your project. With Jetpack Compose, you can use Dagger-Hilt to inject dependencies into your composition functions, such as ViewModel and other classes required for your UI to function.

Coil

Coil is an Android image loading library that is compatible with Jetpack Compose. With Coil, you can load images from URLs and other resources into composed visual elements, such as Image. Coil offers various configuration options, such as maximum cache size, connection timeout, and other parameters that help improve application performance.

MVVM

The MVVM (Model-View-ViewModel) pattern is an architecture pattern that helps separate the business logic from the UI in an Android application. With Jetpack Compose, you can use the MVVM pattern to manage the UI state and control the business logic in a clear and organized manner.

Navigation

Navigation is an Android navigation library that helps manage the navigation flow between screens of your application. With Jetpack Compose, Navigation is used to manage navigation on composed screens, allowing users to navigate to other screens and go back to the previous screen, while maintaining the integrity of the application's navigation information.




Thank you!

Thank you for using this repository and I hope it has helped you in your project! If you have any further questions or feedback, feel free to reach out.

Enjoy the resources and keep creating amazing projects!

About

This Android app is built with the latest technologies including Dagger-Hilt, Coil, MVVM architecture, Navigation component and Google Auth, to ensure high performance and user satisfaction.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages