Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
95424be
fix
marandaneto Oct 27, 2020
9e22b47
Update src/platforms/flutter/index.mdx
marandaneto Oct 27, 2020
1052fb9
added missing docs
marandaneto Oct 28, 2020
2e0feb3
Update src/includes/configure-scope/flutter.mdx
marandaneto Oct 28, 2020
07c46c0
Update src/includes/sensitive-data/set-tag/flutter.mdx
marandaneto Oct 28, 2020
72bd0b0
Update src/includes/sensitive-data/set-user/flutter.mdx
marandaneto Oct 28, 2020
c3f4863
fix
marandaneto Oct 28, 2020
32873b3
added missing docs
marandaneto Oct 28, 2020
f0e6844
fix
marandaneto Oct 28, 2020
449c51e
fix
marandaneto Oct 28, 2020
3f4ebfe
fix
marandaneto Oct 28, 2020
749de8c
wizard
marandaneto Oct 28, 2020
b5acf5b
fixes
marandaneto Oct 28, 2020
6118def
import
marandaneto Oct 28, 2020
5e19fcd
Update src/platforms/flutter/index.mdx
marandaneto Oct 28, 2020
e68c585
Update src/wizard/flutter/index.md
marandaneto Oct 28, 2020
c97b4a2
Update src/includes/configuration/config-intro/flutter.mdx
marandaneto Oct 29, 2020
be0c372
Update src/includes/configuration/sample-rate/flutter.mdx
marandaneto Oct 29, 2020
dde61c9
Update src/includes/set-tag/flutter.mdx
marandaneto Oct 29, 2020
db8514a
Update src/includes/set-environment/flutter.mdx
marandaneto Oct 29, 2020
82b5a62
Update src/platforms/flutter/index.mdx
marandaneto Oct 29, 2020
b122ad4
Update src/platforms/flutter/index.mdx
marandaneto Oct 29, 2020
2bdfb17
Update src/includes/capture-error/flutter.mdx
marandaneto Oct 30, 2020
ec5cc38
Update src/includes/capture-error/flutter.mdx
marandaneto Oct 30, 2020
c0f1b6a
Update src/includes/capture-message/flutter.mdx
marandaneto Oct 30, 2020
15f0de2
Update src/includes/getting-started-verify/flutter.mdx
marandaneto Oct 30, 2020
e22b3a8
Update src/includes/set-user/flutter.mdx
marandaneto Oct 30, 2020
1158de1
Update src/includes/getting-started-verify/flutter.mdx
marandaneto Oct 30, 2020
f68660f
fix examples
marandaneto Oct 30, 2020
0af20ff
Merge branch 'master' into ref/flutter-v4
marandaneto Nov 23, 2020
a8ebb39
add new platform
marandaneto Nov 24, 2020
9fecdd6
add index
marandaneto Nov 24, 2020
e7b0203
rename files
marandaneto Nov 24, 2020
3585c1a
ref
marandaneto Nov 24, 2020
be43f25
no need of future main methods
marandaneto Nov 24, 2020
8048aec
fix dart files
marandaneto Nov 24, 2020
5315d67
add specific Flutter files
marandaneto Nov 24, 2020
77aeac7
add drain example for Flutter
marandaneto Nov 24, 2020
0a0267f
fix wizard
marandaneto Nov 24, 2020
965ed3b
adding missing futures
marandaneto Nov 25, 2020
9131542
fix
marandaneto Nov 25, 2020
2b8d832
added missing focs
marandaneto Nov 25, 2020
98944b3
fix
marandaneto Nov 25, 2020
9d13d25
add prime content
marandaneto Nov 25, 2020
7ff5ac2
fixes
marandaneto Nov 25, 2020
3557f31
remove main method from non init methods
marandaneto Nov 25, 2020
6aaa299
fix
marandaneto Nov 25, 2020
23a9774
workaround
marandaneto Nov 25, 2020
6226987
remove links
marandaneto Nov 25, 2020
4ba299f
fixes
marandaneto Nov 25, 2020
ef0c598
fix
marandaneto Nov 25, 2020
ad64d3e
add next steps
marandaneto Nov 25, 2020
5345289
added dart and flutter to not supported for PII
marandaneto Nov 25, 2020
94eb169
remove duplicated next steps
marandaneto Nov 25, 2020
bb1389c
hide user feedback for flutter
marandaneto Nov 26, 2020
2f66247
add caveat section
marandaneto Nov 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added missing focs
  • Loading branch information
marandaneto committed Nov 25, 2020
commit 2b8d832ef7f514af9c8f8812b940ae7d288e6000
5 changes: 5 additions & 0 deletions src/includes/getting-started-primer/flutter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Note>

_Sentry's Flutter SDK enables capturing sessions for Release Health, offline caching as well as reporting messages and errors._

</Note>
9 changes: 9 additions & 0 deletions src/platforms/dart/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
title: Dart
---

Pure Dart SDK used by any Dart application like AngularDart, CLI and Server.

<Alert level="warning" title="Note">

The Dart SDK v4.0.0 is a Prelease and is under improvements and testing.
Latest stable version is v3.0.1, See #Resources

</Alert>

Get the SDK from [pub.dev](https://pub.dev/packages/sentry) by adding the following to your `pubspec.yaml`:

<PlatformContent includePath="getting-started-install" />
Expand Down
14 changes: 14 additions & 0 deletions src/platforms/dart/usage/advanced-usage.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Advanced Usage
sidebar_order: 2
---

## Requirements

- For the use of the SDK, the minimal required Dart SDK version is `2.8.0` and Flutter SDK version is `1.17.0`

## Tips for catching errors

- Use a `try/catch` block
- Use a `catchError` block for `Futures`
- Add an `ErrorListener` to your `Isolates` and call `Sentry.captureException`
9 changes: 9 additions & 0 deletions src/platforms/flutter/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
title: Flutter
---

Flutter SDK which depends on the [Dart SDK](/platforms/dart/) and includes support to native crashes through Sentry's native SDKs (Android and iOS), It'll capture errors in the native layer, including Java, Kotlin, C and C++ code for Android and ObjC, Swift and C for iOS.

<Alert level="warning" title="Note">

The Flutter SDK is a Prelease and is under improvements and testing.
Latest stable version is the Dart SDK v3.0.1, See #Resources

</Alert>

Get the SDK from [pub.dev](https://pub.dev/packages/sentry_flutter) by adding the following to your `pubspec.yaml`:

<PlatformContent includePath="getting-started-install" />
Expand Down
34 changes: 34 additions & 0 deletions src/platforms/flutter/usage/advanced-usage.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: Advanced Usage
sidebar_order: 2
---

## Requirements

- For the use of the SDK, the minimal required Dart SDK version is `2.8.0` and Flutter SDK version is `1.17.0`

## Uploading Debug Symbols (Android and iOS)

- [iOS dSYM files](/platforms/apple/dsym/)
- [Android NDK](/product/cli/dif/#uploading-files) Do it manually, Do not use the `uploadNativeSymbols` flag from the Sentry Gradle Plugin, it's not supported yet.
- [Android Proguard/R8 mapping file](/platforms/android/proguard/)
- [Flutter Web Source maps](/product/cli/releases/#managing-release-artifacts)

## Known limitations

- Flutter `split-debug-info` flag isn't supported yet, if this feature is enabled, Dart stack traces are not useful
- Flutter `obfuscate` flag isn't supported yet, if this feature is enabled, Dart stack traces are not useful

## Tips for catching errors

- Use a `try/catch` block
- Use a `catchError` block for `Futures`
- The SDK already runs your init `callback` on an error handler, e.g. using `runZonedGuarded`, are captured automatically
- Flutter-specific errors (such as layout failures), e.g. using `FlutterError.onError`, are captured automatically
- `Isolate` errors on the `current` Isolate which is the equivalent of a main/UI thread, e.g. using `Isolate.current.addErrorListener`, are captured automatically (Only for non-Web Apps).
- For your own `Isolates`, add an `ErrorListener` and call `Sentry.captureException`

## Advanced Usage (Android and iOS)

- [iOS Advanced Usage](/platforms/apple/usage/)
- [Android Advanced Usage](/platforms/android/usage/advanced-usage/)