From b182e469f65e8231fe7d503fb2e36a53e80b5953 Mon Sep 17 00:00:00 2001 From: ibaker Date: Tue, 14 May 2024 02:48:59 -0700 Subject: [PATCH] Standardise leak canary version in `constants.gradle` PiperOrigin-RevId: 633505366 --- constants.gradle | 1 + demos/compose/build.gradle | 2 +- demos/session/build.gradle | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/constants.gradle b/constants.gradle index b0005d8948..c310a73a99 100644 --- a/constants.gradle +++ b/constants.gradle @@ -29,6 +29,7 @@ project.ext { // Use the same Guava version as the Android repo: // https://cs.android.com/android/platform/superproject/main/+/main:external/guava/METADATA guavaVersion = '33.0.0-android' + leakCanaryVersion = '2.10' mockitoVersion = '3.12.4' robolectricVersion = '4.11' // Keep this in sync with Google's internal Checker Framework version. diff --git a/demos/compose/build.gradle b/demos/compose/build.gradle index 0a0fea0ce4..cadcd86150 100644 --- a/demos/compose/build.gradle +++ b/demos/compose/build.gradle @@ -72,5 +72,5 @@ dependencies { implementation project(modulePrefix + 'lib-exoplayer') // For detecting and debugging leaks only. LeakCanary is not needed for demo app to work. - debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10' + debugImplementation 'com.squareup.leakcanary:leakcanary-android:' + leakCanaryVersion } diff --git a/demos/session/build.gradle b/demos/session/build.gradle index 41509bea4a..8ec5ed7faf 100644 --- a/demos/session/build.gradle +++ b/demos/session/build.gradle @@ -60,7 +60,7 @@ android { dependencies { // For detecting and debugging leaks only. LeakCanary is not needed for demo app to work. - debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10' + debugImplementation 'com.squareup.leakcanary:leakcanary-android:' + leakCanaryVersion implementation 'androidx.core:core-ktx:' + androidxCoreVersion implementation 'androidx.appcompat:appcompat:' + androidxAppCompatVersion implementation 'androidx.multidex:multidex:' + androidxMultidexVersion