File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
platform/jvm/gradle-test-app/src/main/java/io/bitdrift/gradletestapp Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ internal class StrictModeReporter {
2222 fun onViolation (violationType : ViolationType , violation : Violation ) {
2323 val cause = violation.toString()
2424 val stackTrace = Log .getStackTraceString(violation)
25+ if (KNOWN_ISSUES_LIST .any { stackTrace.contains(it) }) {
26+ // Avoid emitting for known violations
27+ return
28+ }
2529 val strictModeFields = mapOf (
2630 " strict_mode_reason" to violation.toString(),
2731 " strict_mode_stack_trace" to stackTrace
@@ -34,4 +38,8 @@ internal class StrictModeReporter {
3438 VM ,
3539 THREAD
3640 }
41+
42+ private companion object {
43+ val KNOWN_ISSUES_LIST = listOf (" Sentry" , " BugSnag" )
44+ }
3745}
You can’t perform that action at this time.
0 commit comments