Welcome to the Compose Multiplatform Firebase Firestore repository! This repository showcases a Compose multiplatform project that initializes Firebase and implements Google Sign In on both Android and iOS platforms.
This repository serves as a demonstration of how to modularize a Compose multiplatform project, making it easier to manage and maintain.
To use this project, follow these steps:
- Clone the repository to your local machine.
- Open the project in your preferred IDE.
- Replace the content of the Firebase Google Service files in Android and iOS.
- Use your Client ID and Reversed Client ID in the
Info.plist
file - Run the project on either Android or iOS emulator/device.
androidMain
: Contains Android-specific code for your app.iosApp
: Contains the native iOS project.composeApp
: Contains common code for both platforms using Compose Multiplatform. This directory includes:commonMain
: Shared codebase for Android and iOS.iosMain
: Platform-specific code for iOS using Compose for iOS.
utils
: Utility modules used throughout the project.signin
: Modules related to Google Sign In functionality.
This project demonstrates how to modularize a Compose multiplatform project for better maintainability and code reusability.
To follow a step-by-step guide on how to implement Firebase Google Sign In in a Compose multiplatform project, check out these two articles:
- Part 1: Compose Multiplatform: Getting Started & Initializing Firebase
- Part 2: Compose Multiplatform: Login With Google with 100% Kotlin Code
This project is licensed under the MIT License - see the LICENSE file for details.
- Eury Pérez - Google Developer Expert for Android
Feel free to contribute to this project by opening issues or submitting pull requests!