From e443df62642fcb9c440dd1ea803fa9590e0a4e88 Mon Sep 17 00:00:00 2001 From: Dmitri Sh Date: Mon, 29 Dec 2025 14:00:39 -0500 Subject: [PATCH] Update requirements to reflect Android Studio Ladybug minimum version --- README.md | 4 ++-- build.gradle.kts | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 762a8ee..ba6cb3e 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,8 @@ Track and visualize Android resource usage across your entire project with intui ## Requirements -- Android Studio Hedgehog (2023.1.1) or newer -- IntelliJ IDEA 2023.3 or newer with Android plugin +- Android Studio Ladybug (2025.2.1) or newer +- IntelliJ IDEA 2025.2 or newer with Android plugin ## Installation diff --git a/build.gradle.kts b/build.gradle.kts index e964748..f95756b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -36,8 +36,17 @@ dependencies { // IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html intellijPlatform { - // androidStudio(providers.gradleProperty("platformVersion")) - local("/Applications/Android Studio.app") // macOS path + // Use different IDE configuration for CI vs local development + val isCI = System.getenv("CI") != null + + if (isCI) { + // CI: Download Android Studio + androidStudio(providers.gradleProperty("platformVersion")) + } else { + // Local: Use installed Android Studio + local("/Applications/Android Studio.app") // macOS path + } + // Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins. bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') }) @@ -155,4 +164,4 @@ intellijPlatformTesting { } } } -} +} \ No newline at end of file