Skip to content

Commit 65a7733

Browse files
Revert "feat(ai-logic): add a SVG generator quickstart that uses Gemini 3 Flash Preview (firebase#2746)"
This reverts commit b3cc540.
1 parent b534945 commit 65a7733

6 files changed

Lines changed: 2 additions & 244 deletions

File tree

firebase-ai/app/build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ dependencies {
8181
implementation(platform(libs.firebase.bom))
8282
implementation(libs.firebase.ai)
8383

84-
// Image loading
85-
implementation(libs.coil3.coil.compose)
86-
implementation(libs.coil.network.okhttp)
87-
implementation(libs.coil.svg)
88-
8984
testImplementation(libs.junit)
9085
androidTestImplementation(libs.androidx.junit)
9186
androidTestImplementation(libs.androidx.espresso.core)

firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/FirebaseAISamples.kt

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -408,28 +408,5 @@ val FIREBASE_AI_SAMPLES = listOf(
408408
thinkingBudget = -1 // Dynamic Thinking
409409
}
410410
}
411-
),
412-
Sample(
413-
title = "SVG Generator",
414-
description = "Use Gemini 3 Flash preview to create SVG illustrations",
415-
navRoute = "svg",
416-
categories = listOf(Category.IMAGE, Category.TEXT),
417-
initialPrompt = content {
418-
text(
419-
"a kitten"
420-
)
421-
},
422-
generationConfig = generationConfig {
423-
thinkingConfig {
424-
thinkingBudget = -1
425-
}
426-
},
427-
systemInstructions = content { text("""
428-
You are an expert at turning image prompts into SVG code. When given a prompt,
429-
use your creativity to code a 800x600 SVG rendering of it.
430-
Always add viewBox="0 0 800 600" to the root svg tag. Do
431-
not import external assets, they won't work. Return ONLY the SVG code, nothing else,
432-
no commentary.
433-
""".trimIndent()) }
434-
),
411+
)
435412
)

firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/MainActivity.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ import com.google.firebase.quickstart.ai.feature.live.StreamRealtimeVideoRoute
3636
import com.google.firebase.quickstart.ai.feature.live.StreamRealtimeVideoScreen
3737
import com.google.firebase.quickstart.ai.feature.media.imagen.ImagenRoute
3838
import com.google.firebase.quickstart.ai.feature.media.imagen.ImagenScreen
39-
import com.google.firebase.quickstart.ai.feature.svg.SvgRoute
40-
import com.google.firebase.quickstart.ai.feature.svg.SvgScreen
4139
import com.google.firebase.quickstart.ai.feature.text.ChatRoute
4240
import com.google.firebase.quickstart.ai.feature.text.ChatScreen
4341
import com.google.firebase.quickstart.ai.feature.text.TextGenRoute
@@ -49,6 +47,7 @@ class MainActivity : ComponentActivity() {
4947
@OptIn(ExperimentalMaterial3Api::class)
5048
override fun onCreate(savedInstanceState: Bundle?) {
5149
super.onCreate(savedInstanceState)
50+
5251
enableEdgeToEdge()
5352
catImage = BitmapFactory.decodeResource(applicationContext.resources, R.drawable.cat)
5453
setContent {
@@ -99,9 +98,6 @@ class MainActivity : ComponentActivity() {
9998
"text" -> {
10099
navController.navigate(TextGenRoute(it.id))
101100
}
102-
"svg" -> {
103-
navController.navigate(SvgRoute(it.id))
104-
}
105101
}
106102
}
107103
)
@@ -129,9 +125,6 @@ class MainActivity : ComponentActivity() {
129125
composable<TextGenRoute> {
130126
TextGenScreen()
131127
}
132-
composable<SvgRoute> {
133-
SvgScreen()
134-
}
135128
}
136129
}
137130
}

firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/feature/svg/SvgScreen.kt

Lines changed: 0 additions & 131 deletions
This file was deleted.

firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/feature/svg/SvgViewModel.kt

Lines changed: 0 additions & 72 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ activityCompose = "1.12.1"
33
agp = "8.13.2"
44
camerax = "1.5.2"
55
coilCompose = "2.7.0"
6-
coil3Compose = "3.3.0"
76
composeBom = "2025.12.00"
87
composeNavigation = "2.9.6"
98
coreKtx = "1.17.0"
@@ -45,9 +44,6 @@ androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
4544
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
4645
androidx-webkit = { module = "androidx.webkit:webkit", version.ref = "webkit" }
4746
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coilCompose" }
48-
coil-network-okhttp = { module = "io.coil-kt.coil3:coil-network-okhttp", version.ref = "coil3Compose" }
49-
coil-svg = { module = "io.coil-kt.coil3:coil-svg", version.ref = "coil3Compose" }
50-
coil3-coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil3Compose" }
5147
compose-navigation = { group = "androidx.navigation", name = "navigation-compose", version.ref = "composeNavigation"}
5248
firebase-ai = { module = "com.google.firebase:firebase-ai" }
5349
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebaseBom" }

0 commit comments

Comments
 (0)