Skip to content

Commit

Permalink
fix issue with some jars not being linked
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Nov 24, 2015
1 parent eb87bc9 commit e628b9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/motion/project/gradle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,13 @@ def vendor_aars
aars_dependendies = Dir[File.join(GRADLE_ROOT, 'aar/*')]
aars_dependendies.each do |dependency|
main_jar = File.join(dependency, 'classes.jar')
jar_path = File.join(dependency, "#{File.basename(dependency)}.jar")

if File.exist?(main_jar)
jar_path = File.join(dependency, "#{File.basename(dependency)}.jar")
FileUtils.mv(main_jar, jar_path)
vendor_options = { jar: jar_path }
elsif File.exist?(jar_path)
vendor_options = { jar: jar_path }
else
next
end
Expand Down
2 changes: 1 addition & 1 deletion lib/motion_gradle/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module MotionGradle
VERSION = '2.0.1'
VERSION = '2.1.0'
end

0 comments on commit e628b9b

Please sign in to comment.