From c08e2a4de0a7d62104a16a80911e203e6b48a56c Mon Sep 17 00:00:00 2001 From: fractalwrench Date: Tue, 4 May 2021 11:32:16 +0100 Subject: [PATCH] docs: add changelog --- CHANGELOG.md | 7 +++++++ .../src/main/java/com/bugsnag/android/Client.java | 6 ++++-- .../test/java/com/bugsnag/android/ClientFacadeTest.java | 6 +++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca7e003999..aea7ff6416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## TBD + +### Enhancements + +* Unity: add methods for setting autoNotify and autoDetectAnrs + [#1233](https://github.com/bugsnag/bugsnag-android/pull/1233) + ## 5.9.1 (2021-04-22) ### Bug fixes diff --git a/bugsnag-android-core/src/main/java/com/bugsnag/android/Client.java b/bugsnag-android-core/src/main/java/com/bugsnag/android/Client.java index 9e637ba7e3..c5db63c184 100644 --- a/bugsnag-android-core/src/main/java/com/bugsnag/android/Client.java +++ b/bugsnag-android-core/src/main/java/com/bugsnag/android/Client.java @@ -88,7 +88,7 @@ public class Client implements MetadataAware, CallbackAware, UserAware { final LastRunInfoStore lastRunInfoStore; final LaunchCrashTracker launchCrashTracker; final BackgroundTaskService bgTaskService = new BackgroundTaskService(); - private ExceptionHandler exceptionHandler; + private final ExceptionHandler exceptionHandler; /** * Initialize a Bugsnag client @@ -264,7 +264,8 @@ public Unit invoke(String activity, Map metadata) { Logger logger, DeliveryDelegate deliveryDelegate, LastRunInfoStore lastRunInfoStore, - LaunchCrashTracker launchCrashTracker + LaunchCrashTracker launchCrashTracker, + ExceptionHandler exceptionHandler ) { this.immutableConfig = immutableConfig; this.metadataState = metadataState; @@ -289,6 +290,7 @@ public Unit invoke(String activity, Map metadata) { this.lastRunInfoStore = lastRunInfoStore; this.launchCrashTracker = launchCrashTracker; this.lastRunInfo = null; + this.exceptionHandler = exceptionHandler; } private LastRunInfo loadLastRunInfo() { diff --git a/bugsnag-android-core/src/test/java/com/bugsnag/android/ClientFacadeTest.java b/bugsnag-android-core/src/test/java/com/bugsnag/android/ClientFacadeTest.java index e9d4bed457..052bea11b0 100644 --- a/bugsnag-android-core/src/test/java/com/bugsnag/android/ClientFacadeTest.java +++ b/bugsnag-android-core/src/test/java/com/bugsnag/android/ClientFacadeTest.java @@ -98,6 +98,9 @@ public class ClientFacadeTest { @Mock LaunchCrashTracker launchCrashTracker; + @Mock + ExceptionHandler exceptionHandler; + private Client client; private InterceptingLogger logger; @@ -129,7 +132,8 @@ public void setUp() { logger, deliveryDelegate, lastRunInfoStore, - launchCrashTracker + launchCrashTracker, + exceptionHandler ); // required fields for generating an event