From ff00333170788080ace391a2c1b79c8befdb82a2 Mon Sep 17 00:00:00 2001 From: Andy Valdez Date: Thu, 15 Feb 2024 13:42:53 -0500 Subject: [PATCH] [Gradle] Added tracks to included_builds.gradle --- WordPress/build.gradle | 7 ++++++- config/gradle/included_builds.gradle | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/WordPress/build.gradle b/WordPress/build.gradle index 4b11a35570f3..7dc0d4c067a8 100644 --- a/WordPress/build.gradle +++ b/WordPress/build.gradle @@ -381,7 +381,12 @@ dependencies { } implementation "$gradle.ext.storiesAndroidMp4ComposePath:$automatticStoriesVersion" - implementation "com.automattic:Automattic-Tracks-Android:$automatticTracksVersion" + implementation("$gradle.ext.tracksBinaryPath") { + version { + strictly automatticTracksVersion + } + } + implementation ("com.automattic:rest:$automatticRestVersion") { exclude group: 'com.mcxiaoke.volley' } diff --git a/config/gradle/included_builds.gradle b/config/gradle/included_builds.gradle index 493a2dedb405..3d98d1c4b5e3 100644 --- a/config/gradle/included_builds.gradle +++ b/config/gradle/included_builds.gradle @@ -12,6 +12,7 @@ gradle.ext.aztecAndroidWordPressCommentsPath = "org.wordpress.aztec:wordpress-co gradle.ext.aztecAndroidGlideLoaderPath = "org.wordpress.aztec:glide-loader" gradle.ext.aztecAndroidPicassoLoaderPath = "org.wordpress.aztec:picasso-loader" gradle.ext.aboutAutomatticBinaryPath = "com.automattic:about" +gradle.ext.tracksBinaryPath = "com.automattic:Automattic-Tracks-Android" def localBuilds = new File("${rootDir}/local-builds.gradle") if (localBuilds.exists()) { @@ -97,4 +98,13 @@ if (localBuilds.exists()) { } } } + + if (ext.has("localTracksPath")) { + includeBuild(ext.localTracksPath) { + dependencySubstitution { + println "Substituting tracks with the local build" + substitute module("$gradle.ext.tracksBinaryPath") using project(':AutomatticTracks') + } + } + } }