fix(build): skip Sentry setup for CI benchmarks

This commit is contained in:
Harsh Shandilya 2023-03-06 03:17:30 +05:30
parent ab905d4061
commit a26fd0862f
2 changed files with 2 additions and 0 deletions

View file

@ -9,6 +9,7 @@ on:
env: env:
AVD_API_LEVEL: 31 AVD_API_LEVEL: 31
AVD_ARCH: x86_64 AVD_ARCH: x86_64
CI_BENCHMARK: true
jobs: jobs:
baseline-profile: baseline-profile:

View file

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