Sha256: 045a463ce193db8b4fd2ec08fd1bf155de67250c765ccc417acb7daf96c4c38e

Contents?: true

Size: 1.21 KB

Versions: 475

Compression:

Stored size: 1.21 KB

Contents

module Fastlane
  class ActionCollector
    def show_message
      UI.message("Sending Crash/Success information. Learn more at https://docs.fastlane.tools/#metrics")
      UI.message("No personal/sensitive data is sent. Only sharing the following:")
      UI.message(launches)
      UI.message(@error) if @error
      UI.message("This information is used to fix failing actions and improve integrations that are often used.")
      UI.message("You can disable this by adding `opt_out_usage` at the top of your Fastfile")
    end

    def determine_version(name)
      self.class.determine_version(name)
    end

    # e.g.
    #   :gym
    #   :xcversion
    #   "fastlane-plugin-my_plugin/xcversion"
    def self.determine_version(name)
      if name.to_s.include?(PluginManager.plugin_prefix)
        # That's an action from a plugin, we need to fetch its version number
        begin
          plugin_name = name.split("/").first.gsub(PluginManager.plugin_prefix, '')
          return Fastlane.const_get(plugin_name.fastlane_class)::VERSION
        rescue => ex
          UI.verbose(ex)
          return "undefined"
        end
      end

      return Fastlane::VERSION # that's the case for all built-in actions
    end
  end
end

Version data entries

475 entries across 475 versions & 5 rubygems

Version Path
fastlane-2.225.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.224.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.223.1 fastlane/lib/fastlane/action_collector.rb
fastlane-2.223.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.222.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.221.1 fastlane/lib/fastlane/action_collector.rb
fastlane-2.221.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.220.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.219.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.218.0 fastlane/lib/fastlane/action_collector.rb
fastlane-security-patched-2.216.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.217.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.216.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.215.1 fastlane/lib/fastlane/action_collector.rb
fastlane-2.215.0 fastlane/lib/fastlane/action_collector.rb
fastlane-mercafacil-2.214.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.214.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.213.0 fastlane/lib/fastlane/action_collector.rb
fastlane-2.212.2 fastlane/lib/fastlane/action_collector.rb
fastlane_pricing_fix-2.212.1 fastlane/lib/fastlane/action_collector.rb