lib/app_info/proguard.rb in app-info-3.0.0.beta3 vs lib/app_info/proguard.rb in app-info-3.0.0.beta4
- old
+ new
@@ -49,17 +49,10 @@
manifest.root.attributes['package']
end
# @return [String, nil]
- def releasd_version
- return unless manifest?
-
- manifest.root.attributes['package']
- end
-
- # @return [String, nil]
def version_name
return unless manifest?
manifest.root.attributes['versionName']
end
@@ -70,9 +63,20 @@
return unless manifest?
manifest.root.attributes['versionCode']
end
alias build_version version_code
+
+ def files
+ Dir.children(contents).each_with_object([]) do |filename, obj|
+ path = ::File.join(contents, filename)
+ obj << {
+ name: filename,
+ path: path,
+ size: ::File.size(path)
+ }
+ end
+ end
# @return [REXML::Document]
def manifest
return unless manifest?