class Fastlane::Helper::VerifyIpaHelper
Public Class Methods
app_path(ipa_path, tmpdir)
click to toggle source
# File lib/fastlane/plugin/verify_ipa/helper/verify_ipa_helper.rb, line 4 def self.app_path(ipa_path, tmpdir) ipa_path ||= Actions.lane_context[Fastlane::Actions::SharedValues::IPA_OUTPUT_PATH] || '' UI.user_error!("Unable to find ipa file '#{ipa_path}'.") unless File.exist?(ipa_path) ipa_path = File.expand_path(ipa_path) `unzip '#{ipa_path}' -d #{tmpdir}` UI.user_error!("Unable to unzip ipa '#{ipa_path}'") unless $? == 0 Dir["#{tmpdir}/Payload/*.app"].first end
appex_path(app_path, appex_name)
click to toggle source
# File lib/fastlane/plugin/verify_ipa/helper/verify_ipa_helper.rb, line 14 def self.appex_path(app_path, appex_name) appex_path = "#{app_path}/PlugIns/#{appex_name}.appex" UI.user_error!("Unable to find '#{appex_path}'.") unless File.exist?(appex_path) appex_path end