You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/platforms/android/common/proguard.mdx
+30
Original file line number
Diff line number
Diff line change
@@ -137,3 +137,33 @@ And, add to `multidex-config.pro` the following lines:
137
137
```
138
138
139
139
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").
0 commit comments