6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# File 'lib/match/options.rb', line 6
def self.available_options
user = CredentialsManager::AppfileConfig.try_fetch_value(:apple_dev_portal_id)
user ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
[
FastlaneCore::ConfigItem.new(key: :git_url,
env_name: "MATCH_GIT_URL",
description: "URL to the git repo containing all the certificates",
optional: false,
short_option: "-r"),
FastlaneCore::ConfigItem.new(key: :git_branch,
env_name: "MATCH_GIT_BRANCH",
description: "Specific git branch to use",
default_value: 'master'),
FastlaneCore::ConfigItem.new(key: :type,
env_name: "MATCH_TYPE",
description: "Create a development certificate instead of a distribution one",
is_string: true,
short_option: "-y",
default_value: 'development',
verify_block: proc do |value|
unless Match.environments.include?(value)
UI.user_error!("Unsupported environment #{value}, must be in #{Match.environments.join(', ')}")
end
end),
FastlaneCore::ConfigItem.new(key: :app_identifier,
short_option: "-a",
env_name: "MATCH_APP_IDENTIFIER",
description: "The bundle identifier(s) of your app (comma-separated)",
is_string: false,
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)),
FastlaneCore::ConfigItem.new(key: :username,
short_option: "-u",
env_name: "MATCH_USERNAME",
description: "Your Apple ID Username",
default_value: user),
FastlaneCore::ConfigItem.new(key: :keychain_name,
short_option: "-s",
env_name: "MATCH_KEYCHAIN_NAME",
description: "Keychain the items should be imported to",
default_value: "login.keychain"),
FastlaneCore::ConfigItem.new(key: :readonly,
env_name: "MATCH_READONLY",
description: "Only fetch existing certificates and profiles, don't generate new ones",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :team_id,
short_option: "-b",
env_name: "FASTLANE_TEAM_ID",
description: "The ID of your Developer Portal team if you're in multiple teams",
optional: true,
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id),
verify_block: proc do |value|
ENV["FASTLANE_TEAM_ID"] = value.to_s
end),
FastlaneCore::ConfigItem.new(key: :team_name,
short_option: "-l",
env_name: "FASTLANE_TEAM_NAME",
description: "The name of your Developer Portal team if you're in multiple teams",
optional: true,
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_name),
verify_block: proc do |value|
ENV["FASTLANE_TEAM_NAME"] = value.to_s
end),
FastlaneCore::ConfigItem.new(key: :verbose,
env_name: "MATCH_VERBOSE",
description: "Print out extra information and all commands",
is_string: false,
default_value: false,
verify_block: proc do |value|
$verbose = true if value
end),
FastlaneCore::ConfigItem.new(key: :force,
env_name: "MATCH_FORCE",
description: "Renew the provisioning profiles every time you run match",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :shallow_clone,
env_name: "MATCH_SHALLOW_CLONE",
description: "Make a shallow clone of the repository (truncate the history to 1 revision)",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :workspace,
description: nil,
verify_block: proc do |value|
unless Helper.test?
if value.start_with?("/var/folders") or value.include?("tmp/") or value.include?("temp/")
else
UI.user_error!("Specify the `git_url` instead of the `path`")
end
end
end,
optional: true),
FastlaneCore::ConfigItem.new(key: :force_for_new_devices,
env_name: "MATCH_FORCE_FOR_NEW_DEVICES",
description: "Renew the provisioning profiles if the device count on the developer portal has changed",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :skip_docs,
env_name: "MATCH_SKIP_DOCS",
description: "Skip generation of a README.md for the created git repository",
is_string: false,
default_value: false)
]
end
|