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.225.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.224.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.223.1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.223.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.222.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.221.1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.221.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.220.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.219.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.218.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-security-patched-2.216.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.217.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.216.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.215.1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.215.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-mercafacil-2.214.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.214.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.213.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane-2.212.2 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane_pricing_fix-2.212.1 fastlane/lib/fastlane/actions/recreate_schemes.rb