feat: rework Sentry disabling logic for benchmark builds

This commit is contained in:
Harsh Shandilya 2023-04-15 22:59:57 +05:30
parent 8b7bcaa92f
commit a2157ae618
No known key found for this signature in database
3 changed files with 7 additions and 4 deletions

View file

@ -21,7 +21,6 @@ import org.gradle.kotlin.dsl.getByType
class SentryPlugin : Plugin<Project> {
override fun apply(project: Project) {
if (project.providers.environmentVariable("CI_BENCHMARK").isPresent) return
project.pluginManager.withPlugin("com.android.application") {
val catalog = project.extensions.getByType<VersionCatalogsExtension>()
val libs = catalog.named("libs")