From 9a2adb36aabef7103be9a46fdc28e86584a9f1f9 Mon Sep 17 00:00:00 2001 From: Alexander Dinauer Date: Wed, 12 Nov 2025 11:07:31 +0100 Subject: [PATCH 1/2] Move async-profiler dependencies into toml file --- gradle/libs.versions.toml | 2 ++ sentry-async-profiler/build.gradle.kts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 748bd427ea3..9b8ee0bb268 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -93,6 +93,8 @@ androidx-navigation-compose = { module = "androidx.navigation:navigation-compose androidx-sqlite = { module = "androidx.sqlite:sqlite", version = "2.5.2" } androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version = "1.2.1" } androidx-browser = { module = "androidx.browser:browser", version = "1.8.0" } +async-profiler = { module = "tools.profiler:async-profiler", version = "4.2" } +async-profiler-jfr-converter = { module = "tools.profiler:jfr-converter", version = "4.2" } coil-compose = { module = "io.coil-kt:coil-compose", version = "2.6.0" } commons-compress = {module = "org.apache.commons:commons-compress", version = "1.25.0"} context-propagation = { module = "io.micrometer:context-propagation", version = "1.1.0" } diff --git a/sentry-async-profiler/build.gradle.kts b/sentry-async-profiler/build.gradle.kts index d2cf0a44c87..5af2f0bef45 100644 --- a/sentry-async-profiler/build.gradle.kts +++ b/sentry-async-profiler/build.gradle.kts @@ -20,8 +20,8 @@ kotlin { explicitApi() } dependencies { api(projects.sentry) - implementation("tools.profiler:async-profiler:4.2") - implementation("tools.profiler:jfr-converter:4.2") + implementation(libs.async.profiler) + implementation(libs.async.profiler.jfr.converter) compileOnly(libs.jetbrains.annotations) compileOnly(libs.nopen.annotations) From d9df6a7e2340dc335af73316be31370de948b407 Mon Sep 17 00:00:00 2001 From: Alexander Dinauer Date: Wed, 12 Nov 2025 11:09:05 +0100 Subject: [PATCH 2/2] reuse async profiler version --- gradle/libs.versions.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9b8ee0bb268..154504b7b75 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,6 +4,7 @@ androidxLifecycle = "2.2.0" androidxNavigation = "2.4.2" androidxTestCore = "1.7.0" androidxCompose = "1.6.3" +asyncProfiler = "4.2" composeCompiler = "1.5.14" coroutines = "1.6.1" espresso = "3.7.0" @@ -93,8 +94,8 @@ androidx-navigation-compose = { module = "androidx.navigation:navigation-compose androidx-sqlite = { module = "androidx.sqlite:sqlite", version = "2.5.2" } androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version = "1.2.1" } androidx-browser = { module = "androidx.browser:browser", version = "1.8.0" } -async-profiler = { module = "tools.profiler:async-profiler", version = "4.2" } -async-profiler-jfr-converter = { module = "tools.profiler:jfr-converter", version = "4.2" } +async-profiler = { module = "tools.profiler:async-profiler", version.ref = "asyncProfiler" } +async-profiler-jfr-converter = { module = "tools.profiler:jfr-converter", version.ref = "asyncProfiler" } coil-compose = { module = "io.coil-kt:coil-compose", version = "2.6.0" } commons-compress = {module = "org.apache.commons:commons-compress", version = "1.25.0"} context-propagation = { module = "io.micrometer:context-propagation", version = "1.1.0" }