From 6c5e64b2cab06ef09463866ded2715541322d5ac Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 22 Oct 2024 14:39:54 +0200 Subject: [PATCH] [build-logic] Drop redundant definition of getAndroidRuntimeJar() This is also defined in global-conventions.gradle. --- ...gniterealtime.smack.java-common-conventions.gradle | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/build-logic/src/main/groovy/org.igniterealtime.smack.java-common-conventions.gradle b/build-logic/src/main/groovy/org.igniterealtime.smack.java-common-conventions.gradle index 12e4455b8..0106d925e 100644 --- a/build-logic/src/main/groovy/org.igniterealtime.smack.java-common-conventions.gradle +++ b/build-logic/src/main/groovy/org.igniterealtime.smack.java-common-conventions.gradle @@ -323,17 +323,6 @@ def getGitCommit() { gitCommit } -def getAndroidRuntimeJar() { - def androidHome = new File("$System.env.ANDROID_HOME") - if (!androidHome.isDirectory()) throw new Exception("ANDROID_HOME not found or set") - def androidJar = new File("$androidHome/platforms/android-$smackMinAndroidSdk/android.jar") - if (androidJar.isFile()) { - return androidJar - } else { - throw new Exception("Can't find android.jar for $smackMinAndroidSdk API. Please install corresponding SDK platform package") - } -} - def readVersionFile() { def versionFile = new File(rootDir, 'version') if (!versionFile.isFile()) {