Skip to content

Commit

Permalink
Added support for annotations and google play libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkVillacampa authored and Watson1978 committed Mar 28, 2015
1 parent 8fc9244 commit 84e4966
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/motion/project/template/android.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
},
'android-support-v7-recyclerview' => {
'jar' => '/libs/android-support-v7-recyclerview.jar'
},
'android-support-annotations' => {
'jar' => '/android-support-annotations.jar'
},
'google-play-services' => {
'path' => '/google/google_play_services/libproject/google-play-services_lib',
'jar' => '/libs/google-play-services.jar'
}
}

Expand All @@ -90,7 +97,8 @@

support_libraries.uniq.each do |support_library|
library_config = supported_libraries.fetch(support_library)
library_path = File.join(extras_path, support_library.split('-'))
library_relative_path = library_config.fetch('path', support_library.split('-'))
library_path = File.join(extras_path, library_relative_path)
jar_path = File.join(library_path, library_config['jar'])
if File.exist?(jar_path)
vendor_config = {:jar => jar_path}
Expand Down

0 comments on commit 84e4966

Please sign in to comment.