Skip to content

Commit d0d9c82

Browse files
authored
Merge branch 'main' into td/record-exception-ktx
2 parents be1ce95 + 71ceb1b commit d0d9c82

File tree

26 files changed

+102
-50
lines changed

26 files changed

+102
-50
lines changed
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
name: Private Mirror Sync
22

3-
concurrency:
4-
group: ${{ github.workflow }}
5-
cancel-in-progress: true
6-
73
on:
8-
push:
9-
branches:
10-
- main
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 2 * * *'
117

128
jobs:
139
sync:
14-
if: github.repository == 'firebase/firebase-android-sdk'
10+
if: github.repository == 'FirebasePrivate/firebase-android-sdk'
1511
runs-on: ubuntu-latest
1612
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
repository: firebase/firebase-android-sdk
16+
ref: main
17+
fetch-depth: 0
18+
submodules: true
19+
1720
- uses: actions/[email protected]
1821
with:
1922
fetch-depth: 0
2023
submodules: true
2124
token: ${{ secrets.GOOGLE_OSS_BOT_TOKEN }}
22-
committer: google-oss-bot <[email protected]>
2325
- name: Force push HEAD to private repo main branch
2426
run: |
27+
git config --local user.name google-oss-bot
28+
git config --local user.email [email protected]
2529
git remote add mirror https://github.com/FirebasePrivate/firebase-android-sdk.git
2630
git push mirror HEAD:main --force --verbose

firebase-crashlytics-ndk/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Unreleased
22

33

4+
# 19.3.0
5+
* [changed] Updated `firebase-crashlytics` dependency to v19.3.0
6+
47
# 19.2.1
58
* [changed] Updated `firebase-crashlytics` dependency to v19.2.1
69

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=19.2.2
2-
latestReleasedVersion=19.2.1
1+
version=19.3.1
2+
latestReleasedVersion=19.3.0

firebase-crashlytics/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# Unreleased
2+
* [feature] Added an overload for `recordException` that allows logging additional custom
3+
keys to the non fatal event [#3551]
4+
5+
# 19.3.0
26
* [fixed] Fixed inefficiency in the Kotlin `FirebaseCrashlytics.setCustomKeys` extension.
37
* [fixed] Execute failure listener outside the main thread [#6535]
48

9+
10+
## Kotlin
11+
The Kotlin extensions library transitively includes the updated
12+
`firebase-crashlytics` library. The Kotlin extensions library has no additional
13+
updates.
14+
515
# 19.2.1
616
* [changed] Updated protobuf dependency to `3.25.5` to fix
717
[CVE-2024-7254](https://nvd.nist.gov/vuln/detail/CVE-2024-7254).
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=19.2.2
2-
latestReleasedVersion=19.2.1
1+
version=19.3.1
2+
latestReleasedVersion=19.3.0

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/metadata/EventMetadata.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ package com.google.firebase.crashlytics.internal.metadata
2222
* @property additionalCustomKeys a [Map<String, String>] of key value pairs to attach to the event,
2323
* in addition to the global custom keys.
2424
*/
25-
data class EventMetadata
25+
internal data class EventMetadata
2626
@JvmOverloads
2727
constructor(
2828
val sessionId: String,

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/metadata/UserMetadata.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,26 +149,33 @@ public void setUserId(String identifier) {
149149
*/
150150
public Map<String, String> getCustomKeys(Map<String, String> eventKeys) {
151151
// In case of empty event keys, preserve existing behavior.
152-
if (eventKeys.isEmpty()) return customKeys.getKeys();
152+
if (eventKeys.isEmpty()) {
153+
return customKeys.getKeys();
154+
}
153155

154156
// Otherwise merge the event keys with custom keys as appropriate.
155157
Map<String, String> globalKeys = customKeys.getKeys();
156158
HashMap<String, String> result = new HashMap<>(globalKeys);
159+
int eventKeysOverLimit = 0;
157160
for (Map.Entry<String, String> entry : eventKeys.entrySet()) {
158161
String sanitizedKey = KeysMap.sanitizeString(entry.getKey(), MAX_ATTRIBUTE_SIZE);
159162
if (result.size() < MAX_ATTRIBUTES || result.containsKey(sanitizedKey)) {
160163
String sanitizedValue = KeysMap.sanitizeString(entry.getValue(), MAX_ATTRIBUTE_SIZE);
161164
result.put(sanitizedKey, sanitizedValue);
162-
continue;
165+
} else {
166+
eventKeysOverLimit++;
163167
}
168+
}
164169

170+
if (eventKeysOverLimit > 0) {
165171
Logger.getLogger()
166172
.w(
167-
"Ignored entry \""
168-
+ entry.getKey()
169-
+ "\" when adding event specific keys. Maximum allowable: "
173+
"Ignored "
174+
+ eventKeysOverLimit
175+
+ " keys when adding event specific keys. Maximum allowable: "
170176
+ MAX_ATTRIBUTE_SIZE);
171177
}
178+
172179
return Collections.unmodifiableMap(result);
173180
}
174181

firebase-dataconnect/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Unreleased
2+
3+
4+
# 16.0.0-beta03
25
* [changed] Requires Data Connect emulator version 1.6.1 or later for code generation.
36
* [feature] QueryRef and MutationRef gain methods copy(), withDataDeserializer(),
47
and withVariablesSerializer().
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=16.0.0-beta03
2-
latestReleasedVersion=16.0.0-beta02
1+
version=16.0.0-beta04
2+
latestReleasedVersion=16.0.0-beta03

firebase-functions/CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Unreleased
2-
* [fixed] Minor internal infrastructure improvements. (#6544)
3-
* [fixed] Fixed HttpsCallableResult.data resolution in Kotlin. (#6530)
2+
43

54
# 21.1.0
65
* [changed] Migrated to Kotlin
76

7+
8+
## Kotlin
9+
The Kotlin extensions library transitively includes the updated
10+
`firebase-functions` library. The Kotlin extensions library has no additional
11+
updates.
12+
813
# 21.0.0
914
* [changed] Bump internal dependencies
1015

0 commit comments

Comments
 (0)