Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/musaibshabir/gemini_chat_compose
Sample Gemini Chat App
https://github.com/musaibshabir/gemini_chat_compose
android android-application gemini-api hilt jetpack-compose kotlin
Last synced: 19 days ago
JSON representation
Sample Gemini Chat App
- Host: GitHub
- URL: https://github.com/musaibshabir/gemini_chat_compose
- Owner: MusaibShabir
- Created: 2024-09-14T19:50:38.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-09-14T20:03:47.000Z (2 months ago)
- Last Synced: 2024-10-10T14:42:35.528Z (about 1 month ago)
- Topics: android, android-application, gemini-api, hilt, jetpack-compose, kotlin
- Language: Kotlin
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setting Up Your Gemini API Key
This section explains how to set up the **Gemini API key** for the project.
## Obtain a Gemini API Key
1. **Visit the Google Cloud Console**: [https://console.cloud.google.com/](https://console.cloud.google.com/)
2. **Create a new project** or select an existing one where you want to enable the Gemini API.
3. Navigate to the **API Library** and search for "Gemini API".
4. **Enable the Gemini API** for your selected project.
5. Go to the **Credentials** section and create a new API key.## Store Your API Key Securely
1. Locate the `local.properties` file in the root directory of your project.
2. Add the following line to the file, replacing `YOUR_ACTUAL_API_KEY` with the key you just generated:
```bash
geminiApiKey = YOUR_ACTUAL_API_KEY
```## Build and Run
You're all set! Now you can **build and run the application**. The project uses the **Secrets Gradle Plugin** to securely access your API key from the `local.properties` file during the build process.