fastlane/lib/fastlane/actions/cocoapods.rb in fastlane-2.185.0 vs fastlane/lib/fastlane/actions/cocoapods.rb in fastlane-2.185.1
- old
+ new
@@ -70,84 +70,78 @@
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :repo_update,
env_name: "FL_COCOAPODS_REPO_UPDATE",
description: "Add `--repo-update` flag to `pod install` command",
- is_string: false,
+ type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :clean_install,
env_name: "FL_COCOAPODS_CLEAN_INSTALL",
description: "Execute a full pod installation ignoring the content of the project cache",
- is_string: false,
+ type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :silent,
env_name: "FL_COCOAPODS_SILENT",
description: "Execute command without logging output",
- is_string: false,
+ type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :verbose,
env_name: "FL_COCOAPODS_VERBOSE",
description: "Show more debugging information",
- is_string: false,
+ type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :ansi,
env_name: "FL_COCOAPODS_ANSI",
description: "Show output with ANSI codes",
- is_string: false,
+ type: Boolean,
default_value: true),
FastlaneCore::ConfigItem.new(key: :use_bundle_exec,
env_name: "FL_COCOAPODS_USE_BUNDLE_EXEC",
description: "Use bundle exec when there is a Gemfile presented",
- is_string: false,
+ type: Boolean,
default_value: true),
FastlaneCore::ConfigItem.new(key: :podfile,
env_name: "FL_COCOAPODS_PODFILE",
description: "Explicitly specify the path to the Cocoapods' Podfile. You can either set it to the Podfile's path or to the folder containing the Podfile file",
optional: true,
- is_string: true,
verify_block: proc do |value|
UI.user_error!("Could not find Podfile") unless File.exist?(value) || Helper.test?
end),
FastlaneCore::ConfigItem.new(key: :error_callback,
description: 'A callback invoked with the command output if there is a non-zero exit status',
optional: true,
- is_string: false,
- type: :string_callback,
- default_value: nil),
+ type: :string_callback),
FastlaneCore::ConfigItem.new(key: :try_repo_update_on_error,
env_name: "FL_COCOAPODS_TRY_REPO_UPDATE_ON_ERROR",
description: 'Retry with --repo-update if action was finished with error',
optional: true,
- is_string: false,
default_value: false,
type: Boolean),
FastlaneCore::ConfigItem.new(key: :deployment,
env_name: "FL_COCOAPODS_DEPLOYMENT",
description: 'Disallow any changes to the Podfile or the Podfile.lock during installation',
optional: true,
- is_string: false,
default_value: false,
type: Boolean),
FastlaneCore::ConfigItem.new(key: :allow_root,
env_name: "FL_COCOAPODS_ALLOW_ROOT",
description: 'Allows CocoaPods to run as root',
optional: true,
- is_string: false,
default_value: false,
type: Boolean),
# Deprecated
FastlaneCore::ConfigItem.new(key: :clean,
env_name: "FL_COCOAPODS_CLEAN",
description: "(Option renamed as clean_install) Remove SCM directories",
deprecated: true,
- is_string: false,
+ type: Boolean,
default_value: true),
FastlaneCore::ConfigItem.new(key: :integrate,
env_name: "FL_COCOAPODS_INTEGRATE",
description: "(Option removed from cocoapods) Integrate the Pods libraries into the Xcode project(s)",
deprecated: true,
- is_string: false,
+ type: Boolean,
default_value: true)
]
# Please don't add a version parameter to the `cocoapods` action. If you need to specify a version when running
# `cocoapods`, please start using a Gemfile and lock the version there
# More information https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile