GetStream/gemini-android

✨ Gemini Android demonstrates Google's Generative AI on Android with Stream Chat SDK for Compose.

What it solves

This project provides a reference implementation for integrating Google's Gemini AI into an Android application. It demonstrates how to combine a generative AI model with a real-time chat infrastructure to create an AI-powered messaging experience.

How it works

The app uses the Gemini API for generative AI capabilities and the Stream Chat SDK for Compose to handle the messaging UI and real-time event handling. It is built using a modern Android architecture following Google's official guidance, utilizing Jetpack Compose for the UI, Hilt for dependency injection, and Kotlin Coroutines for background tasks.

Who it’s for

Android developers who want to learn how to implement generative AI features using the Gemini SDK and build professional chat interfaces using the Stream Chat SDK.

Highlights

  • Gemini API Integration: Demonstrates the use of Google's Generative AI SDK on Android.
  • Real-time Messaging: Uses Stream Chat SDK for Compose to manage the chat system.
  • Modern Android Stack: Implemented with Jetpack Compose, Hilt, Room, and Datastore.
  • Modular Architecture: Uses a modularization strategy to improve reusability and reduce build times.