Class: Fastlane::Helper::InfoPlist
- Inherits:
-
Object
- Object
- Fastlane::Helper::InfoPlist
- Defined in:
- lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb
Instance Method Summary collapse
- #app_type ⇒ Object
- #bundle_name ⇒ Object
- #device_capabilities ⇒ Object
- #display_name ⇒ Object
-
#executable ⇒ Object
def prase end.
- #identifier ⇒ Object
-
#initialize(plist) ⇒ InfoPlist
constructor
A new instance of InfoPlist.
- #prase ⇒ Object
- #short_version ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(plist) ⇒ InfoPlist
Returns a new instance of InfoPlist.
7 8 9 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 7 def initialize(plist) @plist = plist end |
Instance Method Details
#app_type ⇒ Object
29 30 31 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 29 def app_type prase['ZHAppBuildType'] end |
#bundle_name ⇒ Object
37 38 39 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 37 def bundle_name prase['CFBundleName'] end |
#device_capabilities ⇒ Object
25 26 27 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 25 def device_capabilities prase['UIRequiredDeviceCapabilities'] end |
#display_name ⇒ Object
41 42 43 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 41 def display_name prase['CFBundleDisplayName'] end |
#executable ⇒ Object
def
prase['']
end
21 22 23 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 21 def executable prase['CFBundleExecutable'] end |
#identifier ⇒ Object
33 34 35 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 33 def identifier prase['CFBundleIdentifier'] end |
#prase ⇒ Object
11 12 13 14 15 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 11 def prase return @info if @info @info = CFPropertyList.native_types(CFPropertyList::List.new(file: @plist).value) @info end |
#short_version ⇒ Object
49 50 51 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 49 def short_version prase['CFBundleShortVersionString'] end |
#version ⇒ Object
45 46 47 |
# File 'lib/fastlane/plugin/analyze_ios_ipa/helper/info_plist.rb', line 45 def version prase['CFBundleVersion'] end |