Browse files

Fix dexing if no dependency projects are specified

  • Loading branch information...
alexander-yakushev committed Jun 26, 2012
1 parent f9f1b51 commit 89c6c949e9ab0488c1202230a70c9a79bd3b66f3
Showing with 3 additions and 2 deletions.
  1. +3 −2 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

0 comments on commit 89c6c94

Please sign in to comment.