Sha256: c01a31f62e7c9ae44e5706bb60075c5e632fb3f08cf25d4a10653c843d3c86ef
Contents?: true
Size: 1.09 KB
Versions: 10
Compression:
Stored size: 1.09 KB
Contents
require_relative '../helper' # require_relative 'app_identifier_guesser' module PantographCore class ActionLaunchContext UNKNOWN_P_HASH = 'unknown' attr_accessor :action_name attr_accessor :p_hash attr_accessor :platform attr_accessor :pantograph_client_language # example: ruby pantfile def initialize(action_name: nil, p_hash: UNKNOWN_P_HASH, platform: nil, pantograph_client_language: nil) @action_name = action_name @p_hash = p_hash @platform = platform @pantograph_client_language = pantograph_client_language end def self.context_for_action_name(action_name, pantograph_client_language: :ruby, args: nil) # app_id_guesser = PantographCore::AppIdentifierGuesser.new(args: args) return self.new( action_name: action_name, p_hash: UNKNOWN_P_HASH, # platform: nil, pantograph_client_language: pantograph_client_language ) end def build_tool_version if platform == :android return 'android' else return "Xcode #{Helper.xcode_version}" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems