|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 5.2.0 (2021-08-04) |
| 4 | + |
| 5 | +### Enhancements |
| 6 | + |
| 7 | +* Add `AppHangThresholdMillis` to set the [native Cocoa option](https://docs.bugsnag.com/platforms/ios/configuration-options/#apphangthresholdmillis) [#347](https://github.com/bugsnag/bugsnag-unity/pull/347) |
| 8 | + |
| 9 | +* Add `EnabledErrorTypes` configuration option to enable/disable different types of errors [#341](https://github.com/bugsnag/bugsnag-unity/pull/341) |
| 10 | + |
| 11 | +* [Android] Automatic [App Not Responding](https://developer.android.com/topic/performance/vitals/anr) (ANR) detection is now enabled by default |
| 12 | + [#339](https://github.com/bugsnag/bugsnag-unity/pull/339) |
| 13 | + |
| 14 | +* Update bugsnag-cocoa to v6.10.2 |
| 15 | + |
| 16 | + * Fix ThreadSanitizer data race warning in `BSGAppHangDetector`. |
| 17 | + [#1153](https://github.com/bugsnag/bugsnag-cocoa/pull/1153) |
| 18 | + |
| 19 | + * Remove (duplicated) `user` information from `metaData`. |
| 20 | + [#1151](https://github.com/bugsnag/bugsnag-cocoa/pull/1151) |
| 21 | + |
| 22 | + * Fix a potential stack overflow in `+[BugsnagThread allThreadsWithCurrentThreadBacktrace:]`. |
| 23 | + [#1148](https://github.com/bugsnag/bugsnag-cocoa/pull/1148) |
| 24 | + |
| 25 | + * Fix `NSNull` handling in `+[BugsnagError errorFromJson:]` and `+[BugsnagStackframe frameFromJson:]`. |
| 26 | + [#1143](https://github.com/bugsnag/bugsnag-cocoa/pull/1143) |
| 27 | + |
| 28 | + * Fix a rare crash in `bsg_ksmachgetThreadQueueName`. |
| 29 | + [#1147](https://github.com/bugsnag/bugsnag-cocoa/pull/1147) |
| 30 | + |
| 31 | + * Fix an issue that could cause C++ exceptions with very long descriptions to not be reported. |
| 32 | + [#1137](https://github.com/bugsnag/bugsnag-cocoa/pull/1137) |
| 33 | + |
| 34 | + * Improve performance of adding metadata by using async file I/O. |
| 35 | + [#1133](https://github.com/bugsnag/bugsnag-cocoa/pull/1133) |
| 36 | + |
| 37 | + * Improve performance of leaving breadcrumbs by using async file I/O. |
| 38 | + [#1124](https://github.com/bugsnag/bugsnag-cocoa/pull/1124) |
| 39 | + |
| 40 | + * Prevent some potential false positive detection of app hangs. |
| 41 | + [#1122](https://github.com/bugsnag/bugsnag-cocoa/pull/1122) |
| 42 | + |
| 43 | +* Update bugsnag-android to v5.10.1: |
| 44 | + |
| 45 | + * Prefer `calloc()` to `malloc()` in NDK code |
| 46 | + [#1320](https://github.com/bugsnag/bugsnag-android/pull/1320) |
| 47 | + |
| 48 | + * Ensure correct value always collected for activeScreen |
| 49 | + [#1322](https://github.com/bugsnag/bugsnag-android/pull/1322) |
| 50 | + |
| 51 | + * Capture process name in Event payload |
| 52 | + [#1318](https://github.com/bugsnag/bugsnag-android/pull/1318) |
| 53 | + |
| 54 | + * Avoid unnecessary BroadcastReceiver registration for monitoring device orientation |
| 55 | + [#1303](https://github.com/bugsnag/bugsnag-android/pull/1303) |
| 56 | + |
| 57 | + * Register system callbacks on background thread |
| 58 | + [#1292](https://github.com/bugsnag/bugsnag-android/pull/1292) |
| 59 | + |
| 60 | + * Fix rare NullPointerExceptions from ConnectivityManager |
| 61 | + [#1311](https://github.com/bugsnag/bugsnag-android/pull/1311) |
| 62 | + |
| 63 | + * Respect manual setting of context |
| 64 | + [#1310](https://github.com/bugsnag/bugsnag-android/pull/1310) |
| 65 | + |
| 66 | + * Handle interrupt when shutting down executors |
| 67 | + [#1315](https://github.com/bugsnag/bugsnag-android/pull/1315) |
| 68 | + |
| 69 | + * Allow serializing enabledBreadcrumbTypes as null |
| 70 | + [#1316](https://github.com/bugsnag/bugsnag-android/pull/1316) |
| 71 | + |
| 72 | + * Properly handle ANRs after multiple calls to autoNotify and autoDetectAnrs |
| 73 | + [#1265](https://github.com/bugsnag/bugsnag-android/pull/1265) |
| 74 | + |
| 75 | + * Cache value of app.backgroundWorkRestricted |
| 76 | + [#1275](https://github.com/bugsnag/bugsnag-android/pull/1275) |
| 77 | + |
| 78 | + * Optimize execution of callbacks |
| 79 | + [#1276](https://github.com/bugsnag/bugsnag-android/pull/1276) |
| 80 | + |
| 81 | + * Optimize implementation of internal state change observers |
| 82 | + [#1274](https://github.com/bugsnag/bugsnag-android/pull/1274) |
| 83 | + |
| 84 | + * Optimize metadata implementation by reducing type casts |
| 85 | + [#1277](https://github.com/bugsnag/bugsnag-android/pull/1277) |
| 86 | + |
| 87 | + * Trim stacktraces to <200 frames before attempting to construct POJOs |
| 88 | + [#1281](https://github.com/bugsnag/bugsnag-android/pull/1281) |
| 89 | + |
| 90 | + * Use direct field access when adding breadcrumbs and state updates |
| 91 | + [#1279](https://github.com/bugsnag/bugsnag-android/pull/1279) |
| 92 | + |
| 93 | + * Avoid using regex to validate api key |
| 94 | + [#1282](https://github.com/bugsnag/bugsnag-android/pull/1282) |
| 95 | + |
| 96 | + * Discard unwanted automatic data earlier where possible |
| 97 | + [#1280](https://github.com/bugsnag/bugsnag-android/pull/1280) |
| 98 | + |
| 99 | + * Enable ANR handling on immediately if started from the main thread |
| 100 | + [#1283](https://github.com/bugsnag/bugsnag-android/pull/1283) |
| 101 | + |
| 102 | + * Include `app.binaryArch` in all events |
| 103 | + [#1287](https://github.com/bugsnag/bugsnag-android/pull/1287) |
| 104 | + |
| 105 | + * Cache results from PackageManager |
| 106 | + [#1288](https://github.com/bugsnag/bugsnag-android/pull/1288) |
| 107 | + |
| 108 | + * Use ring buffer to store breadcrumbs |
| 109 | + [#1286](https://github.com/bugsnag/bugsnag-android/pull/1286) |
| 110 | + |
| 111 | + * Avoid expensive set construction in Config constructor |
| 112 | + [#1289](https://github.com/bugsnag/bugsnag-android/pull/1289) |
| 113 | + |
| 114 | + * Replace calls to String.format() with concatenation |
| 115 | + [#1293](https://github.com/bugsnag/bugsnag-android/pull/1293) |
| 116 | + |
| 117 | + * Optimize capture of thread traces |
| 118 | + [#1300](https://github.com/bugsnag/bugsnag-android/pull/1300) |
| 119 | + |
| 120 | +### Bug fixes |
| 121 | + |
| 122 | +* Fixed an issue where Windows events would have incorrectly split stacktraces resulting in all lines being bundled into one |
| 123 | + [#350](https://github.com/bugsnag/bugsnag-unity/pull/350) |
| 124 | + |
| 125 | +* Fixed an issue where WebGL web requests that initially fail were not respecting the 10 second delay before retrying |
| 126 | + [#321](https://github.com/bugsnag/bugsnag-unity/pull/321) |
| 127 | + |
| 128 | +* Fixed an issue where Breadcrumbs were reported in the wrong order on Windows and in the Unity Editor |
| 129 | + [#322](https://github.com/bugsnag/bugsnag-unity/pull/322) |
| 130 | + |
| 131 | +* Fixed an issue where a "Bugsnag loaded" breadcrumb was not added on Windows, Linux, WebGL, and editor builds |
| 132 | + [#327](https://github.com/bugsnag/bugsnag-unity/pull/327) |
| 133 | + |
| 134 | +* Fixed an issue where the fallback was not reporting the correct app.type |
| 135 | + [#325](https://github.com/bugsnag/bugsnag-unity/pull/325) |
| 136 | + |
| 137 | +### Deprecated |
| 138 | + |
| 139 | +* `Configuration.NotifyLevel` has been deprecated in favour of `Configuration.NotifyLogLevel` and will be removed in the next major release. |
| 140 | + |
| 141 | +* `Configuration.AutoNotify` has been deprecated in favour of `Configuration.AutoDetectErrors` and will be removed in the next major release. |
| 142 | + |
| 143 | +* `Configuration.AutoCaptureSessions` has been deprecated in favour of `Configuration.AutoTrackSessions` and will be removed in the next major release. |
| 144 | + |
| 145 | + |
3 | 146 | ## 5.1.1 (2021-06-24) |
4 | 147 |
|
5 | 148 | * Fixes a packaging issue in the 5.1.0 where the library version was incorrectly |
|
0 commit comments