Sha256: b7206084a1b425f8c81c50409e867de5d10890d5dc154155a863857ae42f1995

Contents?: true

Size: 967 Bytes

Versions: 472

Compression:

Stored size: 967 Bytes

Contents

module Fastlane
  module Actions
    class RecreateSchemesAction < Action
      def self.run(params)
        require 'xcodeproj'

        UI.message("Recreate schemes for project: #{params[:project]}")

        project = Xcodeproj::Project.open(params[:project])
        project.recreate_user_schemes
      end

      def self.description
        "Recreate not shared Xcode project schemes"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(
            key: :project,
            env_name: "XCODE_PROJECT",
            description: "The Xcode project"
          )
        ]
      end

      def self.authors
        "jerolimov"
      end

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

      def self.example_code
        [
          'recreate_schemes(project: "./path/to/MyApp.xcodeproj")'
        ]
      end

      def self.category
        :project
      end
    end
  end
end

Version data entries

472 entries across 472 versions & 1 rubygems

Version Path
fastlane-2.74.1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.74.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.74.0.beta.20180108010004 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.74.0.beta.20180107010004 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.74.0.beta.20180106010004 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.73.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.73.0.beta.20180105010003 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.73.0.beta.20180104010004 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.73.0.beta.20180103010003 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.72.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.72.0.beta.20180102010003 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.72.0.beta.20180101010003 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.72.0.beta.20171231010003 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.71.1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.72.0.beta.20171230010003 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.72.0.beta.20171229010003 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.72.0.beta.20171228010004 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.71.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.71.0.beta.20171227010004 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.71.0.beta.20171226010004 fastlane/lib/fastlane/actions/recreate_schemes.rb