Skip to content

Commit 5a02631

Browse files
committed
Merge branch 'master' into next
2 parents 33474cd + 6283ea2 commit 5a02631

File tree

11 files changed

+305
-232
lines changed

11 files changed

+305
-232
lines changed

.github/ISSUE_TEMPLATE/A.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
---
2-
name: Having trouble getting started?
3-
about: Please contact us at [email protected] for assistance with integrating Bugsnag
4-
into your application.
5-
6-
---
7-
8-
<!--
9-
10-
Are you having trouble getting started? Please contact us directly at [email protected] for assistance with integrating Bugsnag into your application.
11-
12-
-->
1+
---
2+
name: Having trouble getting started?
3+
about: Please contact us at [email protected] for assistance with integrating Bugsnag
4+
into your application.
5+
title: ''
6+
labels: ''
7+
assignees: ''
8+
9+
---
10+
Please checkout our [documentation](https://docs.bugsnag.com/platforms/unity/) for guides, references and tutorials.
11+
12+
If you have questions about your integration please contact us at [[email protected]](mailto:[email protected]).
13+
14+
Alternatively, view additional options at [support.md](../SUPPORT.md).
Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,55 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve the library
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
48
---
59

10+
<!-- Before raising, please check if somebody else has already reported your issue. -->
11+
12+
### Describe the bug
13+
A clear and concise description of what the bug is.
14+
15+
### Steps to reproduce
16+
1. Go to '...'
17+
2. Click on '....'
18+
3. Scroll down to '....'
19+
4. See error
620

7-
### Description
8-
<!-- A quick description of what you're trying to accomplish -->
21+
### Environment
22+
* Bugsnag version:
23+
* Unity version:
24+
* iOS/Android/macOS/Windows/browser version:
25+
* simulator/emulator or physical device:
26+
* Initializing bugsnag via a Unity GameObject or in code?:
27+
* Player Settings:
28+
* Scripting backend (Mono or IL2CPP):
29+
* API compatibility level for .NET:
30+
* Stack Trace level for all error types (None/ScriptOnly/Full):
931

10-
### Issue
1132
<!--
12-
What went wrong?
33+
Below are a few approaches you might take to communicate the issue, in
34+
descending order of awesomeness. Please choose one and feel free to delete
35+
the others from this template.
1336
-->
1437

15-
### Environment
38+
### Example Repo <!-- Option 1 -->
1639

17-
* bugsnag-unity version:
18-
* Unity version:
19-
* Operating system name and version:
20-
* Target platform names and versions:
21-
* Initializing bugsnag via the Unity UI or in code?
40+
- [ ] Create a minimal repository that can reproduce the issue
41+
- [ ] Link to it here:
2242

23-
### Example code snippet
43+
### Example code snippet <!-- Option 2 -->
2444

25-
<!-- Code snippet demonstrating your configuration and/or the problem -->
45+
```
46+
# (Insert code sample to reproduce the problem)
47+
```
2648

27-
```cs
49+
<!-- Error messages, if any -->
50+
<details><summary>Error messages:</summary>
51+
52+
```
2853
2954
```
55+
</details>
Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
---
2-
name: Feature request
3-
about: Suggest an idea for this project
4-
5-
---
6-
7-
### Description
8-
<!-- Is your feature request related to a problem? Please describe.
9-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10-
-->
11-
12-
**Describe the solution you'd like**
13-
<!-- A clear and concise description of what you want to happen. -->
14-
15-
**Describe alternatives you've considered**
16-
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
17-
18-
**Additional context**
19-
Add any other context about the feature request here.
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Before creating, please check if somebody else has already reported your feature request. -->
11+
12+
### Description
13+
<!-- Is your feature request related to a problem? Please describe.
14+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
15+
-->
16+
17+
**Describe the solution you'd like**
18+
<!-- A clear and concise description of what you want to happen. -->
19+
20+
**Describe alternatives you've considered**
21+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
22+
23+
**Additional context**
24+
<!--Add any other context about the feature request here.-->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,16 @@
11
## Goal
22

3-
<!-- What is the intent of this change?
4-
e.g. "When initializing the Bugsnag client, it is currently difficult to (...)
5-
this change simplifies the process by (...)"
6-
7-
"Improves the performance of data filtering"
8-
9-
"Adds additional test coverage to multi-threaded use of Configuration
10-
objects"
11-
-->
12-
13-
<!-- For new features, include design documentation:
3+
<!-- Why is this change necessary? -->
144

155
## Design
166

17-
Why was this approach to the goal used?
18-
19-
-->
7+
<!-- Why was this approach used? -->
208

219
## Changeset
2210

23-
<!-- What structures or properties or functions were:
24-
25-
### Added
26-
27-
### Removed
28-
29-
### Changed
30-
31-
-->
32-
33-
## Tests
34-
35-
<!-- How was this change tested? What manual and automated tests were
36-
run/added? -->
37-
38-
## Discussion
39-
40-
### Alternative Approaches
41-
42-
<!-- What other approaches were considered or discussed? -->
43-
44-
### Outstanding Questions
45-
46-
<!-- Are there any parts of the design or the implementation which seem
47-
less than ideal and that could require additional discussion?
48-
List here: -->
49-
50-
### Linked issues
51-
52-
<!--
53-
54-
Fixes #
55-
Related to #
56-
57-
-->
58-
59-
## Review
60-
61-
<!-- When submitting for review, consider the points for self-review and the
62-
criteria which will be used for secondary review -->
63-
64-
For the submitter, initial self-review:
65-
66-
- [ ] Commented on code changes inline explain the reasoning behind the approach
67-
- [ ] Reviewed the test cases added for completeness and possible points for discussion
68-
- [ ] A changelog entry was added for the goal of this pull request
69-
- [ ] Check the scope of the changeset - is everything in the diff required for the pull request?
70-
- This pull request is ready for:
71-
- [ ] Initial review of the intended approach, not yet feature complete
72-
- [ ] Structural review of the classes, functions, and properties modified
73-
- [ ] Final review
11+
<!-- What changed? -->
7412

75-
For the pull request reviewer(s), this changeset has been reviewed for:
13+
## Testing
7614

77-
- [ ] Consistency across platforms for structures or concepts added or modified
78-
- [ ] Consistency between the changeset and the goal stated above
79-
- [ ] Internal consistency with the rest of the library - is there any overlap between existing interfaces and any which have been added?
80-
- [ ] Usage friction - is the proposed change in usage cumbersome or complicated?
81-
- [ ] Performance and complexity - are there any cases of unexpected O(n^3) when iterating, recursing, flat mapping, etc?
82-
- [ ] Concurrency concerns - if components are accessed asynchronously, what issues will arise
83-
- [ ] Thoroughness of added tests and any missing edge cases
84-
- [ ] Idiomatic use of the language
15+
<!-- How was it tested? What manual and automated tests were
16+
run/added? -->

.github/SUPPORT.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1-
Are you having trouble getting started?
2-
Please [contact us directly](mailto:support@bugsnag.com) for assistance with integrating Bugsnag into your application.
1+
## Are you having trouble getting started?
2+
If you haven't already, please checkout our [documentation](https://docs.bugsnag.com/platforms/unity/) for guides, references and tutorials.
33

4-
Include the following information to help us understand your environment:
4+
Or, if you wish you can [contact us directly](mailto:[email protected]) for assistance on integrating Bugsnag into your application, troubleshooting an issue or a question about our supported features.
55

6-
* bugsnag-unity version
7-
* Unity version
8-
* Operating system name and version
9-
* Target platform names and versions
6+
When contacting support, please include as much information as necessary, including:
7+
8+
- example code snippet
9+
- steps to reproduce
10+
- expected/actual behaviour
11+
12+
* Bugsnag version:
13+
* Unity version:
14+
* iOS/Android/macOS/Windows/browser version:
15+
* simulator/emulator or physical device:
16+
* Initializing bugsnag via a Unity GameObject or in code?:
17+
* Player Settings:
18+
* Scripting backend (Mono or IL2CPP):
19+
* API compatibility level for .NET:
20+
* Stack Trace level for all error types (None/ScriptOnly/Full):
21+
22+
## Bug or Feature Requests
23+
If you would like to raise a bug or feature request please do so by creating a [New Issue](https://github.com/bugsnag/bugsnag-unity/issues/new/choose) and selecting bug or feature.
24+
Please note: we cannot promise that we will fulfil all requests
25+
26+
## Pull Requests
27+
If you have made a fix and would like to raise a pull request, please read our [CONTRIBUTING.md](../CONTRIBUTING.md) file before creating the pull request.

CHANGELOG.md

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

3+
## 4.8.3 (2020-06-10)
4+
5+
### Bug fixes
6+
7+
* Delete local JNI references to avoid leaks
8+
[#198](https://github.com/bugsnag/bugsnag-unity/pull/198)
9+
10+
* Add option to `Configuration` to prevent automatic breadcrumb collection
11+
[#199](https://github.com/bugsnag/bugsnag-unity/pull/199)
12+
13+
## 4.8.2 (2020-03-31)
14+
15+
### Bug fixes
16+
17+
* Avoid using deprecated AndroidJNI API in Unity 2019
18+
[#194](https://github.com/bugsnag/bugsnag-unity/pull/194)
19+
20+
## 4.8.1 (2020-02-04)
21+
22+
### Bug fixes
23+
24+
* (Android) Propagate non-string arguments to native android layer correctly
25+
[#191](https://github.com/bugsnag/bugsnag-unity/pull/191)
26+
327
## 4.8.0 (2020-01-27)
428

529
### Enhancements

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 = "4.8.0";
8+
var version = "4.8.3";
99

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

src/BugsnagUnity/Client.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void Notify(string condition, string stackTrace, LogType logType)
127127
{
128128
var logMessage = new UnityLogMessage(condition, stackTrace, logType);
129129
var shouldSend = Exception.ShouldSend(logMessage)
130-
&& UniqueCounter.ShouldSend(logMessage)
130+
&& UniqueCounter.ShouldSend(logMessage)
131131
&& LogTypeCounter.ShouldSend(logMessage);
132132
if (shouldSend)
133133
{
@@ -138,7 +138,7 @@ void Notify(string condition, string stackTrace, LogType logType)
138138
Notify(new Exception[]{exception}, exception.HandledState, null, logType);
139139
}
140140
}
141-
else
141+
else if (logType.IsGreaterThanOrEqualTo(Configuration.BreadcrumbLogLevel))
142142
{
143143
Breadcrumbs.Leave(logType.ToString(), BreadcrumbType.Log, new Dictionary<string, string> {
144144
{ "message", condition },

src/BugsnagUnity/Configuration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ protected virtual void SetupDefaults(string apiKey)
3535

3636
public virtual TimeSpan UniqueLogsTimePeriod { get; set; } = TimeSpan.FromSeconds(5);
3737

38+
public virtual LogType BreadcrumbLogLevel { get; set; } = LogType.Log;
39+
3840
public virtual string ApiKey { get; protected set; }
3941

4042
public virtual int MaximumBreadcrumbs { get; set; } = 25;

src/BugsnagUnity/IConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public interface IConfiguration
1212

1313
TimeSpan MaximumLogsTimePeriod { get; }
1414

15+
LogType BreadcrumbLogLevel { get; set; }
16+
1517
Dictionary<LogType, int> MaximumTypePerTimePeriod { get; }
1618

1719
TimeSpan UniqueLogsTimePeriod { get; set; }

0 commit comments

Comments
 (0)