From 0df7cb1861ff9e6657685beaa40baa4a6751016b Mon Sep 17 00:00:00 2001 From: Daymon Date: Tue, 15 Oct 2024 11:51:14 -0500 Subject: [PATCH 1/4] Add missing changelog --- encoders/firebase-encoders-proto/CHANGELOG.md | 2 +- firebase-config/CHANGELOG.md | 2 +- firebase-crashlytics/CHANGELOG.md | 2 +- firebase-dataconnect/CHANGELOG.md | 2 +- firebase-dataconnect/firebase-dataconnect.gradle.kts | 4 ++-- firebase-firestore/CHANGELOG.md | 2 +- firebase-inappmessaging-display/CHANGELOG.md | 2 +- firebase-inappmessaging/CHANGELOG.md | 2 +- firebase-messaging/CHANGELOG.md | 2 +- firebase-ml-modeldownloader/CHANGELOG.md | 2 +- firebase-perf/CHANGELOG.md | 5 +++-- transport/transport-backend-cct/CHANGELOG.md | 2 +- transport/transport-runtime/CHANGELOG.md | 2 +- 13 files changed, 16 insertions(+), 15 deletions(-) diff --git a/encoders/firebase-encoders-proto/CHANGELOG.md b/encoders/firebase-encoders-proto/CHANGELOG.md index 62ae4e68ef4..f4e346bb920 100644 --- a/encoders/firebase-encoders-proto/CHANGELOG.md +++ b/encoders/firebase-encoders-proto/CHANGELOG.md @@ -1,4 +1,4 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). diff --git a/firebase-config/CHANGELOG.md b/firebase-config/CHANGELOG.md index 52652dde7ba..4cb4954ecff 100644 --- a/firebase-config/CHANGELOG.md +++ b/firebase-config/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 22.0.0 * [changed] Bump internal dependencies diff --git a/firebase-crashlytics/CHANGELOG.md b/firebase-crashlytics/CHANGELOG.md index bf67a6d8536..2374ac9f9bb 100644 --- a/firebase-crashlytics/CHANGELOG.md +++ b/firebase-crashlytics/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 19.2.0 diff --git a/firebase-dataconnect/CHANGELOG.md b/firebase-dataconnect/CHANGELOG.md index 78d5d548a10..a3400196b8c 100644 --- a/firebase-dataconnect/CHANGELOG.md +++ b/firebase-dataconnect/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 16.0.0-beta01 * [feature] Initial release of the Data Connect SDK (public preview). Learn how to diff --git a/firebase-dataconnect/firebase-dataconnect.gradle.kts b/firebase-dataconnect/firebase-dataconnect.gradle.kts index 0832360534f..e3ce4b6b27d 100644 --- a/firebase-dataconnect/firebase-dataconnect.gradle.kts +++ b/firebase-dataconnect/firebase-dataconnect.gradle.kts @@ -31,8 +31,8 @@ firebaseLibrary { publishJavadoc = false previewMode = "beta" releaseNotes { - name.set("{{firebase_data_connect}}") - versionName.set("dataconnect") + name.set("{{data_connect_short}}") + versionName.set("data-connect") hasKTX.set(false) } diff --git a/firebase-firestore/CHANGELOG.md b/firebase-firestore/CHANGELOG.md index 63ce09be53a..6f56830e31d 100644 --- a/firebase-firestore/CHANGELOG.md +++ b/firebase-firestore/CHANGELOG.md @@ -1,7 +1,7 @@ # Unreleased * [changed] Update Firestore proto definitions. [#6369](//github.com/firebase/firebase-android-sdk/pull/6369) * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 25.1.0 * [feature] Add support for the VectorValue type. [#6154](//github.com/firebase/firebase-android-sdk/pull/6154) diff --git a/firebase-inappmessaging-display/CHANGELOG.md b/firebase-inappmessaging-display/CHANGELOG.md index 0f1802212bd..37e5082722e 100644 --- a/firebase-inappmessaging-display/CHANGELOG.md +++ b/firebase-inappmessaging-display/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 21.0.0 * [fixed] Fixed bad token exception while showing FIAM diff --git a/firebase-inappmessaging/CHANGELOG.md b/firebase-inappmessaging/CHANGELOG.md index 925b7b5946c..2d4866bdb17 100644 --- a/firebase-inappmessaging/CHANGELOG.md +++ b/firebase-inappmessaging/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 21.0.0 * [fixed] Fixed bad token exception while showing FIAM diff --git a/firebase-messaging/CHANGELOG.md b/firebase-messaging/CHANGELOG.md index 5ada883e7df..b8954ec2a44 100644 --- a/firebase-messaging/CHANGELOG.md +++ b/firebase-messaging/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 24.0.2 diff --git a/firebase-ml-modeldownloader/CHANGELOG.md b/firebase-ml-modeldownloader/CHANGELOG.md index 42b870167fa..c812eb57673 100644 --- a/firebase-ml-modeldownloader/CHANGELOG.md +++ b/firebase-ml-modeldownloader/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 25.0.0 diff --git a/firebase-perf/CHANGELOG.md b/firebase-perf/CHANGELOG.md index 8f376deff25..b41c7be9f3b 100644 --- a/firebase-perf/CHANGELOG.md +++ b/firebase-perf/CHANGELOG.md @@ -1,7 +1,8 @@ # Unreleased -* [fixed] Fix IllegalStateException when starting a trace before Firebase initializes. +* [fixed] Fixed `IllegalStateException` that happened when starting a trace + before Firebase initializes. * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 21.0.1 * [fixed] Fixed an `ExceptionInInitializerError` where the `url.openStream()` causes a crash if diff --git a/transport/transport-backend-cct/CHANGELOG.md b/transport/transport-backend-cct/CHANGELOG.md index 59b34e15bf1..4b5fdb709aa 100644 --- a/transport/transport-backend-cct/CHANGELOG.md +++ b/transport/transport-backend-cct/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 3.3.0 diff --git a/transport/transport-runtime/CHANGELOG.md b/transport/transport-runtime/CHANGELOG.md index 451c89e3279..37fb32d599a 100644 --- a/transport/transport-runtime/CHANGELOG.md +++ b/transport/transport-runtime/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased * [changed] Updated protobuf dependency to `3.25.5` to fix - [CVE-2024-7254](https://github.com/advisories/GHSA-735f-pc8j-v9w8). + [CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254). # 3.3.0 From 6701494559e5280b4080a253b786bdc003f6abb9 Mon Sep 17 00:00:00 2001 From: Daymon Date: Wed, 16 Oct 2024 12:49:45 -0500 Subject: [PATCH 2/4] Update CHANGELOG.md --- firebase-vertexai/CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/firebase-vertexai/CHANGELOG.md b/firebase-vertexai/CHANGELOG.md index 6a9a7c8b170..a810075fe94 100644 --- a/firebase-vertexai/CHANGELOG.md +++ b/firebase-vertexai/CHANGELOG.md @@ -1,4 +1,18 @@ # Unreleased +* [feature] {{firebase_vertexai}} is now Generally Available (GA) and can be + used in production apps. + + Use the {{firebase_vertexai_sdk}} to call the {{gemini_api_vertexai_long}} + directly from your app. This client SDK is built specifically for use with + Android apps, offering security options against unauthorized clients + as well as integrations with other Firebase services. + + * If you're new to this library, visit the + [getting started guide](/docs/vertex-ai/get-started?platform=android). + + * If you used the preview version of the library, visit the + [migration guide](/docs/vertex-ai/migrate-to-ga?platform=android) to learn + about some important updates. * [changed] **Breaking Change**: Changed `functionCallingConfig` parameter type to be nullable in `ToolConfig`. (#6373) * [changed] **Breaking Change**: Removed `functionResponse` accessor method from `GenerateContentResponse`. (#6373) * [changed] **Breaking Change**: Migrated `FirebaseVertexAIException` from a sealed class to an abstract class, and marked constructors as internal. (#6368) From 34c2420d8493a848f999f4d89f9d4537e12212bc Mon Sep 17 00:00:00 2001 From: Daymon Date: Thu, 17 Oct 2024 12:20:13 -0500 Subject: [PATCH 3/4] Update CHANGELOG.md --- firebase-vertexai/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firebase-vertexai/CHANGELOG.md b/firebase-vertexai/CHANGELOG.md index a810075fe94..86d4f4742d2 100644 --- a/firebase-vertexai/CHANGELOG.md +++ b/firebase-vertexai/CHANGELOG.md @@ -10,7 +10,7 @@ * If you're new to this library, visit the [getting started guide](/docs/vertex-ai/get-started?platform=android). - * If you used the preview version of the library, visit the + * If you were using the preview version of the library, visit the [migration guide](/docs/vertex-ai/migrate-to-ga?platform=android) to learn about some important updates. * [changed] **Breaking Change**: Changed `functionCallingConfig` parameter type to be nullable in `ToolConfig`. (#6373) From 25fe73ca8df4a89ca5ddcd098f00d37731d267b2 Mon Sep 17 00:00:00 2001 From: Daymon Date: Thu, 17 Oct 2024 12:42:46 -0500 Subject: [PATCH 4/4] Update javadocs --- .../kotlin/com/google/firebase/vertexai/FirebaseVertexAI.kt | 2 +- .../kotlin/com/google/firebase/vertexai/java/ChatFutures.kt | 1 + .../google/firebase/vertexai/java/GenerativeModelFutures.kt | 5 +++-- .../main/kotlin/com/google/firebase/vertexai/type/Content.kt | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.kt b/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.kt index 5b81177b8d5..ff256482112 100644 --- a/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.kt +++ b/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.kt @@ -42,7 +42,7 @@ internal constructor( /** * Instantiates a new [GenerativeModel] given the provided parameters. * - * @param modelName The name of the model to use, for example "gemini-1.5-pro". + * @param modelName The name of the model to use, for example `"gemini-1.5-pro"`. * @param generationConfig The configuration parameters to use for content generation. * @param safetySettings The safety bounds the model will abide to during content generation. * @param tools A list of [Tool]s the model may use to generate content. diff --git a/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/ChatFutures.kt b/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/ChatFutures.kt index a6a4212fbd6..2025342ff6e 100644 --- a/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/ChatFutures.kt +++ b/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/ChatFutures.kt @@ -21,6 +21,7 @@ import com.google.common.util.concurrent.ListenableFuture import com.google.firebase.vertexai.Chat import com.google.firebase.vertexai.type.Content import com.google.firebase.vertexai.type.GenerateContentResponse +import com.google.firebase.vertexai.type.InvalidStateException import kotlinx.coroutines.reactive.asPublisher import org.reactivestreams.Publisher diff --git a/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/GenerativeModelFutures.kt b/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/GenerativeModelFutures.kt index 9b7d2b1c1a9..eae7603924b 100644 --- a/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/GenerativeModelFutures.kt +++ b/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/GenerativeModelFutures.kt @@ -22,6 +22,7 @@ import com.google.firebase.vertexai.GenerativeModel import com.google.firebase.vertexai.java.ChatFutures.Companion.from import com.google.firebase.vertexai.type.Content import com.google.firebase.vertexai.type.CountTokensResponse +import com.google.firebase.vertexai.type.FirebaseVertexAIException import com.google.firebase.vertexai.type.GenerateContentResponse import kotlinx.coroutines.reactive.asPublisher import org.reactivestreams.Publisher @@ -65,13 +66,13 @@ public abstract class GenerativeModelFutures internal constructor() { public abstract fun countTokens(vararg prompt: Content): ListenableFuture /** - * Creates a [ChatFuture] instance which internally tracks the ongoing conversation with the + * Creates a [ChatFutures] instance which internally tracks the ongoing conversation with the * model. */ public abstract fun startChat(): ChatFutures /** - * Creates a [ChatFuture] instance, initialized using the optionally provided [history]. + * Creates a [ChatFutures] instance, initialized using the optionally provided [history]. * * @param history A list of previous interactions with the model to use as a starting point */ diff --git a/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Content.kt b/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Content.kt index 0168f524de8..ec3e9555741 100644 --- a/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Content.kt +++ b/firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Content.kt @@ -24,8 +24,8 @@ import android.graphics.Bitmap * `Content` is composed of a one or more heterogeneous parts that can be represent data in * different formats, like text or images. * - * @param role The producer of the content. Must be either 'user' or 'model'. By default, it's - * "user". + * @param role The producer of the content. Must be either `"user"` or `"model"`. By default, it's + * `"user"`. * @param parts An ordered list of [Part] that constitute this content. */ public class Content