lib/app_info/ipa.rb in app-info-3.0.0 vs lib/app_info/ipa.rb in app-info-3.1.0

- old
+ new

@@ -7,11 +7,11 @@ module AppInfo class IPA < Apple # Full icons metadata # @example - # aab.icons + # ipa.icons # # => [ # # { # # name: 'icon.png', # # file: '/path/to/icon.png', # # uncrushed_file: '/path/to/uncrushed_icon.png', @@ -44,16 +44,17 @@ # @return [Array<Framework>] def frameworks @frameworks ||= Framework.parse(app_path) end + DEFAULT_MOBILEPROVISION_FILE = 'embedded.mobileprovision' + # @return [String] def mobileprovision_path - filename = 'embedded.mobileprovision' - @mobileprovision_path ||= ::File.join(@file, filename) + @mobileprovision_path ||= ::File.join(@file, DEFAULT_MOBILEPROVISION_FILE) unless ::File.exist?(@mobileprovision_path) - @mobileprovision_path = ::File.join(app_path, filename) + @mobileprovision_path = ::File.join(app_path, DEFAULT_MOBILEPROVISION_FILE) end @mobileprovision_path end @@ -146,10 +147,10 @@ IPHONE_KEY = 'CFBundleIcons' IPAD_KEY = 'CFBundleIcons~ipad' def icon_keys @icon_keys ||= case device - when Device::IPHONE + when Device::IPHONE, Device::APPLETV [IPHONE_KEY] when Device::IPAD [IPAD_KEY] when Device::UNIVERSAL [IPHONE_KEY, IPAD_KEY]