From b242385339497377962dea80ed39024817ee99d5 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Thu, 14 Aug 2025 14:19:57 -0400 Subject: [PATCH 1/2] [Ai] Expose `APINotConfiguredException` in the public API The exception was added in #7233 but was mistakenly marked as internal. --- firebase-ai/api.txt | 3 +++ .../src/main/kotlin/com/google/firebase/ai/type/Exceptions.kt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/firebase-ai/api.txt b/firebase-ai/api.txt index 43ee5243d6a..7d4d9e3d2d2 100644 --- a/firebase-ai/api.txt +++ b/firebase-ai/api.txt @@ -157,6 +157,9 @@ package com.google.firebase.ai.java { package com.google.firebase.ai.type { + public final class APINotConfiguredException extends com.google.firebase.ai.type.FirebaseAIException { + } + public final class AudioRecordInitializationFailedException extends com.google.firebase.ai.type.FirebaseAIException { ctor public AudioRecordInitializationFailedException(String message); } diff --git a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Exceptions.kt b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Exceptions.kt index b7f94da44cc..4118afd57c4 100644 --- a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Exceptions.kt +++ b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Exceptions.kt @@ -158,7 +158,7 @@ public class UnsupportedUserLocationException internal constructor(cause: Throwa * [steps](https://firebase.google.com/docs/ai-logic/faq-and-troubleshooting?api=dev#error-genai-config-not-found) * to enable the Gemini Developer API. */ -internal class APINotConfiguredException internal constructor(cause: Throwable? = null) : +public class APINotConfiguredException internal constructor(cause: Throwable? = null) : FirebaseAIException("Gemini Developer API not enabled in Firebase console.", cause) /** From 38deea0ac66601924b9635979108d53a6fe0e2d3 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Date: Thu, 14 Aug 2025 14:26:08 -0400 Subject: [PATCH 2/2] Update version & latestReleasedVersion --- firebase-ai/gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firebase-ai/gradle.properties b/firebase-ai/gradle.properties index 40274ac5e9a..7428e5097cb 100644 --- a/firebase-ai/gradle.properties +++ b/firebase-ai/gradle.properties @@ -12,5 +12,5 @@ # See the License for the specific language governing permissions and # limitations under the License. -version=17.1.0 -latestReleasedVersion=17.0.0 +version=17.2.0 +latestReleasedVersion=17.1.0