Skip to content

feat: create Firebase AI quickstart#2667

Merged
thatfiredev merged 52 commits intomasterfrom
rpf/firebase-ai
May 20, 2025
Merged

feat: create Firebase AI quickstart#2667
thatfiredev merged 52 commits intomasterfrom
rpf/firebase-ai

Conversation

@thatfiredev
Copy link
Copy Markdown
Member

@thatfiredev thatfiredev commented May 19, 2025

CI will fail at the moment, since the SDK has not been released yet. I will make sure it's green after the SDK is released and only merge by then.

Fast follows:

  • Add a Function calling example
  • Add a Stream Realtime example

Comment thread ai/app/build.gradle.kts Outdated
Comment thread ai/app/build.gradle.kts
textAlign = TextAlign.End,
modifier = Modifier
.background(backgroundColor.copy(
red = backgroundColor.red * 0.7f,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: create color variables in Color.kt and add the transparency using hex color code.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The backgroundColor property here is dynamic and it changes according to the color set at the OS-level, so it can't really be hardcoded into Color.kt.

    val backgroundColor = when (chatMessage.role) {
        "user" -> MaterialTheme.colorScheme.tertiaryContainer
        else -> MaterialTheme.colorScheme.secondaryContainer
    }

Copy link
Copy Markdown
Contributor

@marinacoelho marinacoelho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking very good! Just left a few comments (not all of them are blockers). We should also add a README before merging it :)

@thatfiredev thatfiredev merged commit 0e37b0b into master May 20, 2025
6 checks passed
@thatfiredev thatfiredev deleted the rpf/firebase-ai branch March 4, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants