Sha256: b51abcec6f957ff6fb7761a0dbc5a94e29598f77275da87b32be74ab53f43b86

Contents?: true

Size: 793 Bytes

Versions: 23

Compression:

Stored size: 793 Bytes

Contents

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

        Helper.log.info "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
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fastlane-1.47.0 lib/fastlane/actions/recreate_schemes.rb
fastlane-1.46.1 lib/fastlane/actions/recreate_schemes.rb
fastlane-1.46.0 lib/fastlane/actions/recreate_schemes.rb