fix: broken gradle task

This commit is contained in:
Lucaskyy 2022-06-16 13:27:45 +02:00
parent a234c6c2da
commit 4d07961c8a
No known key found for this signature in database
GPG key ID: 1530BFF96D1EEB89

View file

@ -29,7 +29,7 @@ tasks {
doLast { doLast {
val androidHome = System.getenv("ANDROID_HOME") ?: throw GradleException("ANDROID_HOME not found") val androidHome = System.getenv("ANDROID_HOME") ?: throw GradleException("ANDROID_HOME not found")
val d8 = "${androidHome}/build-tools/32.0.0/d8" val d8 = "${androidHome}/build-tools/32.0.0/d8"
val input = build.get().outputs.files.singleFile.absolutePath val input = configurations.archives.get().allArtifacts.files.files.first().absolutePath
val output = input.replace(".jar", ".dex") val output = input.replace(".jar", ".dex")
val work = File("${buildDir}/libs") val work = File("${buildDir}/libs")