mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Pass all the class files to dx.
This commit is contained in:
parent
90908bd072
commit
c59a4cd4f3
1 changed files with 8 additions and 1 deletions
|
@ -233,7 +233,14 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler)
|
|||
val classesDex = "classes.dex"
|
||||
val outClassesDex = KFiles.joinDir(classesDexDir, classesDex)
|
||||
|
||||
RunCommand(dx).run(listOf("--dex", "--output", outClassesDex, buildDir!!.toString()))
|
||||
val args = listOf("--dex", "--output", outClassesDex)
|
||||
val otherArgs =
|
||||
project.dependencies?.let {
|
||||
it.dependencies.map {
|
||||
it.jarFile.get().path
|
||||
}.filter { ! it.endsWith(".aar") && ! it.endsWith("android.jar") }
|
||||
} ?: emptyList()
|
||||
RunCommand(dx).run(args + otherArgs)
|
||||
|
||||
//
|
||||
// Add classes.dex to existing .ap_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue