Sha256: f132b47b608d69dc59639680985a5969a09a088fe0256fdfea76b918be945356

Contents?: true

Size: 824 Bytes

Versions: 70

Compression:

Stored size: 824 Bytes

Contents

require 'fastlane_core/helper'

module FastlaneCore
  class ActionLaunchContext
    UNKNOWN_P_HASH = 'unknown'

    attr_accessor :action_name
    attr_accessor :p_hash
    attr_accessor :platform

    def initialize(action_name: nil, p_hash: UNKNOWN_P_HASH, platform: nil)
      @action_name = action_name
      @p_hash = p_hash
      @platform = platform
    end

    def self.context_for_action_name(action_name, args: nil)
      app_id_guesser = FastlaneCore::AppIdentifierGuesser.new(args: args)
      return self.new(
        action_name: action_name,
        p_hash: app_id_guesser.p_hash,
        platform: app_id_guesser.platform
      )
    end

    def build_tool_version
      if platform == :android
        return 'android'
      else
        return "Xcode #{Helper.xcode_version}"
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
fastlane-2.69.0.beta.20171212010004 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171211010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171210010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171209010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171208010004 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171207010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171206010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.68.2 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171205010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.68.1 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171204010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171203010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171202010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.69.0.beta.20171201010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.68.0 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.68.0.beta.20171130010004 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.68.0.beta.20171129010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.67.0 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.67.0.beta.20171128010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb
fastlane-2.67.0.beta.20171127010003 fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb