Skip to content

Commit a0b95c2

Browse files
authored
[Release] update version to correct number (#8492)
1 parent 66dfe36 commit a0b95c2

5 files changed

Lines changed: 21 additions & 33 deletions

File tree

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Exceptions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ internal constructor(
178178
* The specified Vertex AI location is invalid.
179179
*
180180
* For a list of valid locations, see
181-
* [locations.](https://firebase.google.com/docs/vertex-ai/locations?platform=android#available-locations)
181+
* [locations.](https://firebase.google.com/docs/ai-logic/locations?api=vertex#available-locations)
182182
*/
183183
public class InvalidLocationException
184184
internal constructor(location: String, cause: Throwable? = null) :

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/RealtimeInputConfig.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ private constructor(
5252
public class TurnCoverage private constructor(internal val value: String) {
5353
public companion object {
5454
/**
55-
* The model will exclude inactivity (e.g, silence on the audio stream) from the user's input.
55+
* The model will exclude inactivity (for example, silence on the audio stream) from the
56+
* user's input.
5657
*/
5758
@JvmField public val ONLY_ACTIVITY: TurnCoverage = TurnCoverage("TURN_INCLUDES_ONLY_ACTIVITY")
5859

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=26.5.2
1+
version=26.5.0
22
latestReleasedVersion=26.4.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=26.0.3
1+
version=26.1.0
22
latestReleasedVersion=26.0.2

firebase-ml-modeldownloader/src/main/java/com/google/firebase/ml/modeldownloader/ModelDownloader.kt

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,25 @@ import com.google.firebase.components.Component
2222
import com.google.firebase.components.ComponentRegistrar
2323
import java.io.File
2424

25+
internal const val DEPRECATION_MESSAGE =
26+
"Firebase ML is deprecated and will be shut down on June 15, 2027. To " +
27+
"host custom models, you must migrate to another solution. You can " +
28+
"use Cloud Storage for Firebase as an alternative for hosting custom " +
29+
"models. For more information about migration options, see the " +
30+
"notification banner in the " +
31+
"[Firebase ML documentation](https://firebase.google.com/docs/ml)."
32+
2533
/** Returns the [FirebaseModelDownloader] instance of the default [FirebaseApp]. */
26-
@Deprecated(
27-
"Firebase ML is deprecated and will be shut down on June 15, 2027. To host custom models, you must migrate to another solution. You can use Cloud Storage for Firebase as an alternative for hosting custom models. For more info, see https://firebase.google.com/docs/ml/migrate-to-cloud-storage"
28-
)
34+
@Deprecated(DEPRECATION_MESSAGE)
2935
val Firebase.modelDownloader: FirebaseModelDownloader
3036
get() = FirebaseModelDownloader.getInstance()
3137

3238
/** Returns the [FirebaseModelDownloader] instance of a given [FirebaseApp]. */
33-
@Deprecated(
34-
"Firebase ML is deprecated and will be shut down on June 15, 2027. To host custom models, you must migrate to another solution. You can use Cloud Storage for Firebase as an alternative for hosting custom models. For more info, see https://firebase.google.com/docs/ml/migrate-to-cloud-storage"
35-
)
39+
@Deprecated(DEPRECATION_MESSAGE)
3640
fun Firebase.modelDownloader(app: FirebaseApp) = FirebaseModelDownloader.getInstance(app)
3741

3842
/** Returns a [CustomModelDownloadConditions] initialized using the [init] function. */
39-
@Deprecated(
40-
"Firebase ML is deprecated and will be shut down on June 15, 2027. To host custom models, you must migrate to another solution. You can use Cloud Storage for Firebase as an alternative for hosting custom models. For more info, see https://firebase.google.com/docs/ml/migrate-to-cloud-storage"
41-
)
43+
@Deprecated(DEPRECATION_MESSAGE)
4244
fun customModelDownloadConditions(
4345
init: CustomModelDownloadConditions.Builder.() -> Unit
4446
): CustomModelDownloadConditions {
@@ -47,30 +49,15 @@ fun customModelDownloadConditions(
4749
return builder.build()
4850
}
4951

50-
@Deprecated(
51-
"Firebase ML is deprecated and will be shut down on June 15, 2027. To host custom models, you must migrate to another solution. You can use Cloud Storage for Firebase as an alternative for hosting custom models. For more info, see https://firebase.google.com/docs/ml/migrate-to-cloud-storage"
52-
)
53-
operator fun CustomModel.component1(): File? = file
52+
@Deprecated(DEPRECATION_MESSAGE) operator fun CustomModel.component1(): File? = file
5453

55-
@Deprecated(
56-
"Firebase ML is deprecated and will be shut down on June 15, 2027. To host custom models, you must migrate to another solution. You can use Cloud Storage for Firebase as an alternative for hosting custom models. For more info, see https://firebase.google.com/docs/ml/migrate-to-cloud-storage"
57-
)
58-
operator fun CustomModel.component2() = size
54+
@Deprecated(DEPRECATION_MESSAGE) operator fun CustomModel.component2() = size
5955

60-
@Deprecated(
61-
"Firebase ML is deprecated and will be shut down on June 15, 2027. To host custom models, you must migrate to another solution. You can use Cloud Storage for Firebase as an alternative for hosting custom models. For more info, see https://firebase.google.com/docs/ml/migrate-to-cloud-storage"
62-
)
63-
operator fun CustomModel.component3() = downloadId
56+
@Deprecated(DEPRECATION_MESSAGE) operator fun CustomModel.component3() = downloadId
6457

65-
@Deprecated(
66-
"Firebase ML is deprecated and will be shut down on June 15, 2027. To host custom models, you must migrate to another solution. You can use Cloud Storage for Firebase as an alternative for hosting custom models. For more info, see https://firebase.google.com/docs/ml/migrate-to-cloud-storage"
67-
)
68-
operator fun CustomModel.component4() = modelHash
58+
@Deprecated(DEPRECATION_MESSAGE) operator fun CustomModel.component4() = modelHash
6959

70-
@Deprecated(
71-
"Firebase ML is deprecated and will be shut down on June 15, 2027. To host custom models, you must migrate to another solution. You can use Cloud Storage for Firebase as an alternative for hosting custom models. For more info, see https://firebase.google.com/docs/ml/migrate-to-cloud-storage"
72-
)
73-
operator fun CustomModel.component5() = name
60+
@Deprecated(DEPRECATION_MESSAGE) operator fun CustomModel.component5() = name
7461

7562
/** @suppress */
7663
class FirebaseMlModelDownloaderKtxRegistrar : ComponentRegistrar {

0 commit comments

Comments
 (0)