Skip to content

Commit e2744cb

Browse files
authored
Merge pull request #696 from bugsnag/next
Release v7.5.1
2 parents 7459372 + 7ff09ae commit e2744cb

25 files changed

+384
-108
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 7.5.1 (2023-02-08)
4+
5+
### Dependency updates
6+
7+
- Update bugsnag-cocoa from v6.25.1 to [v6.25.2](https://github.com/bugsnag/bugsnag-cocoa/blob/master/CHANGELOG.md#6252-2023-01-18)
8+
9+
### Bug fixes
10+
11+
* Fix an issue where collections in metadata were not present in native Android crashes. [#685](https://github.com/bugsnag/bugsnag-unity/pull/685)
12+
13+
* Fix an issue where errors in serialisation threw exceptions. [#693](https://github.com/bugsnag/bugsnag-unity/pull/693)
14+
15+
* Fix an issue where persisted events had 'unhandled' set to null [#695](https://github.com/bugsnag/bugsnag-unity/pull/695)
16+
317
## 7.5.0 (2023-01-04)
418

519
### Enhancements

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ gem 'xcodeproj'
66

77
unless Gem.win_platform?
88
# Use official Maze Runner release
9-
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', tag: 'v7.10.1'
9+
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', tag: 'v7.11.0'
1010

1111
# Use a specific Maze Runner branch
1212
#gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', branch: 'master'

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var target = Argument("target", "Default");
55
var solution = File("./BugsnagUnity.sln");
66
var configuration = Argument("configuration", "Release");
77
var project = File("./src/BugsnagUnity/BugsnagUnity.csproj");
8-
var version = "7.5.0";
8+
var version = "7.5.1";
99

1010
Task("Restore-NuGet-Packages")
1111
.Does(() => NuGetRestore(solution));

example/Packages/manifest.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"dependencies": {
3+
"com.bugsnag.unitynotifier": "https://github.com/bugsnag/bugsnag-unity-upm.git",
4+
"com.unity.ads": "2.0.8",
5+
"com.unity.analytics": "3.2.3",
6+
"com.unity.collab-proxy": "1.2.15",
7+
"com.unity.package-manager-ui": "2.0.13",
8+
"com.unity.purchasing": "2.2.1",
9+
"com.unity.textmeshpro": "1.4.1",
10+
"com.unity.modules.ai": "1.0.0",
11+
"com.unity.modules.animation": "1.0.0",
12+
"com.unity.modules.assetbundle": "1.0.0",
13+
"com.unity.modules.audio": "1.0.0",
14+
"com.unity.modules.cloth": "1.0.0",
15+
"com.unity.modules.director": "1.0.0",
16+
"com.unity.modules.imageconversion": "1.0.0",
17+
"com.unity.modules.imgui": "1.0.0",
18+
"com.unity.modules.jsonserialize": "1.0.0",
19+
"com.unity.modules.particlesystem": "1.0.0",
20+
"com.unity.modules.physics": "1.0.0",
21+
"com.unity.modules.physics2d": "1.0.0",
22+
"com.unity.modules.screencapture": "1.0.0",
23+
"com.unity.modules.terrain": "1.0.0",
24+
"com.unity.modules.terrainphysics": "1.0.0",
25+
"com.unity.modules.tilemap": "1.0.0",
26+
"com.unity.modules.ui": "1.0.0",
27+
"com.unity.modules.uielements": "1.0.0",
28+
"com.unity.modules.umbra": "1.0.0",
29+
"com.unity.modules.unityanalytics": "1.0.0",
30+
"com.unity.modules.unitywebrequest": "1.0.0",
31+
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
32+
"com.unity.modules.unitywebrequestaudio": "1.0.0",
33+
"com.unity.modules.unitywebrequesttexture": "1.0.0",
34+
"com.unity.modules.unitywebrequestwww": "1.0.0",
35+
"com.unity.modules.vehicles": "1.0.0",
36+
"com.unity.modules.video": "1.0.0",
37+
"com.unity.modules.vr": "1.0.0",
38+
"com.unity.modules.wind": "1.0.0",
39+
"com.unity.modules.xr": "1.0.0"
40+
}
41+
}

example/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Unity Example App
2+
3+
This Application was made to demonstrate various features of the BugSnag Unity notifier.
4+
5+
## Features including:
6+
<ul>
7+
<li>Handled errors and exceptions: Events which can be handled gracefully can also be reported to BugSnag</li>
8+
<li>Crashes: Events which terminate the app are sent to Bugsnag automatically. Reopen the app after a crash to send reports.</li>
9+
<li>Android specific crashes: Native, segfaults, C++, JVM & ANR exceptions. Reopen the app after a crash to send reports</li>
10+
<li>Cocoa sepecific crashes: Native, C++, OOM & App Hangs. Reopen the app after a crash to send reports</li>
11+
</ul>
12+
13+
14+
## Running the app
15+
16+
<ol>
17+
<li>Clone the repo </li>
18+
```
19+
git clone [email protected]:bugsnag/bugsnag-unity.git --recursive
20+
```
21+
<li>Once the project has opened in Unity</li>
22+
<li>Navigate to `Windows>Bugsnag>Configuration`</li>
23+
<li>Enter your Bugsnag project API Key under the basic Configuration section of the package window</li>
24+
<li>Press `Play` in the editor</li>
25+
<li>Once loaded, click any of the error buttons</li>
26+
<li>Confirm whether the BugSnag dashboard has received the error.</li>
27+
</ol>
28+
29+
For more configuration and full information please read the documentation at
30+
https://docs.bugsnag.com/platforms/unity/configuration-options/
31+

features/android/android_jvm_errors.feature

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Feature: Android JVM Exceptions
3333
And the event "exceptions.0.stacktrace.0.lineNumber" equals 13
3434
And the error payload field "events.0.threads" is null
3535

36-
#NOTE: Metadata testing will be improved in this scenario after PLAT-9127
3736
Scenario: Android JVM Background Thread Smoke Test
3837
When I run the game in the "AndroidBackgroundJVMSmokeTest" state
3938
And I wait for 2 seconds
@@ -44,6 +43,7 @@ Feature: Android JVM Exceptions
4443
And expected device metadata is included in the event
4544
And expected app metadata is included in the event
4645
And feature flags are included in the event
46+
And custom metadata is included in the event
4747
And the event "breadcrumbs.0.name" equals "Bugsnag loaded"
4848
And the event "breadcrumbs.1.name" equals "test"
4949
And the event "user.id" equals "1"
@@ -65,13 +65,6 @@ Feature: Android JVM Exceptions
6565
And the event "exceptions.0.stacktrace.0.lineNumber" equals 19
6666
And the error payload field "events.0.threads" is not null
6767

68-
# Metadata
69-
And the event "metaData.init" is null
70-
And the event "metaData.custom.letter" equals "QX"
71-
And the event "metaData.custom.better" equals "400"
72-
And the event "metaData.test.test1" equals "test1"
73-
And the event "metaData.test.test2" is null
74-
7568
And the error payload field "events.0.usage.config" is not null
7669
And the error payload field "events.0.usage.callbacks.onSession" equals 1
7770

features/android/android_ndk_errors.feature

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Feature: Android NDK crash
2929
And the event "severityReason.type" equals "signal"
3030
And the event "severityReason.attributes.signalType" equals "SIGSEGV"
3131
And the event "severityReason.unhandledOverridden" is false
32+
And custom metadata is included in the event
3233
And expected app metadata is included in the event
3334
# Stacktrace validation
3435
And the error payload field "events.0.exceptions.0.stacktrace" is a non-empty array
@@ -45,9 +46,4 @@ Feature: Android NDK crash
4546
# Native context override
4647
And the event "context" equals "My Context"
4748

48-
# Metadata
49-
And the event "metaData.init" is null
50-
And the event "metaData.custom.letter" equals "QX"
51-
And the event "metaData.custom.better" equals "400"
52-
And the event "metaData.test.test1" equals "test1"
53-
And the event "metaData.test.test2" is null
49+

features/csharp/csharp_events.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,10 @@ Feature: csharp events
167167
And the event "severityReason.type" equals "userSpecifiedSeverity"
168168
And the event "unhandled" is false
169169

170+
Scenario: Discard event after serialisation error
171+
When I run the game in the "SerialisationError" state
172+
And I wait to receive 1 error
173+
And the exception "message" equals "SerialisationError"
174+
175+
170176

0 commit comments

Comments
 (0)