Skip to content

Commit

Permalink
Merge branch 'master' into sessions-nine
Browse files Browse the repository at this point in the history
  • Loading branch information
mrober committed Oct 30, 2023
2 parents e80997f + a92113a commit c595160
Show file tree
Hide file tree
Showing 55 changed files with 645 additions and 407 deletions.
3 changes: 3 additions & 0 deletions appcheck/firebase-appcheck-debug-testing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Unreleased


# 17.1.1
* [unchanged] Updated to keep [app_check] SDK versions aligned.

# 17.1.0
Expand Down
4 changes: 2 additions & 2 deletions appcheck/firebase-appcheck-debug-testing/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=17.1.1
latestReleasedVersion=17.1.0
version=17.1.2
latestReleasedVersion=17.1.1
3 changes: 3 additions & 0 deletions appcheck/firebase-appcheck-debug/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Unreleased


# 17.1.1
* [unchanged] Updated to keep [app_check] SDK versions aligned.

# 17.1.0
Expand Down
4 changes: 2 additions & 2 deletions appcheck/firebase-appcheck-debug/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=17.1.1
latestReleasedVersion=17.1.0
version=17.1.2
latestReleasedVersion=17.1.1
3 changes: 3 additions & 0 deletions appcheck/firebase-appcheck-playintegrity/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Unreleased


# 17.1.1
* [fixed] Fixed client-side throttling in Play Integrity flows.
* [changed] Bumped Play Integrity API Library dependency version.

Expand Down
4 changes: 2 additions & 2 deletions appcheck/firebase-appcheck-playintegrity/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=17.1.1
latestReleasedVersion=17.1.0
version=17.1.2
latestReleasedVersion=17.1.1
10 changes: 10 additions & 0 deletions appcheck/firebase-appcheck/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Unreleased


# 17.1.1
* [fixed] Fixed a bug causing internal tests to depend directly on `firebase-common`.
* [fixed] Fixed client-side throttling in Play Integrity flows.


## Kotlin
The Kotlin extensions library transitively includes the updated
`firebase-appcheck` library. The Kotlin extensions library has no additional
updates.

# 17.1.0
* [changed] Added Kotlin extensions (KTX) APIs from `com.google.firebase:firebase-appcheck-ktx`
to `com.google.firebase:firebase-appcheck` under the `com.google.firebase.appcheck` package.
Expand Down Expand Up @@ -109,3 +118,4 @@ additional updates:
# 16.0.0-beta01
* [feature] Initial beta release of the [app_check] SDK with abuse reduction
features.

4 changes: 2 additions & 2 deletions appcheck/firebase-appcheck/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=17.1.1
latestReleasedVersion=17.1.0
version=17.1.2
latestReleasedVersion=17.1.1
4 changes: 2 additions & 2 deletions firebase-crashlytics-ndk/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=18.5.1
latestReleasedVersion=18.5.0
version=18.5.2
latestReleasedVersion=18.5.1
14 changes: 11 additions & 3 deletions firebase-crashlytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Unreleased

* [changed] Include more details about app processes in reports.

# 18.5.1
* [fixed] Internal improvement to fix compatibility with Flutter and Unity SDKs. Github
[#10759](https://github.com/firebase/flutterfire/issues/10759)


## Kotlin
The Kotlin extensions library transitively includes the updated
`firebase-crashlytics` library. The Kotlin extensions library has no additional
updates.

# 18.5.0
* [changed] Added Kotlin extensions (KTX) APIs from `com.google.firebase:firebase-crashlytics-ktx`
to `com.google.firebase:firebase-crashlytics` under the `com.google.firebase.crashlytics` package.
Expand All @@ -13,8 +22,6 @@
now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the
[FAQ about this initiative](https://firebase.google.com/docs/android/kotlin-migration)

* [fixed] Fixed Flutter and Unity on-demand fatal `setUserIdentifier` behaviour. Github
[#10759](https://github.com/firebase/flutterfire/issues/10759)

## Kotlin
The Kotlin extensions library transitively includes the updated
Expand Down Expand Up @@ -521,3 +528,4 @@ The following release notes describe changes in the new SDK.
from your `AndroidManifest.xml` file.
* [removed] The `fabric.properties` and `crashlytics.properties` files are no
longer supported. Remove them from your app.

4 changes: 2 additions & 2 deletions firebase-crashlytics/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=18.5.1
latestReleasedVersion=18.5.0
version=18.5.2
latestReleasedVersion=18.5.1
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import com.google.firebase.crashlytics.internal.model.CrashlyticsReport;
import com.google.firebase.crashlytics.internal.model.CrashlyticsReport.CustomAttribute;
import com.google.firebase.crashlytics.internal.model.ImmutableList;
import com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence;
import com.google.firebase.crashlytics.internal.send.DataTransportCrashlyticsReportSender;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -233,8 +231,9 @@ public void testNonFatalEvent_addsSortedKeysToEvent() {
final CustomAttribute customAttribute2 =
CustomAttribute.builder().setKey(testKey2).setValue(testValue2).build();

final ImmutableList<CustomAttribute> expectedCustomAttributes =
ImmutableList.from(customAttribute1, customAttribute2);
final List<CustomAttribute> expectedCustomAttributes = new ArrayList<>();
expectedCustomAttributes.add(customAttribute1);
expectedCustomAttributes.add(customAttribute2);

when(reportMetadata.getCustomKeys()).thenReturn(attributes);
when(reportMetadata.getInternalKeys()).thenReturn(attributes);
Expand Down Expand Up @@ -294,8 +293,9 @@ public void testFatalEvent_addsSortedCustomKeysToEvent() {
final CustomAttribute customAttribute2 =
CustomAttribute.builder().setKey(testKey2).setValue(testValue2).build();

final ImmutableList<CustomAttribute> expectedCustomAttributes =
ImmutableList.from(customAttribute1, customAttribute2);
final List<CustomAttribute> expectedCustomAttributes = new ArrayList<>();
expectedCustomAttributes.add(customAttribute1);
expectedCustomAttributes.add(customAttribute2);

when(reportMetadata.getCustomKeys()).thenReturn(attributes);

Expand Down Expand Up @@ -331,8 +331,9 @@ public void testFatalEvent_addsSortedInternalKeysToEvent() {
final CustomAttribute customAttribute2 =
CustomAttribute.builder().setKey(testKey2).setValue(testValue2).build();

final ImmutableList<CustomAttribute> expectedCustomAttributes =
ImmutableList.from(customAttribute1, customAttribute2);
final List<CustomAttribute> expectedCustomAttributes = new ArrayList<>();
expectedCustomAttributes.add(customAttribute1);
expectedCustomAttributes.add(customAttribute2);

when(reportMetadata.getInternalKeys()).thenReturn(attributes);

Expand Down Expand Up @@ -403,7 +404,8 @@ public void testFinalizeSessionWithNativeEvent_createsCrashlyticsReportWithNativ
String byteBackedSessionName = "byte";
BytesBackedNativeSessionFile byteSession =
new BytesBackedNativeSessionFile(byteBackedSessionName, "not_applicable", testBytes);
reportingCoordinator.finalizeSessionWithNativeEvent("id", Arrays.asList(byteSession), null);
reportingCoordinator.finalizeSessionWithNativeEvent(
"id", Collections.singletonList(byteSession), null);

ArgumentCaptor<CrashlyticsReport.FilesPayload> filesPayload =
ArgumentCaptor.forClass(CrashlyticsReport.FilesPayload.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
import com.google.firebase.crashlytics.internal.model.CrashlyticsReport.Session.Event.Application.Execution.Signal;
import com.google.firebase.crashlytics.internal.model.CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame;
import com.google.firebase.crashlytics.internal.model.CrashlyticsReport.Session.User;
import com.google.firebase.crashlytics.internal.model.ImmutableList;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
Expand Down Expand Up @@ -144,14 +144,6 @@ private static Application makeTestApplication(boolean useDevelopmentPlatform) {
return builder.build();
}

private static ImmutableList<Event> makeTestEvents(int numEvents) {
List<Event> events = new ArrayList<>();
for (int i = 0; i < numEvents; i++) {
events.add(makeTestEvent());
}
return ImmutableList.from(events);
}

private static Event makeTestEvent() {
return Event.builder()
.setType("type")
Expand All @@ -162,7 +154,7 @@ private static Event makeTestEvent() {
.setExecution(
Execution.builder()
.setBinaries(
ImmutableList.from(
Collections.singletonList(
Execution.BinaryImage.builder()
.setBaseAddress(0)
.setName("name")
Expand All @@ -178,7 +170,7 @@ private static Event makeTestEvent() {
.build())
.setSignal(Signal.builder().setCode("0").setName("0").setAddress(0).build())
.setThreads(
ImmutableList.from(
Collections.singletonList(
Session.Event.Application.Execution.Thread.builder()
.setName("name")
.setImportance(4)
Expand Down Expand Up @@ -209,7 +201,7 @@ private static Event makeAnrEvent(boolean withBuildIds) {
.setExecution(
Execution.builder()
.setBinaries(
ImmutableList.from(
Collections.singletonList(
Execution.BinaryImage.builder()
.setBaseAddress(0)
.setName("name")
Expand All @@ -233,44 +225,49 @@ private static Event makeAnrEvent(boolean withBuildIds) {
.build();
}

private static ImmutableList<Frame> makeTestFrames() {
return ImmutableList.from(
private static List<Frame> makeTestFrames() {
ArrayList<Frame> frames = new ArrayList<>();
frames.add(
Frame.builder()
.setPc(0)
.setSymbol("func1")
.setFile("Test.java")
.setOffset(36)
.setImportance(4)
.build(),
.build());
frames.add(
Frame.builder()
.setPc(0)
.setSymbol("func2")
.setFile("Test.java")
.setOffset(5637)
.setImportance(4)
.build(),
.build());
frames.add(
Frame.builder()
.setPc(0)
.setSymbol("func3")
.setFile("Test.java")
.setOffset(22429)
.setImportance(4)
.build(),
.build());
frames.add(
Frame.builder()
.setPc(0)
.setSymbol("func4")
.setFile("Test.java")
.setOffset(751)
.setImportance(4)
.build());
return Collections.unmodifiableList(frames);
}

private static CrashlyticsReport.ApplicationExitInfo makeAppExitInfo(boolean withBuildIds) {
ImmutableList<CrashlyticsReport.ApplicationExitInfo.BuildIdMappingForArch>
List<CrashlyticsReport.ApplicationExitInfo.BuildIdMappingForArch>
buildIdMappingForArchImmutableList = null;
if (withBuildIds) {
buildIdMappingForArchImmutableList =
ImmutableList.from(
Collections.singletonList(
CrashlyticsReport.ApplicationExitInfo.BuildIdMappingForArch.builder()
.setLibraryName("lib.so")
.setArch("x86")
Expand Down
Loading

0 comments on commit c595160

Please sign in to comment.