Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m161 release #6760

Open
wants to merge 5 commits into
base: releases/m161
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions firebase-appdistribution-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Unreleased
* [unchanged] Updated to accommodate the release of the updated
[appdistro] library.


# 16.0.0-beta14
Expand Down
1 change: 1 addition & 0 deletions firebase-functions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Unreleased
* [feature] Streaming callable functions are now supported.
* [fixed] Fixed an issue that prevented the App Check token from being handled correctly in case of error.


Expand Down
2 changes: 1 addition & 1 deletion firebase-functions/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version=21.1.2
version=21.2.0
latestReleasedVersion=21.1.1
android.enableUnitTestBinaryResources=true
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,26 @@ class StreamTests {
assertThat(subscriber.throwable).isInstanceOf(FirebaseFunctionsException::class.java)
}

@Test
fun nonExistentFunction_receivesError() = runBlocking {
val function =
functions.getHttpsCallable("nonexistentFunction").withTimeout(2000, TimeUnit.MILLISECONDS)
val subscriber = StreamSubscriber()

function.stream().subscribe(subscriber)

withTimeout(2000) {
while (subscriber.throwable == null) {
delay(100)
}
}

assertThat(subscriber.throwable).isNotNull()
assertThat(subscriber.throwable).isInstanceOf(FirebaseFunctionsException::class.java)
assertThat((subscriber.throwable as FirebaseFunctionsException).code)
.isEqualTo(FirebaseFunctionsException.Code.NOT_FOUND)
}

@Test
fun genStreamWeather_receivesWeatherForecasts() = runBlocking {
val inputData = listOf(mapOf("name" to "Toronto"), mapOf("name" to "London"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,12 @@ internal class PublisherStream(
val errorMessage: String
if (response.code() == 404 && response.header("Content-Type") == htmlContentType) {
errorMessage = """URL not found. Raw response: ${response.body()?.string()}""".trimMargin()
throw FirebaseFunctionsException(
errorMessage,
FirebaseFunctionsException.Code.fromHttpStatus(response.code()),
null
notifyError(
FirebaseFunctionsException(
errorMessage,
FirebaseFunctionsException.Code.fromHttpStatus(response.code()),
null
)
)
}

Expand All @@ -313,16 +315,17 @@ internal class PublisherStream(
val json = JSONObject(text)
error = serializer.decode(json.opt("error"))
} catch (e: Throwable) {
throw FirebaseFunctionsException(
"${e.message} Unexpected Response:\n$text ",
FirebaseFunctionsException.Code.INTERNAL,
e
notifyError(
FirebaseFunctionsException(
"${e.message} Unexpected Response:\n$text ",
FirebaseFunctionsException.Code.INTERNAL,
e
)
)
return
}
throw FirebaseFunctionsException(
error.toString(),
FirebaseFunctionsException.Code.INTERNAL,
error
notifyError(
FirebaseFunctionsException(error.toString(), FirebaseFunctionsException.Code.INTERNAL, error)
)
}
}
2 changes: 1 addition & 1 deletion firebase-messaging-directboot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Unreleased

* [unchanged] Updated to keep messaging SDK versions aligned.

# 24.1.0
* [unchanged] Updated to keep messaging SDK versions aligned.
Expand Down
27 changes: 27 additions & 0 deletions release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "m161",
"libraries": [
":firebase-appdistribution",
":firebase-appdistribution-api",
":firebase-appdistribution-api:ktx",
":firebase-crashlytics",
":firebase-crashlytics-ndk",
":firebase-sessions",
":firebase-crashlytics:ktx",
":firebase-dataconnect",
":firebase-firestore",
":firebase-firestore:ktx",
":firebase-functions",
":firebase-functions:ktx",
":firebase-inappmessaging",
":firebase-inappmessaging-display",
":firebase-inappmessaging:ktx",
":firebase-inappmessaging-display:ktx",
":firebase-messaging",
":firebase-messaging-directboot",
":firebase-messaging:ktx",
":firebase-perf",
":firebase-perf:ktx",
":protolite-well-known-types"
]
}
277 changes: 277 additions & 0 deletions release_report.json

Large diffs are not rendered by default.

144 changes: 144 additions & 0 deletions release_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# Release Report
## firebase-appdistribution

* Update CHANGELOG.md (#6718)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6718) [commit](https://github.com/firebase/firebase-android-sdk/commit/1e8c2185411d6b62e8a6a74de91d4dccf40838c7) [Lee Kellogg]

* Support custom tabs in more browsers (#6705)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6705) [commit](https://github.com/firebase/firebase-android-sdk/commit/a2244f976ed16e96defb09d8fda253963864c747) [Konstantin Svist]

## firebase-appdistribution-api


## firebase-appdistribution-api/ktx


## firebase-crashlytics

* Update changelogs and versions for Crashlytics, Perf, and AQS (#6758)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6758) [commit](https://github.com/firebase/firebase-android-sdk/commit/8f8a74d94c98208986291c273553c00f1950e81b) [Matthew Robertson]

* Read version control info from Android resource (#6754)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6754) [commit](https://github.com/firebase/firebase-android-sdk/commit/68f52edce65e36d64641ee8a0750a29068935614) [Matthew Robertson]

* Remove code style from deprecated message (#6753)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6753) [commit](https://github.com/firebase/firebase-android-sdk/commit/aa2bab8225185e43990e87b9f4dc26dd631c66f0) [Matthew Robertson]

* Avoid Process.myProcessName() on Android 13 (#6720)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6720) [commit](https://github.com/firebase/firebase-android-sdk/commit/d701c3437419644dc7846e59613c87dcf070976a) [Matthew Robertson]

* Update CHANGELOG for Crashlytics and NDK (#6719)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6719) [commit](https://github.com/firebase/firebase-android-sdk/commit/5712a26d16fc8b68177fe81d40580e5bbc756c4a) [Matthew Robertson]

## firebase-crashlytics-ndk

* Update changelogs and versions for Crashlytics, Perf, and AQS (#6758)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6758) [commit](https://github.com/firebase/firebase-android-sdk/commit/8f8a74d94c98208986291c273553c00f1950e81b) [Matthew Robertson]

* Update CHANGELOG for Crashlytics and NDK (#6719)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6719) [commit](https://github.com/firebase/firebase-android-sdk/commit/5712a26d16fc8b68177fe81d40580e5bbc756c4a) [Matthew Robertson]

## firebase-sessions

* Update changelogs and versions for Crashlytics, Perf, and AQS (#6758)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6758) [commit](https://github.com/firebase/firebase-android-sdk/commit/8f8a74d94c98208986291c273553c00f1950e81b) [Matthew Robertson]

* Add warning for known issue b/328687152 (#6755)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6755) [commit](https://github.com/firebase/firebase-android-sdk/commit/c9287ee0f33a5fee1682030b28ed4523df750064) [Matthew Robertson]

* Use Dagger for dependency injection in Sessions (#6745)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6745) [commit](https://github.com/firebase/firebase-android-sdk/commit/934050322f5b3ecb07d759174f784be62baac9b2) [Matthew Robertson]

* Update datastore dependency to 1.1.3 (#6688)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6688) [commit](https://github.com/firebase/firebase-android-sdk/commit/92632af12a44ac26d177ff5b967b7f2f0fe10f5f) [Matthew Robertson]

* Avoid Process.myProcessName() on Android 13 (#6720)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6720) [commit](https://github.com/firebase/firebase-android-sdk/commit/d701c3437419644dc7846e59613c87dcf070976a) [Matthew Robertson]

## firebase-crashlytics/ktx


## firebase-dataconnect

* dataconnect: change grpc api version from "v1beta" to "v1" (#6729)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6729) [commit](https://github.com/firebase/firebase-android-sdk/commit/16d2ba862415b232a75b7135b893d11b0f382038) [Denver Coneybeare]

* dataconnect: DataConnectExecutableVersions.json updated with versions 1.8.0, 1.8.1, 1.8.2, and 1.8.3 (#6732)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6732) [commit](https://github.com/firebase/firebase-android-sdk/commit/00c2919000386b0f9f292e1d98349b14e46c5f44) [Denver Coneybeare]

## firebase-firestore

* Use lazy encoding in utf-8 encoded string comparison (#6706)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6706) [commit](https://github.com/firebase/firebase-android-sdk/commit/ec26a52d453101fef3f880ceeb6aba5d1a935808) [Mila]

* Bump well known types (#6716)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6716) [commit](https://github.com/firebase/firebase-android-sdk/commit/4cf282576e2fec70d8088fab024130b5ec5dda4c) [Daymon]

## firebase-firestore/ktx


## firebase-functions

* [Functions] Send the placeholder appcheck token in case of error (#6750)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6750) [commit](https://github.com/firebase/firebase-android-sdk/commit/dfd0d7c3710fcaa63184b72d55693b7b8a050ce7) [Rodrigo Lazo]

* Extend Firebase SDK with new APIs to consume streaming callable function response (#6602)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6602) [commit](https://github.com/firebase/firebase-android-sdk/commit/7c03f4964c48ac0a8f82293e296fa0d6efe42266) [mustafa jadid]

* Update functions changelog (#6751)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6751) [commit](https://github.com/firebase/firebase-android-sdk/commit/a232b6d467b5fb51aa9a433234c7b471e7ce2649) [Rodrigo Lazo]

## firebase-functions/ktx


## firebase-inappmessaging

* Bump well known types (#6716)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6716) [commit](https://github.com/firebase/firebase-android-sdk/commit/4cf282576e2fec70d8088fab024130b5ec5dda4c) [Daymon]

## firebase-inappmessaging-display

* Bump well known types (#6716)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6716) [commit](https://github.com/firebase/firebase-android-sdk/commit/4cf282576e2fec70d8088fab024130b5ec5dda4c) [Daymon]

## firebase-inappmessaging/ktx


## firebase-inappmessaging-display/ktx


## firebase-messaging

* Store registered context for sync task unregistrations (#6752)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6752) [commit](https://github.com/firebase/firebase-android-sdk/commit/af5fd66d31cad06a3977ef7c89ba0bdd6891ccd3) [welishr]

## firebase-messaging-directboot


## firebase-messaging/ktx


## firebase-perf

* Update changelogs and versions for Crashlytics, Perf, and AQS (#6758)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6758) [commit](https://github.com/firebase/firebase-android-sdk/commit/8f8a74d94c98208986291c273553c00f1950e81b) [Matthew Robertson]

* Fix bug that let responsePayloadBytes get set to -1 (#6721)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6721) [commit](https://github.com/firebase/firebase-android-sdk/commit/79deb5f2fd600cab1f71f30ae808865ee7909e42) [Matthew Robertson]

* Bump well known types (#6716)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6716) [commit](https://github.com/firebase/firebase-android-sdk/commit/4cf282576e2fec70d8088fab024130b5ec5dda4c) [Daymon]

## firebase-perf/ktx


## protolite-well-known-types

* Bump well known types (#6716)
[pr](https://github.com/firebase/firebase-android-sdk/pull/6716) [commit](https://github.com/firebase/firebase-android-sdk/commit/4cf282576e2fec70d8088fab024130b5ec5dda4c) [Daymon]


## SDKs with changes, but no changelogs
:firebase-config
:firebase-config:ktx
:firebase-vertexai
Loading