Sha256: 81348259a71c64b6ffbbf76a0b01f358cdd8fdef89fc4852691358d550e73dfd

Contents?: true

Size: 1.25 KB

Versions: 37

Compression:

Stored size: 1.25 KB

Contents

module Fastlane
  module Actions
    class XcovAction < Action
      def self.run(values)
        Actions.verify_gem!('xcov')
        require 'xcov'

        Xcov::Manager.new.work(values)
      end

      def self.description
        "Nice code coverage reports without hassle"
      end

      def self.details
        "More information: https://github.com/nakiostudio/xcov"
      end

      def self.author
        "nakiostudio"
      end

      def self.available_options
        # We call Gem::Specification.find_by_name in many more places than this, but for right now
        # this is the only place we're having trouble. If there are other reports about RubyGems
        # 2.6.2 causing problems, we may need to move this code and require it someplace better,
        # like fastlane_core
        require 'fastlane/core_ext/bundler_monkey_patch'

        begin
          Gem::Specification.find_by_name('xcov')
        rescue Gem::LoadError
          # Catched missing gem exception and returned empty array
          # to avoid unused_options_spec failure
          return []
        end

        require 'xcov'
        Xcov::Options.available_options
      end

      def self.is_supported?(platform)
        [:ios, :mac].include? platform
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/xcov.rb
fastlane-1.103.0 lib/fastlane/actions/xcov.rb
fastlane-1.102.0 lib/fastlane/actions/xcov.rb
fastlane-1.101.0 lib/fastlane/actions/xcov.rb
fastlane-1.100.0 lib/fastlane/actions/xcov.rb
fastlane-1.99.0 lib/fastlane/actions/xcov.rb
fastlane-1.98.0 lib/fastlane/actions/xcov.rb
fastlane-1.97.2 lib/fastlane/actions/xcov.rb
fastlane-1.97.1 lib/fastlane/actions/xcov.rb
fastlane-1.97.0 lib/fastlane/actions/xcov.rb
fastlane-1.96.0 lib/fastlane/actions/xcov.rb
fastlane-1.95.0 lib/fastlane/actions/xcov.rb
fastlane-1.94.1 lib/fastlane/actions/xcov.rb
fastlane-1.94.0 lib/fastlane/actions/xcov.rb
fastlane-1.93.1 lib/fastlane/actions/xcov.rb
fastlane-1.93.0 lib/fastlane/actions/xcov.rb
fastlane-1.92.0 lib/fastlane/actions/xcov.rb
fastlane-1.92.0.beta2 lib/fastlane/actions/xcov.rb
fastlane-1.92.0.beta1 lib/fastlane/actions/xcov.rb
fastlane-1.91.0 lib/fastlane/actions/xcov.rb