Skip to content

Commit af2d854

Browse files
authored
refactor: migrate dart related platform-includes to inline product option syntax (#13443)
missed during #13414
1 parent 01a9dbc commit af2d854

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

platform-includes/debug-symbols/dart-plugin/dart.flutter.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,21 @@ The Sentry Dart Plugin requires basic configuration in your `pubspec.yaml` file:
1919
]}
2020
/>
2121

22-
```yaml {filename:pubspec.yaml} {"onboardingOptions": {"source-context": "7-8", "source-maps": "9-10"}}
22+
```yaml {filename:pubspec.yaml}
2323
sentry:
2424
project: ___PROJECT_SLUG___
2525
org: ___ORG_SLUG___
2626
auth_token: ___ORG_AUTH_TOKEN___
2727
# Disable automatic upload of debug symbols
2828
# upload_debug_symbols: false
29+
# ___PRODUCT_OPTION_START___ source-context
2930
# Enable source context
3031
upload_source_context: true
32+
# ___PRODUCT_OPTION_END___ source-context
33+
# ___PRODUCT_OPTION_START___ source-maps
3134
# Enable source maps
3235
upload_source_maps: true
36+
# ___PRODUCT_OPTION_END___ source-maps
3337
```
3438

3539
<OnboardingOption optionId="dsym">

platform-includes/debug-symbols/dart-plugin/dart.mdx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,21 @@ The Sentry Dart Plugin requires basic configuration in your `pubspec.yaml` file:
1919
]}
2020
/>
2121

22-
```yaml {filename:pubspec.yaml} {"onboardingOptions": {"source-context": "7-8", "source-maps": "9-10"}}
22+
```yaml {filename:pubspec.yaml}
2323
sentry:
2424
project: ___PROJECT_SLUG___
2525
org: ___ORG_SLUG___
2626
auth_token: ___ORG_AUTH_TOKEN___
2727
# Disable automatic upload of debug symbols
2828
# upload_debug_symbols: false
29+
# ___PRODUCT_OPTION_START___ source-context
2930
# Enable source context
3031
upload_source_context: true
32+
# ___PRODUCT_OPTION_END___ source-context
33+
# ___PRODUCT_OPTION_START___ source-maps
3134
# Enable source maps
3235
upload_source_maps: true
36+
# ___PRODUCT_OPTION_END___ source-maps
3337
```
3438

3539
<OnboardingOption optionId="dsym">
@@ -82,7 +86,7 @@ If you don't obfuscate your build, the plugin won't upload debug symbols. Additi
8286
If you have ProGuard (`minifyEnabled`) enabled and you want to see proper native Android stacktraces, you must upload Android Proguard/R8 mapping files. You have two options:
8387

8488
1. **Use the Sentry Android Gradle Plugin (Recommended)**
85-
89+
8690
After installing the [Sentry Android Gradle Plugin](/platforms/android/configuration/gradle/), set `autoInstallation` to `false` in your `app/build.gradle` file:
8791

8892
```groovy {filename: app/build.gradle}
@@ -92,13 +96,13 @@ If you have ProGuard (`minifyEnabled`) enabled and you want to see proper native
9296
}
9397
}
9498
```
95-
99+
96100
This is necessary because Sentry Flutter already ships with a compatible Sentry Android SDK, so we need to avoid conflicts.
97-
101+
98102
Follow the [Android Gradle Plugin guide](/platforms/android/configuration/gradle/#proguardr8--dexguard) to complete the ProGuard mapping setup.
99103

100104
2. **Use the Sentry CLI**
101-
105+
102106
Alternatively, you can use the [Sentry CLI](/cli/dif/#uploading-files) to manually upload mapping files.
103107

104108
<Alert>

0 commit comments

Comments
 (0)