mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 04:07:03 +05:30
feat: rework Sentry disabling logic for benchmark builds
This commit is contained in:
parent
8b7bcaa92f
commit
a2157ae618
3 changed files with 7 additions and 4 deletions
3
.github/workflows/baseline-profile.yml
vendored
3
.github/workflows/baseline-profile.yml
vendored
|
@ -9,7 +9,6 @@ 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:
|
||||||
|
@ -62,8 +61,6 @@ jobs:
|
||||||
# This allows us to build most of what we need without the emulator running
|
# This allows us to build most of what we need without the emulator running
|
||||||
# and using resources
|
# and using resources
|
||||||
- name: Build app and benchmark
|
- name: Build app and benchmark
|
||||||
env:
|
|
||||||
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
|
||||||
run: ./gradlew :benchmark:assembleBenchmark :android:assembleBenchmark
|
run: ./gradlew :benchmark:assembleBenchmark :android:assembleBenchmark
|
||||||
|
|
||||||
# Now use reactivecircus/android-emulator-runner to spin up an emulator. We're gonna use it again
|
# Now use reactivecircus/android-emulator-runner to spin up an emulator. We're gonna use it again
|
||||||
|
|
7
android/src/benchmark/AndroidManifest.xml
Normal file
7
android/src/benchmark/AndroidManifest.xml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<application>
|
||||||
|
<!-- Required: set your sentry.io project identifier (DSN) -->
|
||||||
|
<meta-data android:name="io.sentry.dsn" android:value="${sentryDsn}" />
|
||||||
|
</application>
|
||||||
|
</manifest>
|
|
@ -21,7 +21,6 @@ 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