class IpaParser::IpaFile
Constants
- MAPPED_INFO_KEYS
Public Class Methods
new(ipa_file)
click to toggle source
# File lib/ipa-parser.rb, line 24 def initialize(ipa_file) @ipa_file = Zip::File.open(ipa_file) info_plist = @ipa_file.glob('*\/Info.plist').first || @ipa_file.glob('Payload\/*\.app\/Info.plist').first if info_plist @plist_path = info_plist.name @plist_bin = info_plist.get_input_stream.read @plist = CFPropertyList::List.new(:data => @plist_bin) else raise "Cannot find Info.plist file" end end
Public Instance Methods
info()
click to toggle source
# File lib/ipa-parser.rb, line 36 def info CFPropertyList.native_types(@plist.value) end