-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from bugsnag/releases/v3.1.0
Release v3.1.0
- Loading branch information
Showing
13 changed files
with
178 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "packages/bugsnag_http_client"] | ||
path = packages/bugsnag_http_client | ||
url = git@github.com:bugsnag/bugsnag-flutter-http-client.git | ||
[submodule "packages/bugsnag_flutter_dart_io_http_client"] | ||
path = packages/bugsnag_flutter_dart_io_http_client | ||
url = git@github.com:bugsnag/bugsnag-flutter-dart-io-http-client.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
features/fixtures/app/lib/scenarios/dart_io_http_breadcrumb_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import 'package:MazeRunner/scenarios/scenario.dart'; | ||
import 'package:bugsnag_flutter/bugsnag_flutter.dart'; | ||
import 'package:bugsnag_flutter_dart_io_http_client/bugsnag_flutter_dart_io_http_client.dart' as dart_io; | ||
|
||
|
||
class DartIoHttpBreadcrumbScenario extends Scenario { | ||
@override | ||
Future<void> run() async { | ||
dart_io.addSubscriber(bugsnag.networkInstrumentation); | ||
await bugsnag.start( | ||
enabledBreadcrumbTypes: {BugsnagEnabledBreadcrumbType.state}, | ||
endpoints: endpoints, | ||
); | ||
|
||
final client = dart_io.HttpClient(); | ||
try { | ||
final request = await client.getUrl(Uri.parse('http://www.google.com?test=test')); | ||
await request.close(); | ||
} finally { | ||
client.close(); | ||
} | ||
await bugsnag.notify(Exception('DartIoHttpBreadcrumbScenario'), null); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
features/fixtures/app/lib/scenarios/http_breadcrumb_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:MazeRunner/scenarios/scenario.dart'; | ||
import 'package:bugsnag_flutter/bugsnag_flutter.dart'; | ||
import 'package:bugsnag_http_client/bugsnag_http_client.dart' as http; | ||
|
||
class HttpBreadcrumbScenario extends Scenario { | ||
@override | ||
Future<void> run() async { | ||
http.addSubscriber(bugsnag.networkInstrumentation); | ||
await bugsnag.start( | ||
enabledBreadcrumbTypes: {BugsnagEnabledBreadcrumbType.state}, | ||
endpoints: endpoints, | ||
); | ||
await http.get(Uri.parse("http://www.google.com?test=test")); | ||
await bugsnag.notify(Exception('HttpBreadcrumbScenario'), null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule bugsnag_flutter_dart_io_http_client
added at
be5141
Submodule bugsnag_http_client
added at
04a691