Skip to content

Commit

Permalink
fix #19
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Sep 24, 2015
1 parent 752a8e8 commit 6f7d670
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/motion/project/gradle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ def vendor_aars
aars_dependendies.each do |dependency|
main_jar = File.join(dependency, 'classes.jar')
if File.exist?(main_jar)
vendor_options = {:jar => main_jar}
jar_path = File.join(dependency, "#{File.basename(dependency)}.jar")
FileUtils.mv(main_jar, jar_path)
vendor_options = {:jar => jar_path}
else
next
end
Expand Down Expand Up @@ -172,7 +174,7 @@ def extract_aars
FileUtils.mkdir_p(aar_dir)
aars.each do |aar|
filename = File.basename(aar, '.aar')
system("unzip -o -qq #{aar} -d #{aar_dir}/#{filename}")
system("/usr/bin/unzip -o -qq #{aar} -d #{ File.join(aar_dir, filename)}")
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/motion/project/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Motion::Project
class Gradle
VERSION = '1.4.0'
VERSION = '1.5.0'
end
end

0 comments on commit 6f7d670

Please sign in to comment.