Skip to content

Commit 46e6287

Browse files
lejard-hyjbanov
authored andcommitted
Add web support (#22)
- [x] Refactor to support browser + `SentryClient` from `package:sentry/sentry.dart` with conditional import + `SentryBrowserClient` for web from `package:sentry/browser_client.dart` + `SentryIOClient` for VM and Flutter from `package:sentry/io_client.dart` - [x] Write test for browser - [x] Working Angular Sentry packages => https://github.com/leftyio/angular_sentry Main implementation differences are: - gzip compression is provided implicitly by the browser - javascript stacktraces need to be prefix with `window.location.origin` to be resolve by Sentry
1 parent 240dc33 commit 46e6287

22 files changed

+1534
-1105
lines changed

.idea/sentry.iml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
sudo: required
2+
addons:
3+
chrome: stable
4+
15
language: dart
26
dart:
37
- stable

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# package:sentry changelog
22

3+
## 3.0.0
4+
5+
- Support Web
6+
- `SentryClient` from `package:sentry/sentry.dart` with conditional import
7+
- `SentryBrowserClient` for web from `package:sentry/browser_client.dart`
8+
- `SentryIOClient` for VM and Flutter from `package:sentry/io_client.dart`
9+
310
## 2.3.1
411

512
- Support non-standard port numbers and paths in DSN URL.

lib/browser_client.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2017 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
export 'src/base.dart';
6+
export 'src/version.dart';
7+
export 'src/browser.dart';

lib/io_client.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2017 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
export 'src/base.dart';
6+
export 'src/version.dart';
7+
export 'src/io.dart';

0 commit comments

Comments
 (0)