Sha256: 335edbe983068b346d4f067db223fce55745d8e3a9a30c812aac79e47423209a

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

module Fastlane
  module Actions
    class OptOutUsageAction < Action
      def self.run(params)
        ENV['FASTLANE_OPT_OUT_USAGE'] = "YES"
        UI.message("Disabled upload of used actions")
      end

      def self.description
        "This will stop uploading the information which actions were run"
      end

      def self.details
        [
          "By default, _fastlane_ will track what actions are being used. No personal/sensitive information is recorded.",
          "Learn more at [https://docs.fastlane.tools/#metrics](https://docs.fastlane.tools/#metrics).",
          "Add `opt_out_usage` at the top of your Fastfile to disable metrics collection."
        ].join("\n")
      end

      def self.author
        "KrauseFx"
      end

      def self.is_supported?(platform)
        true
      end

      def self.example_code
        [
          'opt_out_usage # add this to the top of your Fastfile'
        ]
      end

      def self.category
        :misc
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 fastlane/lib/fastlane/actions/opt_out_usage.rb
fastlane_hotfix-2.165.0 fastlane/lib/fastlane/actions/opt_out_usage.rb
fastlane_hotfix-2.187.0 fastlane/lib/fastlane/actions/opt_out_usage.rb