🚀 An open-source Android application demonstrating the integration of Google's Generative AI (Gemini API) using the com.google.ai.client.generativeai
SDK.
- Language: Kotlin
- Architecture: Clean Architecture
- UI Framework: Jetpack Compose with Material Design
- AI Integration: Google's Generative AI via
com.google.ai.client.generativeai
SDK
- Android Studio Flamingo or later
- Android SDK 33+
- Google AI Studio API Key for Gemini API
-
Clone the Repository:
git clone https://github.com/anandmali/Translator.git cd Translator
-
Obtain Gemini API Key:
- Visit Google AI Studio
- Create a new project and generate an API key
-
Configure API Key:
-
Create a
local.properties
file in the root directory -
Add the following line:
GEMINI_API_KEY=your_api_key_here
-
-
Build and Run:
- Open the project in Android Studio
- Sync Gradle and run the app on an emulator or physical device
The com.google.ai.client.generativeai
SDK is intended for prototyping purposes. For production applications, it's recommended to use the Vertex AI in Firebase SDK, which offers enhanced security features, including:
- Firebase App Check: Protects your API from abuse by unauthorized clients.
- Cloud Storage Integration: Handles large media files efficiently.
Learn more about transitioning to Vertex AI in Firebase:
Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.