Sha256: 2f937defa14d96538a7e0284d836c90d6ce27283cabc4e1a2e903b8e40be15d0

Contents?: true

Size: 673 Bytes

Versions: 3

Compression:

Stored size: 673 Bytes

Contents

module FastlaneCore
  class AnalyticsEventBuilder
    attr_accessor :action_name

    # fastlane_client_language valid options are :ruby or :swift
    def initialize(p_hash: nil, session_id: nil, action_name: nil, fastlane_client_language: :ruby)
      @p_hash = p_hash
      @session_id = session_id
      @action_name = action_name
      @fastlane_client_language = fastlane_client_language
    end

    def new_event(action_stage)
      {
        client_id: @p_hash,
        category: "fastlane Client Language - #{@fastlane_client_language}",
        action: action_stage,
        label: action_name,
        value: nil
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 fastlane_core/lib/fastlane_core/analytics/analytics_event_builder.rb
fastlane_hotfix-2.165.0 fastlane_core/lib/fastlane_core/analytics/analytics_event_builder.rb
fastlane_hotfix-2.187.0 fastlane_core/lib/fastlane_core/analytics/analytics_event_builder.rb