Sha256: 6eb13ca097ac6225373d3c257d73a10d65481c4e21779438c375eb714856bb15

Contents?: true

Size: 968 Bytes

Versions: 656

Compression:

Stored size: 968 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

656 entries across 656 versions & 5 rubygems

Version Path
fastlane-2.202.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.201.2 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.201.1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.201.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.201.0.rc3 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.201.0.rc2 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.201.0.rc1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.200.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.199.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.198.1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.198.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.197.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.196.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.195.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.194.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.193.1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.193.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.192.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.191.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.190.0 fastlane/lib/fastlane/actions/recreate_schemes.rb