Skip to content

Commit 7786587

Browse files
committed
Update
1 parent 0e9c250 commit 7786587

File tree

3 files changed

+12
-230
lines changed

3 files changed

+12
-230
lines changed

docs/platforms/dart/common/metrics/index.mdx

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

docs/platforms/dart/guides/flutter/metrics/index.mdx

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

docs/platforms/dart/guides/flutter/native-init.mdx

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,10 @@ By default, the Flutter SDK initializes the native SDK underneath the `init` met
88

99
To do this, set [autoInitializeNativeSdk](/platforms/dart/guides/flutter/configuration/options/#autoInitializeNativeSdk) to `false` in the init options:
1010

11-
12-
```dart
13-
import 'package:flutter/widgets.dart';
14-
import 'package:sentry_flutter/sentry_flutter.dart';
15-
16-
Future<void> main() async {
17-
await SentryFlutter.init(
18-
(options) => options
19-
..dsn = '___PUBLIC_DSN___'
20-
..autoInitializeNativeSdk = false,
21-
appRunner: () => runApp(MyApp()),
22-
);
23-
}
11+
```dart {2}
12+
await SentryFlutter.init((options) {
13+
options.autoInitializeNativeSdk = false;
14+
}, appRunner: () => runApp(SentryWidget(child: const MyApp())));
2415
```
2516

2617
This will prevent the Flutter SDK from initializing the native SDKs automatically.
@@ -29,7 +20,12 @@ Next, initialize the native SDKs as specified in the guides below.
2920

3021
- [Android](/platforms/android/configuration/manual-init/#manual-initialization)
3122
- [iOS](/platforms/apple/guides/ios/manual-setup/)
32-
- [Browser](/platforms/javascript/install/loader)
33-
- For the browser SDK, you will need to inject the loader script manually into your HTML's `<head>` tag.
23+
- [Browser](/platforms/javascript/#configure)
24+
25+
<Alert>
26+
27+
For Web you will need to install the JavaScript SDK by injecting the loader script manually into your HTML's `<head>` tag.
28+
29+
The Android and iOS SDKs are already packaged with the Flutter SDK.
3430

35-
Note that you do not need to install the native Android and iOS SDKs as they are already packaged with the Flutter SDK.
31+
</Alert>

0 commit comments

Comments
 (0)