Skip to content

Commit e1b07be

Browse files
Ignore java.time.Instant and SentryWrapper in animalsniffer
1 parent 812fec8 commit e1b07be

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sentry/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ tasks.jacocoTestReport {
4848
}
4949
}
5050

51+
animalsniffer {
52+
ignore = listOf(
53+
// We manually check on Android if it's available (API 26+).
54+
"java.time.Instant",
55+
)
56+
}
57+
58+
tasks.animalsnifferMain {
59+
// Uses java.util.function.Supplier, but must be manually invoked.
60+
exclude("**/io/sentry/SentryWrapper.class")
61+
}
62+
5163
tasks {
5264
jacocoTestCoverageVerification {
5365
violationRules { rule { limit { minimum = Config.QualityPlugins.Jacoco.minimumCoverage } } }

0 commit comments

Comments
 (0)