diff --git a/.editorconfig b/.editorconfig index d2ff04496..093f3a5ed 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,2 +1,3 @@ [*.{java,kt}] max_line_length = 120 +indent_size = 2 diff --git a/build.gradle.kts b/build.gradle.kts index 0eb3b5a08..94400139b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,6 +10,7 @@ plugins { id("com.google.firebase.firebase-perf") version "1.4.2" apply false id("androidx.navigation.safeargs") version "2.9.0" apply false id("com.github.ben-manes.versions") version "0.52.0" apply true + alias(libs.plugins.composeCompiler) apply false } allprojects { diff --git a/firebase-ai/.gitignore b/firebase-ai/.gitignore new file mode 100644 index 000000000..42afabfd2 --- /dev/null +++ b/firebase-ai/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/firebase-ai/build.gradle.kts b/firebase-ai/build.gradle.kts new file mode 100644 index 000000000..cdec5d4a3 --- /dev/null +++ b/firebase-ai/build.gradle.kts @@ -0,0 +1,62 @@ +plugins { + alias(libs.plugins.androidApplication) + alias(libs.plugins.jetbrainsKotlinAndroid) + alias(libs.plugins.composeCompiler) +} + +android { + namespace = "com.google.firebase.example.ai" + compileSdk = 36 + + defaultConfig { + applicationId = "com.google.firebase.example.ai" + minSdk = 21 + targetSdk = 36 + versionCode = 1 + versionName = "1.0" + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } + kotlinOptions { + jvmTarget = "11" + } + buildFeatures { + compose = true + } +} + +dependencies { + + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.lifecycle.runtime.ktx) + implementation(libs.androidx.activity.compose) + implementation(platform(libs.androidx.compose.bom)) + implementation(libs.androidx.ui) + implementation(libs.androidx.ui.graphics) + implementation(libs.androidx.ui.tooling.preview) + implementation(libs.androidx.material3) + + implementation(libs.firebase.ai) + + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) + androidTestImplementation(platform(libs.androidx.compose.bom)) + androidTestImplementation(libs.androidx.ui.test.junit4) + debugImplementation(libs.androidx.ui.tooling) + debugImplementation(libs.androidx.ui.test.manifest) +} \ No newline at end of file diff --git a/firebase-ai/proguard-rules.pro b/firebase-ai/proguard-rules.pro new file mode 100644 index 000000000..481bb4348 --- /dev/null +++ b/firebase-ai/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/firebase-ai/src/main/AndroidManifest.xml b/firebase-ai/src/main/AndroidManifest.xml new file mode 100644 index 000000000..b33bbe1f4 --- /dev/null +++ b/firebase-ai/src/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/firebase-ai/src/main/java/com/google/firebase/example/ai/MainActivity.kt b/firebase-ai/src/main/java/com/google/firebase/example/ai/MainActivity.kt new file mode 100644 index 000000000..c7efba560 --- /dev/null +++ b/firebase-ai/src/main/java/com/google/firebase/example/ai/MainActivity.kt @@ -0,0 +1,47 @@ +package com.google.firebase.example.ai + +import android.os.Bundle +import androidx.activity.ComponentActivity +import androidx.activity.compose.setContent +import androidx.activity.enableEdgeToEdge +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.padding +import androidx.compose.material3.Scaffold +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.tooling.preview.Preview +import com.google.firebase.example.ai.ui.theme.SnippetsandroidTheme + +class MainActivity : ComponentActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + enableEdgeToEdge() + setContent { + SnippetsandroidTheme { + Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding -> + Greeting( + name = "Android", + modifier = Modifier.padding(innerPadding) + ) + } + } + } + } +} + +@Composable +fun Greeting(name: String, modifier: Modifier = Modifier) { + Text( + text = "Hello $name!", + modifier = modifier + ) +} + +@Preview(showBackground = true) +@Composable +fun GreetingPreview() { + SnippetsandroidTheme { + Greeting("Android") + } +} \ No newline at end of file diff --git a/firebase-ai/src/main/java/com/google/firebase/example/ai/googleai/FirebaseAILogic.kt b/firebase-ai/src/main/java/com/google/firebase/example/ai/googleai/FirebaseAILogic.kt new file mode 100644 index 000000000..b9d698447 --- /dev/null +++ b/firebase-ai/src/main/java/com/google/firebase/example/ai/googleai/FirebaseAILogic.kt @@ -0,0 +1,19 @@ +package com.google.firebase.example.ai.googleai + +import com.google.firebase.Firebase +import com.google.firebase.ai.ai +import com.google.firebase.ai.type.GenerativeBackend + +class FirebaseAILogic { + + private fun initialization() { + // [START initialize_googleai_and_model] + // Initialize the Gemini Developer API backend service + // Create a `GenerativeModel` instance with a model that supports your use case + val model = Firebase.ai(backend = GenerativeBackend.googleAI()) + .generativeModel("gemini-2.0-flash") + // [END initialize_googleai_and_model] + } + + +} diff --git a/firebase-ai/src/main/java/com/google/firebase/example/ai/sendrequests/GenerateMultimodal.kt b/firebase-ai/src/main/java/com/google/firebase/example/ai/sendrequests/GenerateMultimodal.kt new file mode 100644 index 000000000..4370ba52c --- /dev/null +++ b/firebase-ai/src/main/java/com/google/firebase/example/ai/sendrequests/GenerateMultimodal.kt @@ -0,0 +1,270 @@ +package com.google.firebase.example.ai.sendrequests + +import android.content.Context +import android.content.res.Resources +import android.graphics.Bitmap +import android.graphics.BitmapFactory +import android.net.Uri +import android.util.Log +import com.google.firebase.ai.GenerativeModel +import com.google.firebase.ai.type.content +import com.google.firebase.example.ai.R + +class GenerateMultimodal( + private val applicationContext: Context, + private val resources: Resources, + private val model: GenerativeModel, +) { + + private val TAG = "GenerateMultimodal" + + private suspend fun audioNonStreaming(audioUri: Uri) { + // [START multimodal_audio_non_streaming] + val contentResolver = applicationContext.contentResolver + + val inputStream = contentResolver.openInputStream(audioUri) + + if (inputStream != null) { // Check if the audio loaded successfully + inputStream.use { stream -> + val bytes = stream.readBytes() + + // Provide a prompt that includes the audio specified above and text + val prompt = content { + inlineData(bytes, "audio/mpeg") // Specify the appropriate audio MIME type + text("Transcribe what's said in this audio recording.") + } + + // To generate text output, call `generateContent` with the prompt + val response = model.generateContent(prompt) + + // Log the generated text, handling the case where it might be null + Log.d(TAG, response.text ?: "") + } + } else { + Log.e(TAG, "Error getting input stream for audio.") + // Handle the error appropriately + } + // [END multimodal_audio_non_streaming] + } + + private suspend fun audioStreaming(audioUri: Uri) { + // [START multimodal_audio_streaming] + val contentResolver = applicationContext.contentResolver + + val inputStream = contentResolver.openInputStream(audioUri) + + if (inputStream != null) { // Check if the audio loaded successfully + inputStream.use { stream -> + val bytes = stream.readBytes() + + // Provide a prompt that includes the audio specified above and text + val prompt = content { + inlineData(bytes, "audio/mpeg") // Specify the appropriate audio MIME type + text("Transcribe what's said in this audio recording.") + } + + // To stream generated text output, call `generateContentStream` with the prompt + var fullResponse = "" + model.generateContentStream(prompt).collect { chunk -> + // Log the generated text, handling the case where it might be null + Log.d(TAG, chunk.text ?: "") + fullResponse += chunk.text ?: "" + } + } + } else { + Log.e(TAG, "Error getting input stream for audio.") + // Handle the error appropriately + } + // [END multimodal_audio_streaming] + } + + private suspend fun multiImagesNonStreaming() { + // [START multimodal_images_non_streaming] + // Loads an image from the app/res/drawable/ directory + val bitmap1: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.sparky) + val bitmap2: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.sparky_eats_pizza) + + // Provide a prompt that includes the images specified above and text + val prompt = content { + image(bitmap1) + image(bitmap2) + text("What is different between these pictures?") + } + + // To generate text output, call generateContent with the prompt + val response = model.generateContent(prompt) + print(response.text) + // [END multimodal_images_non_streaming] + } + + private suspend fun multiImagesStreaming() { + // [START multimodal_images_streaming] + // Loads an image from the app/res/drawable/ directory + val bitmap1: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.sparky) + val bitmap2: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.sparky_eats_pizza) + + // Provide a prompt that includes the images specified above and text + val prompt = content { + image(bitmap1) + image(bitmap2) + text("What's different between these pictures?") + } + + // To stream generated text output, call generateContentStream with the prompt + var fullResponse = "" + model.generateContentStream(prompt).collect { chunk -> + print(chunk.text) + fullResponse += chunk.text + } + // [END multimodal_images_streaming] + } + + private suspend fun oneImageNonStreaming() { + // [START multimodal_one_image_non_streaming] + // Loads an image from the app/res/drawable/ directory + val bitmap: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.sparky) + + // Provide a prompt that includes the image specified above and text + val prompt = content { + image(bitmap) + text("What developer tool is this mascot from?") + } + + // To generate text output, call generateContent with the prompt + val response = model.generateContent(prompt) + print(response.text) + // [END multimodal_one_image_non_streaming] + } + + private suspend fun oneImageStreaming() { + // [START multimodal_one_image_streaming] + // Loads an image from the app/res/drawable/ directory + val bitmap: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.sparky) + + // Provide a prompt that includes the image specified above and text + val prompt = content { + image(bitmap) + text("What developer tool is this mascot from?") + } + + // To stream generated text output, call generateContentStream with the prompt + var fullResponse = "" + model.generateContentStream(prompt).collect { chunk -> + print(chunk.text) + fullResponse += chunk.text + } + // [END multimodal_one_image_streaming] + } + + private suspend fun onePdfNonStreaming(pdfUri: Uri) { + // [START multimodal_one_pdf_non_streaming] + val contentResolver = applicationContext.contentResolver + + // Provide the URI for the PDF file you want to send to the model + val inputStream = contentResolver.openInputStream(pdfUri) + + if (inputStream != null) { // Check if the PDF file loaded successfully + inputStream.use { stream -> + // Provide a prompt that includes the PDF file specified above and text + val prompt = content { + inlineData( + bytes = stream.readBytes(), + mimeType = "application/pdf" // Specify the appropriate PDF file MIME type + ) + text("Summarize the important results in this report.") + } + + // To generate text output, call `generateContent` with the prompt + val response = model.generateContent(prompt) + + // Log the generated text, handling the case where it might be null + Log.d(TAG, response.text ?: "") + } + } else { + Log.e(TAG, "Error getting input stream for file.") + // Handle the error appropriately + } + // [END multimodal_one_pdf_non_streaming] + } + + private suspend fun onePdfStreaming(pdfUri: Uri) { + // [START multimodal_one_pdf_streaming] + val contentResolver = applicationContext.contentResolver + + // Provide the URI for the PDF you want to send to the model + val inputStream = contentResolver.openInputStream(pdfUri) + + if (inputStream != null) { // Check if the PDF file loaded successfully + inputStream.use { stream -> + // Provide a prompt that includes the PDF file specified above and text + val prompt = content { + inlineData( + bytes = stream.readBytes(), + mimeType = "application/pdf" // Specify the appropriate PDF file MIME type + ) + text("Summarize the important results in this report.") + } + + // To stream generated text output, call `generateContentStream` with the prompt + var fullResponse = "" + model.generateContentStream(prompt).collect { chunk -> + // Log the generated text, handling the case where it might be null + val chunkText = chunk.text ?: "" + Log.d(TAG, chunkText) + fullResponse += chunkText + } + } + } else { + Log.e(TAG, "Error getting input stream for file.") + // Handle the error appropriately + } + // [END multimodal_one_pdf_streaming] + } + + private suspend fun videoNonStreaming(videoUri: Uri) { + // [START multimodal_video_non_streaming] + val contentResolver = applicationContext.contentResolver + contentResolver.openInputStream(videoUri).use { stream -> + stream?.let { + val bytes = stream.readBytes() + + // Provide a prompt that includes the video specified above and text + val prompt = content { + inlineData(bytes, "video/mp4") + text("What is in the video?") + } + + // To generate text output, call generateContent with the prompt + val response = model.generateContent(prompt) + Log.d(TAG, response.text ?: "") + } + } + // [END multimodal_video_non_streaming] + } + + private suspend fun videoStreaming(videoUri: Uri) { + // [START multimodal_video_streaming] + val contentResolver = applicationContext.contentResolver + contentResolver.openInputStream(videoUri).use { stream -> + stream?.let { + val bytes = stream.readBytes() + + // Provide a prompt that includes the video specified above and text + val prompt = content { + inlineData(bytes, "video/mp4") + text("What is in the video?") + } + + // To stream generated text output, call generateContentStream with the prompt + var fullResponse = "" + model.generateContentStream(prompt).collect { chunk -> + Log.d(TAG, chunk.text ?: "") + fullResponse += chunk.text + } + } + } + // [END multimodal_video_streaming] + } + + +} \ No newline at end of file diff --git a/firebase-ai/src/main/java/com/google/firebase/example/ai/sendrequests/GenerateText.kt b/firebase-ai/src/main/java/com/google/firebase/example/ai/sendrequests/GenerateText.kt new file mode 100644 index 000000000..71389e636 --- /dev/null +++ b/firebase-ai/src/main/java/com/google/firebase/example/ai/sendrequests/GenerateText.kt @@ -0,0 +1,33 @@ +package com.google.firebase.example.ai.sendrequests + +import com.google.firebase.ai.GenerativeModel + +class GenerateText( + private val model: GenerativeModel +) { + + private suspend fun textOnlyNonStreaming() { + // [START text_only_non_streaming] + // Provide a prompt that contains text + val prompt = "Write a story about a magic backpack." + + // To generate text output, call generateContent with the text input + val response = model.generateContent(prompt) + print(response.text) + // [END text_only_non_streaming] + } + + private suspend fun textOnlyStreaming() { + // [START text_only_streaming] + // Provide a prompt that includes only text + val prompt = "Write a story about a magic backpack." + + // To stream generated text output, call generateContentStream and pass in the prompt + var response = "" + model.generateContentStream(prompt).collect { chunk -> + print(chunk.text) + response += chunk.text + } + // [END text_only_streaming] + } +} \ No newline at end of file diff --git a/firebase-ai/src/main/java/com/google/firebase/example/ai/ui/theme/Color.kt b/firebase-ai/src/main/java/com/google/firebase/example/ai/ui/theme/Color.kt new file mode 100644 index 000000000..096d94204 --- /dev/null +++ b/firebase-ai/src/main/java/com/google/firebase/example/ai/ui/theme/Color.kt @@ -0,0 +1,11 @@ +package com.google.firebase.example.ai.ui.theme + +import androidx.compose.ui.graphics.Color + +val Purple80 = Color(0xFFD0BCFF) +val PurpleGrey80 = Color(0xFFCCC2DC) +val Pink80 = Color(0xFFEFB8C8) + +val Purple40 = Color(0xFF6650a4) +val PurpleGrey40 = Color(0xFF625b71) +val Pink40 = Color(0xFF7D5260) \ No newline at end of file diff --git a/firebase-ai/src/main/java/com/google/firebase/example/ai/ui/theme/Theme.kt b/firebase-ai/src/main/java/com/google/firebase/example/ai/ui/theme/Theme.kt new file mode 100644 index 000000000..6a1a99b36 --- /dev/null +++ b/firebase-ai/src/main/java/com/google/firebase/example/ai/ui/theme/Theme.kt @@ -0,0 +1,58 @@ +package com.google.firebase.example.ai.ui.theme + +import android.app.Activity +import android.os.Build +import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.darkColorScheme +import androidx.compose.material3.dynamicDarkColorScheme +import androidx.compose.material3.dynamicLightColorScheme +import androidx.compose.material3.lightColorScheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.platform.LocalContext + +private val DarkColorScheme = darkColorScheme( + primary = Purple80, + secondary = PurpleGrey80, + tertiary = Pink80 +) + +private val LightColorScheme = lightColorScheme( + primary = Purple40, + secondary = PurpleGrey40, + tertiary = Pink40 + + /* Other default colors to override + background = Color(0xFFFFFBFE), + surface = Color(0xFFFFFBFE), + onPrimary = Color.White, + onSecondary = Color.White, + onTertiary = Color.White, + onBackground = Color(0xFF1C1B1F), + onSurface = Color(0xFF1C1B1F), + */ +) + +@Composable +fun SnippetsandroidTheme( + darkTheme: Boolean = isSystemInDarkTheme(), + // Dynamic color is available on Android 12+ + dynamicColor: Boolean = true, + content: @Composable () -> Unit +) { + val colorScheme = when { + dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { + val context = LocalContext.current + if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context) + } + + darkTheme -> DarkColorScheme + else -> LightColorScheme + } + + MaterialTheme( + colorScheme = colorScheme, + typography = Typography, + content = content + ) +} \ No newline at end of file diff --git a/firebase-ai/src/main/java/com/google/firebase/example/ai/ui/theme/Type.kt b/firebase-ai/src/main/java/com/google/firebase/example/ai/ui/theme/Type.kt new file mode 100644 index 000000000..11b9b2a13 --- /dev/null +++ b/firebase-ai/src/main/java/com/google/firebase/example/ai/ui/theme/Type.kt @@ -0,0 +1,34 @@ +package com.google.firebase.example.ai.ui.theme + +import androidx.compose.material3.Typography +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.FontFamily +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.sp + +// Set of Material typography styles to start with +val Typography = Typography( + bodyLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 16.sp, + lineHeight = 24.sp, + letterSpacing = 0.5.sp + ) + /* Other default text styles to override + titleLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 22.sp, + lineHeight = 28.sp, + letterSpacing = 0.sp + ), + labelSmall = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Medium, + fontSize = 11.sp, + lineHeight = 16.sp, + letterSpacing = 0.5.sp + ) + */ +) \ No newline at end of file diff --git a/firebase-ai/src/main/java/com/google/firebase/example/ai/vertexai/FirebaseAILogic.kt b/firebase-ai/src/main/java/com/google/firebase/example/ai/vertexai/FirebaseAILogic.kt new file mode 100644 index 000000000..832816e07 --- /dev/null +++ b/firebase-ai/src/main/java/com/google/firebase/example/ai/vertexai/FirebaseAILogic.kt @@ -0,0 +1,18 @@ +package com.google.firebase.example.ai.vertexai + +import com.google.firebase.Firebase +import com.google.firebase.ai.ai +import com.google.firebase.ai.type.GenerativeBackend + +class FirebaseAILogic { + + private fun initialization() { + // [START initialize_vertexai_and_model] + // Initialize the Vertex AI Gemini API backend service + // Create a `GenerativeModel` instance with a model that supports your use case + val model = Firebase.ai(backend = GenerativeBackend.vertexAI()) + .generativeModel("gemini-2.0-flash") + // [END initialize_vertexai_and_model] + } + +} diff --git a/firebase-ai/src/main/res/drawable-v24/ic_launcher_foreground.xml b/firebase-ai/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 000000000..2b068d114 --- /dev/null +++ b/firebase-ai/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/firebase-ai/src/main/res/drawable/ic_launcher_background.xml b/firebase-ai/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 000000000..07d5da9cb --- /dev/null +++ b/firebase-ai/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/firebase-ai/src/main/res/drawable/sparky.xml b/firebase-ai/src/main/res/drawable/sparky.xml new file mode 100644 index 000000000..07d5da9cb --- /dev/null +++ b/firebase-ai/src/main/res/drawable/sparky.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/firebase-ai/src/main/res/drawable/sparky_eats_pizza.xml b/firebase-ai/src/main/res/drawable/sparky_eats_pizza.xml new file mode 100644 index 000000000..07d5da9cb --- /dev/null +++ b/firebase-ai/src/main/res/drawable/sparky_eats_pizza.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/firebase-ai/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/firebase-ai/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 000000000..6f3b755bf --- /dev/null +++ b/firebase-ai/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/firebase-ai/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/firebase-ai/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 000000000..6f3b755bf --- /dev/null +++ b/firebase-ai/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/firebase-ai/src/main/res/mipmap-hdpi/ic_launcher.webp b/firebase-ai/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 000000000..c209e78ec Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/firebase-ai/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/firebase-ai/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 000000000..b2dfe3d1b Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/firebase-ai/src/main/res/mipmap-mdpi/ic_launcher.webp b/firebase-ai/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 000000000..4f0f1d64e Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/firebase-ai/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/firebase-ai/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 000000000..62b611da0 Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/firebase-ai/src/main/res/mipmap-xhdpi/ic_launcher.webp b/firebase-ai/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 000000000..948a3070f Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/firebase-ai/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/firebase-ai/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 000000000..1b9a6956b Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/firebase-ai/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/firebase-ai/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 000000000..28d4b77f9 Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/firebase-ai/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/firebase-ai/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 000000000..9287f5083 Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/firebase-ai/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/firebase-ai/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 000000000..aa7d6427e Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/firebase-ai/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/firebase-ai/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 000000000..9126ae37c Binary files /dev/null and b/firebase-ai/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/firebase-ai/src/main/res/values/colors.xml b/firebase-ai/src/main/res/values/colors.xml new file mode 100644 index 000000000..f8c6127d3 --- /dev/null +++ b/firebase-ai/src/main/res/values/colors.xml @@ -0,0 +1,10 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/firebase-ai/src/main/res/values/strings.xml b/firebase-ai/src/main/res/values/strings.xml new file mode 100644 index 000000000..8144fcbc4 --- /dev/null +++ b/firebase-ai/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + firebase-ai + \ No newline at end of file diff --git a/firebase-ai/src/main/res/values/themes.xml b/firebase-ai/src/main/res/values/themes.xml new file mode 100644 index 000000000..db0e70eb6 --- /dev/null +++ b/firebase-ai/src/main/res/values/themes.xml @@ -0,0 +1,5 @@ + + + +