1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 12:08:00 +01:00

[build-logic] Drop redundant definition of getAndroidRuntimeJar()

This is also defined in global-conventions.gradle.
This commit is contained in:
Florian Schmaus 2024-10-22 14:39:54 +02:00
parent 6498ca796b
commit 6c5e64b2ca

View file

@ -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()) {