Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix dexing if no dependency projects are specified

  • Loading branch information...
commit 89c6c949e9ab0488c1202230a70c9a79bd3b66f3 1 parent f9f1b51
@alexander-yakushev alexander-yakushev authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/leiningen/droid/build.clj
View
5 src/leiningen/droid/build.clj
@@ -30,12 +30,13 @@
(let [dx-bin (str sdk-path "/platform-tools/dx")
no-optimize (if (dev-build? project) "--no-optimize" "")
annotations (str sdk-path "/tools/support/annotations.jar")
- deps (unique-jars (resolve-dependencies :dependencies project))]
+ deps (unique-jars (resolve-dependencies :dependencies project))
+ external-paths (or external-classes-paths [])]
(with-process [proc (map str
(flatten [dx-bin "--dex" no-optimize
"--output" out-dex-path
compile-path annotations deps
- external-classes-paths]))]
+ external-paths]))]
(.addShutdownHook (Runtime/getRuntime) (Thread. #(.destroy proc))))))
(defn crunch-resources
Please sign in to comment.
Something went wrong with that request. Please try again.