mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 17:37:05 +05:30
fix(build): skip Sentry setup for CI benchmarks
This commit is contained in:
parent
ab905d4061
commit
a26fd0862f
2 changed files with 2 additions and 0 deletions
1
.github/workflows/baseline-profile.yml
vendored
1
.github/workflows/baseline-profile.yml
vendored
|
@ -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:
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue