Commit 46e6287
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 Sentry1 parent 240dc33 commit 46e6287
File tree
22 files changed
+1534
-1105
lines changed- .idea
- lib
- src
- test
- tool
22 files changed
+1534
-1105
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments