Skip to content

Commit 5636bdc

Browse files
authored
Document the variant filtering feature (#3991)
1 parent ecc2735 commit 5636bdc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/platforms/android/common/proguard.mdx

+30
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,33 @@ And, add to `multidex-config.pro` the following lines:
137137
```
138138

139139
If you experience issues like `Could not find class` on devices running the `Dalvik VM`, you may expand the above rules to keep the necessary classes in the main dex file.
140+
141+
### Variant Filtering
142+
143+
You can specify which variant/flavor/build-type should be ignored by Sentry in your `app/build.gradle` file:
144+
145+
```groovy
146+
sentry {
147+
// List the build types that should be ignored (e.g. "release").
148+
ignoredBuildTypes = ["release"]
149+
150+
// List the build flavors that should be ignored (e.g. "production").
151+
ignoredFlavors = ["production"]
152+
153+
// List the build variant that should be ignored (e.g. "productionRelease").
154+
ignoredVariants = ["productionRelease"]
155+
}
156+
```
157+
158+
```kotlin
159+
sentry {
160+
// List the build types that should be ignored (e.g. "release").
161+
ignoredBuildTypes = listOf("release")
162+
163+
// List the build flavors that should be ignored (e.g. "production").
164+
ignoredFlavors = listOf("production")
165+
166+
// List the build variant that should be ignored (e.g. "productionRelease").
167+
ignoredVariants = listOf("productionRelease")
168+
}
169+
```

0 commit comments

Comments
 (0)