20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/fastlane/actions/install_carthage.rb', line 20
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :use_ssh,
env_name: "FL_CARTHAGE_USE_SSH",
description: "Use SSH for downloading GitHub repositories",
is_string: false,
optional: true,
verify_block: Proc.new do |value|
raise "Please pass a valid value for use_ssh. Use one of the following: true, false" unless value.is_a?(TrueClass) || value.is_a?(FalseClass)
end),
FastlaneCore::ConfigItem.new(key: :use_submodules,
env_name: "FL_CARTHAGE_USE_SUBMODULES",
description: "Add dependencies as Git submodules",
is_string: false,
optional: true,
verify_block: Proc.new do |value|
raise "Please pass a valid value for use_submodules. Use one of the following: true, false" unless value.is_a?(TrueClass) || value.is_a?(FalseClass)
end),
FastlaneCore::ConfigItem.new(key: :use_binaries,
env_name: "FL_CARTHAGE_USE_BINARIES",
description: "Check out dependency repositories even when prebuilt frameworks exist",
is_string: false,
optional: true,
verify_block: Proc.new do |value|
raise "Please pass a valid value for use_binaries. Use one of the following: true, false" unless value.is_a?(TrueClass) || value.is_a?(FalseClass)
end),
FastlaneCore::ConfigItem.new(key: :platform,
env_name: "FL_CARTHAGE_PLATFORM",
description: "Define which platform to build for",
optional: true,
verify_block: Proc.new do |value|
raise "Please pass a valid platform. Use one of the following: all, iOS, Mac, watchOS" unless ["all", "iOS", "Mac", "watchOS"].include?value
end),
]
end
|