fastlane 2.186.0 → 2.187.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +86 -86
  3. data/fastlane/lib/fastlane/actions/create_keychain.rb +5 -2
  4. data/fastlane/lib/fastlane/actions/docs/build_app.md +1 -1
  5. data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +25 -26
  6. data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +2 -2
  7. data/fastlane/lib/fastlane/actions/docs/create_app_online.md +171 -67
  8. data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +3 -4
  9. data/fastlane/lib/fastlane/actions/lcov.rb +0 -4
  10. data/fastlane/lib/fastlane/actions/mailgun.rb +21 -27
  11. data/fastlane/lib/fastlane/actions/make_changelog_from_jenkins.rb +1 -1
  12. data/fastlane/lib/fastlane/actions/modify_services.rb +59 -24
  13. data/fastlane/lib/fastlane/actions/nexus_upload.rb +2 -2
  14. data/fastlane/lib/fastlane/actions/notarize.rb +1 -4
  15. data/fastlane/lib/fastlane/actions/number_of_commits.rb +1 -1
  16. data/fastlane/lib/fastlane/actions/oclint.rb +15 -14
  17. data/fastlane/lib/fastlane/actions/pod_push.rb +0 -2
  18. data/fastlane/lib/fastlane/actions/podio_item.rb +0 -7
  19. data/fastlane/lib/fastlane/actions/prompt.rb +3 -4
  20. data/fastlane/lib/fastlane/actions/push_git_tags.rb +1 -1
  21. data/fastlane/lib/fastlane/actions/puts.rb +1 -2
  22. data/fastlane/lib/fastlane/actions/register_devices.rb +0 -1
  23. data/fastlane/lib/fastlane/actions/reset_git_repo.rb +5 -8
  24. data/fastlane/lib/fastlane/actions/reset_simulator_contents.rb +0 -2
  25. data/fastlane/lib/fastlane/actions/resign.rb +2 -9
  26. data/fastlane/lib/fastlane/actions/rsync.rb +3 -6
  27. data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
  28. data/fastlane/lib/fastlane/actions/s3.rb +1 -1
  29. data/fastlane/lib/fastlane/actions/say.rb +2 -3
  30. data/fastlane/lib/fastlane/actions/scp.rb +4 -10
  31. data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
  32. data/fastlane/lib/fastlane/actions/set_changelog.rb +1 -1
  33. data/fastlane/lib/fastlane/actions/set_github_release.rb +2 -8
  34. data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +1 -1
  35. data/fastlane/lib/fastlane/actions/set_pod_key.rb +3 -4
  36. data/fastlane/lib/fastlane/actions/setup_ci.rb +1 -2
  37. data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +1 -1
  38. data/fastlane/lib/fastlane/actions/setup_jenkins.rb +7 -12
  39. data/fastlane/lib/fastlane/actions/setup_travis.rb +1 -1
  40. data/fastlane/lib/fastlane/actions/sh.rb +2 -4
  41. data/fastlane/lib/fastlane/actions/slack.rb +6 -8
  42. data/fastlane/lib/fastlane/actions/slather.rb +3 -19
  43. data/fastlane/lib/fastlane/actions/sonar.rb +12 -19
  44. data/fastlane/lib/fastlane/actions/sourcedocs.rb +62 -98
  45. data/fastlane/lib/fastlane/actions/splunkmint.rb +2 -2
  46. data/fastlane/lib/fastlane/actions/spm.rb +3 -3
  47. data/fastlane/lib/fastlane/actions/ssh.rb +5 -10
  48. data/fastlane/lib/fastlane/actions/testfairy.rb +0 -1
  49. data/fastlane/lib/fastlane/actions/tryouts.rb +2 -3
  50. data/fastlane/lib/fastlane/actions/twitter.rb +0 -5
  51. data/fastlane/lib/fastlane/actions/unlock_keychain.rb +3 -3
  52. data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +1 -4
  53. data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +8 -15
  54. data/fastlane/lib/fastlane/actions/update_fastlane.rb +2 -2
  55. data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
  56. data/fastlane/lib/fastlane/version.rb +1 -1
  57. data/fastlane/swift/Deliverfile.swift +1 -1
  58. data/fastlane/swift/DeliverfileProtocol.swift +1 -1
  59. data/fastlane/swift/Fastlane.swift +57 -57
  60. data/fastlane/swift/Gymfile.swift +1 -1
  61. data/fastlane/swift/GymfileProtocol.swift +1 -1
  62. data/fastlane/swift/Matchfile.swift +1 -1
  63. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  64. data/fastlane/swift/Precheckfile.swift +1 -1
  65. data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
  66. data/fastlane/swift/Scanfile.swift +1 -1
  67. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  68. data/fastlane/swift/Screengrabfile.swift +1 -1
  69. data/fastlane/swift/ScreengrabfileProtocol.swift +4 -4
  70. data/fastlane/swift/Snapshotfile.swift +1 -1
  71. data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
  72. data/fastlane/swift/formatting/Brewfile.lock.json +11 -11
  73. data/produce/lib/produce/commands_generator.rb +99 -27
  74. data/produce/lib/produce/developer_center.rb +42 -4
  75. data/produce/lib/produce/options.rb +1 -1
  76. data/produce/lib/produce/service.rb +270 -179
  77. data/screengrab/lib/screengrab/android_environment.rb +2 -52
  78. data/screengrab/lib/screengrab/dependency_checker.rb +0 -20
  79. data/screengrab/lib/screengrab/options.rb +5 -2
  80. data/screengrab/lib/screengrab/runner.rb +108 -106
  81. data/snapshot/lib/assets/SnapfileTemplate +2 -1
  82. data/snapshot/lib/assets/SnapfileTemplate.swift +2 -1
  83. data/snapshot/lib/assets/SnapshotHelper.swift +14 -10
  84. data/snapshot/lib/snapshot/reports_generator.rb +3 -1
  85. data/snapshot/lib/snapshot/test_command_generator.rb +16 -2
  86. data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +8 -0
  87. data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +58 -17
  88. data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +41 -1
  89. metadata +20 -21
  90. data/fastlane/lib/fastlane/helper/.git_helper.rb.swp +0 -0
@@ -35,7 +35,7 @@ module Fastlane
35
35
  FastlaneCore::ConfigItem.new(key: :force,
36
36
  env_name: "FL_PUSH_GIT_FORCE",
37
37
  description: "Force push to remote",
38
- is_string: false,
38
+ type: Boolean,
39
39
  default_value: false,
40
40
  optional: true),
41
41
  FastlaneCore::ConfigItem.new(key: :remote,
@@ -26,8 +26,7 @@ module Fastlane
26
26
  FastlaneCore::ConfigItem.new(key: :message,
27
27
  env_name: "FL_PUTS_MESSAGE",
28
28
  description: "Message to be printed out",
29
- optional: true,
30
- is_string: true)
29
+ optional: true)
31
30
  ]
32
31
  end
33
32
 
@@ -102,7 +102,6 @@ module Fastlane
102
102
  FastlaneCore::ConfigItem.new(key: :devices,
103
103
  env_name: "FL_REGISTER_DEVICES_DEVICES",
104
104
  description: "A hash of devices, with the name as key and the UDID as value",
105
- is_string: false,
106
105
  type: Hash,
107
106
  optional: true),
108
107
  FastlaneCore::ConfigItem.new(key: :devices_file,
@@ -81,30 +81,27 @@ module Fastlane
81
81
  env_name: "FL_RESET_GIT_FILES",
82
82
  description: "Array of files the changes should be discarded. If not given, all files will be discarded",
83
83
  optional: true,
84
- is_string: false,
85
- verify_block: proc do |value|
86
- UI.user_error!("Please pass an array only") unless value.kind_of?(Array)
87
- end),
84
+ type: Array),
88
85
  FastlaneCore::ConfigItem.new(key: :force,
89
86
  env_name: "FL_RESET_GIT_FORCE",
90
87
  description: "Skip verifying of previously clean state of repo. Only recommended in combination with `files` option",
91
- is_string: false,
88
+ type: Boolean,
92
89
  default_value: false),
93
90
  FastlaneCore::ConfigItem.new(key: :skip_clean,
94
91
  env_name: "FL_RESET_GIT_SKIP_CLEAN",
95
92
  description: "Skip 'git clean' to avoid removing untracked files like `.env`",
96
- is_string: false,
93
+ type: Boolean,
97
94
  default_value: false),
98
95
  FastlaneCore::ConfigItem.new(key: :disregard_gitignore,
99
96
  env_name: "FL_RESET_GIT_DISREGARD_GITIGNORE",
100
97
  description: "Setting this to true will clean the whole repository, ignoring anything in your local .gitignore. Set this to true if you want the equivalent of a fresh clone, and for all untracked and ignore files to also be removed",
101
- is_string: false,
98
+ type: Boolean,
102
99
  optional: true,
103
100
  default_value: true),
104
101
  FastlaneCore::ConfigItem.new(key: :exclude,
105
102
  env_name: "FL_RESET_GIT_EXCLUDE",
106
103
  description: "You can pass a string, or array of, file pattern(s) here which you want to have survive the cleaning process, and remain on disk, e.g. to leave the `artifacts` directory you would specify `exclude: 'artifacts'`. Make sure this pattern is also in your gitignore! See the gitignore documentation for info on patterns",
107
- is_string: false,
104
+ skip_type_validation: true, # allows String, Array, Regex
108
105
  optional: true)
109
106
  ]
110
107
  end
@@ -44,14 +44,12 @@ module Fastlane
44
44
  short_option: "-i",
45
45
  env_name: "FASTLANE_RESET_SIMULATOR_VERSIONS",
46
46
  description: "Which OS versions of Simulators you want to reset content and settings, this does not remove/recreate the simulators",
47
- is_string: false,
48
47
  optional: true,
49
48
  type: Array),
50
49
  FastlaneCore::ConfigItem.new(key: :os_versions,
51
50
  short_option: "-v",
52
51
  env_name: "FASTLANE_RESET_SIMULATOR_OS_VERSIONS",
53
52
  description: "Which OS versions of Simulators you want to reset content and settings, this does not remove/recreate the simulators",
54
- is_string: false,
55
53
  optional: true,
56
54
  type: Array)
57
55
  ]
@@ -60,14 +60,13 @@ module Fastlane
60
60
  env_name: "FL_RESIGN_ENTITLEMENTS",
61
61
  description: "Path to the entitlement file to use, e.g. `myApp/MyApp.entitlements`",
62
62
  conflicting_options: [:use_app_entitlements],
63
- is_string: true,
64
63
  optional: true),
65
64
  FastlaneCore::ConfigItem.new(key: :provisioning_profile,
66
65
  env_name: "FL_RESIGN_PROVISIONING_PROFILE",
67
66
  description: "Path to your provisioning_profile. Optional if you use _sigh_",
68
67
  default_value: Actions.lane_context[SharedValues::SIGH_PROFILE_PATH],
69
68
  default_value_dynamic: true,
70
- is_string: false,
69
+ skip_type_validation: true, # allows Hash, Array
71
70
  verify_block: proc do |value|
72
71
  files = case value
73
72
  when Hash then value.values
@@ -82,40 +81,34 @@ module Fastlane
82
81
  env_name: "FL_RESIGN_VERSION",
83
82
  description: "Version number to force resigned ipa to use. Updates both `CFBundleShortVersionString` and `CFBundleVersion` values in `Info.plist`. Applies for main app and all nested apps or extensions",
84
83
  conflicting_options: [:short_version, :bundle_version],
85
- is_string: true,
86
84
  optional: true),
87
85
  FastlaneCore::ConfigItem.new(key: :display_name,
88
86
  env_name: "FL_DISPLAY_NAME",
89
87
  description: "Display name to force resigned ipa to use",
90
- is_string: true,
91
88
  optional: true),
92
89
  FastlaneCore::ConfigItem.new(key: :short_version,
93
90
  env_name: "FL_RESIGN_SHORT_VERSION",
94
91
  description: "Short version string to force resigned ipa to use (`CFBundleShortVersionString`)",
95
92
  conflicting_options: [:version],
96
- is_string: true,
97
93
  optional: true),
98
94
  FastlaneCore::ConfigItem.new(key: :bundle_version,
99
95
  env_name: "FL_RESIGN_BUNDLE_VERSION",
100
96
  description: "Bundle version to force resigned ipa to use (`CFBundleVersion`)",
101
97
  conflicting_options: [:version],
102
- is_string: true,
103
98
  optional: true),
104
99
  FastlaneCore::ConfigItem.new(key: :bundle_id,
105
100
  env_name: "FL_RESIGN_BUNDLE_ID",
106
101
  description: "Set new bundle ID during resign (`CFBundleIdentifier`)",
107
- is_string: true,
108
102
  optional: true),
109
103
  FastlaneCore::ConfigItem.new(key: :use_app_entitlements,
110
104
  env_name: "FL_USE_APP_ENTITLEMENTS",
111
105
  description: "Extract app bundle codesigning entitlements and combine with entitlements from new provisioning profile",
112
106
  conflicting_options: [:entitlements],
113
- is_string: false,
107
+ type: Boolean,
114
108
  optional: true),
115
109
  FastlaneCore::ConfigItem.new(key: :keychain_path,
116
110
  env_name: "FL_RESIGN_KEYCHAIN_PATH",
117
111
  description: "Provide a path to a keychain file that should be used by `/usr/bin/codesign`",
118
- is_string: true,
119
112
  optional: true)
120
113
  ]
121
114
  end
@@ -32,20 +32,17 @@ module Fastlane
32
32
  env_name: "FL_RSYNC_EXTRA", # The name of the environment variable
33
33
  description: "Port", # a short description of this parameter
34
34
  optional: true,
35
- default_value: "-av",
36
- is_string: true),
35
+ default_value: "-av"),
37
36
  FastlaneCore::ConfigItem.new(key: :source,
38
37
  short_option: "-S",
39
38
  env_name: "FL_RSYNC_SRC", # The name of the environment variable
40
39
  description: "source file/folder", # a short description of this parameter
41
- optional: false,
42
- is_string: true),
40
+ optional: false),
43
41
  FastlaneCore::ConfigItem.new(key: :destination,
44
42
  short_option: "-D",
45
43
  env_name: "FL_RSYNC_DST", # The name of the environment variable
46
44
  description: "destination file/folder", # a short description of this parameter
47
- optional: false,
48
- is_string: true)
45
+ optional: false)
49
46
  ]
50
47
  end
51
48
 
@@ -60,7 +60,7 @@ module Fastlane
60
60
  FastlaneCore::ConfigItem.new(key: :fail_build,
61
61
  env_name: "SCAN_FAIL_BUILD",
62
62
  description: "Should this step stop the build if the tests fail? Set this to false if you're using trainer",
63
- is_string: false,
63
+ type: Boolean,
64
64
  default_value: true)
65
65
  ]
66
66
  end
@@ -52,7 +52,7 @@ module Fastlane
52
52
  description: "Upload relevant metadata for this build",
53
53
  optional: true,
54
54
  default_value: true,
55
- is_string: false),
55
+ type: Boolean),
56
56
  FastlaneCore::ConfigItem.new(key: :plist_template_path,
57
57
  env_name: "",
58
58
  description: "plist template path",
@@ -3,7 +3,7 @@ module Fastlane
3
3
  class SayAction < Action
4
4
  def self.run(params)
5
5
  text = params[:text]
6
- text = text.join(' ') if text.kind_of?(Array)
6
+ text = text.join(' ')
7
7
  text = text.tr("'", '"')
8
8
 
9
9
  if params[:mute]
@@ -23,12 +23,11 @@ module Fastlane
23
23
  FastlaneCore::ConfigItem.new(key: :text,
24
24
  description: 'Text to be spoken out loud (as string or array of strings)',
25
25
  optional: false,
26
- is_string: false),
26
+ type: Array),
27
27
  FastlaneCore::ConfigItem.new(key: :mute,
28
28
  env_name: "SAY_MUTE",
29
29
  description: 'If say should be muted with text printed out',
30
30
  optional: false,
31
- is_string: false,
32
31
  type: Boolean,
33
32
  default_value: false)
34
33
  ]
@@ -38,40 +38,34 @@ module Fastlane
38
38
  FastlaneCore::ConfigItem.new(key: :username,
39
39
  short_option: "-u",
40
40
  env_name: "FL_SSH_USERNAME",
41
- description: "Username",
42
- is_string: true),
41
+ description: "Username"),
43
42
  FastlaneCore::ConfigItem.new(key: :password,
44
43
  short_option: "-p",
45
44
  env_name: "FL_SSH_PASSWORD",
46
45
  description: "Password",
47
46
  sensitive: true,
48
- optional: true,
49
- is_string: true),
47
+ optional: true),
50
48
  FastlaneCore::ConfigItem.new(key: :host,
51
49
  short_option: "-H",
52
50
  env_name: "FL_SSH_HOST",
53
- description: "Hostname",
54
- is_string: true),
51
+ description: "Hostname"),
55
52
  FastlaneCore::ConfigItem.new(key: :port,
56
53
  short_option: "-P",
57
54
  env_name: "FL_SSH_PORT",
58
55
  description: "Port",
59
56
  optional: true,
60
- default_value: "22",
61
- is_string: true),
57
+ default_value: "22"),
62
58
  FastlaneCore::ConfigItem.new(key: :upload,
63
59
  short_option: "-U",
64
60
  env_name: "FL_SCP_UPLOAD",
65
61
  description: "Upload",
66
62
  optional: true,
67
- is_string: false,
68
63
  type: Hash),
69
64
  FastlaneCore::ConfigItem.new(key: :download,
70
65
  short_option: "-D",
71
66
  env_name: "FL_SCP_DOWNLOAD",
72
67
  description: "Download",
73
68
  optional: true,
74
- is_string: false,
75
69
  type: Hash)
76
70
 
77
71
  ]
@@ -41,7 +41,7 @@ module Fastlane
41
41
  env_name: "USE_HG_REVISION_NUMBER",
42
42
  description: "Use hg revision number instead of hash (ignored for non-hg repos)",
43
43
  optional: true,
44
- is_string: false,
44
+ type: Boolean,
45
45
  default_value: false),
46
46
  FastlaneCore::ConfigItem.new(key: :xcodeproj,
47
47
  env_name: "XCODEPROJ_PATH",
@@ -149,7 +149,7 @@ module Fastlane
149
149
  env_name: "FL_SET_CHANGELOG_TEAM_ID",
150
150
  description: "The ID of your App Store Connect team if you're in multiple teams",
151
151
  optional: true,
152
- is_string: false, # as we also allow integers, which we convert to strings anyway
152
+ skip_type_validation: true, # as we also allow integers, which we convert to strings anyway
153
153
  code_gen_sensitive: true,
154
154
  default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_id),
155
155
  default_value_dynamic: true,
@@ -180,7 +180,6 @@ module Fastlane
180
180
  conflicting_options: [:api_bearer],
181
181
  sensitive: true,
182
182
  code_gen_sensitive: true,
183
- is_string: true,
184
183
  default_value: ENV["GITHUB_API_TOKEN"],
185
184
  default_value_dynamic: true,
186
185
  optional: true),
@@ -195,22 +194,18 @@ module Fastlane
195
194
  FastlaneCore::ConfigItem.new(key: :tag_name,
196
195
  env_name: "FL_SET_GITHUB_RELEASE_TAG_NAME",
197
196
  description: "Pass in the tag name",
198
- is_string: true,
199
197
  optional: false),
200
198
  FastlaneCore::ConfigItem.new(key: :name,
201
199
  env_name: "FL_SET_GITHUB_RELEASE_NAME",
202
200
  description: "Name of this release",
203
- is_string: true,
204
201
  optional: true),
205
202
  FastlaneCore::ConfigItem.new(key: :commitish,
206
203
  env_name: "FL_SET_GITHUB_RELEASE_COMMITISH",
207
204
  description: "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master)",
208
- is_string: true,
209
205
  optional: true),
210
206
  FastlaneCore::ConfigItem.new(key: :description,
211
207
  env_name: "FL_SET_GITHUB_RELEASE_DESCRIPTION",
212
208
  description: "Description of this release",
213
- is_string: true,
214
209
  optional: true,
215
210
  default_value: Actions.lane_context[SharedValues::FL_CHANGELOG],
216
211
  default_value_dynamic: true),
@@ -219,18 +214,17 @@ module Fastlane
219
214
  description: "Whether the release should be marked as draft",
220
215
  optional: true,
221
216
  default_value: false,
222
- is_string: false),
217
+ type: Boolean),
223
218
  FastlaneCore::ConfigItem.new(key: :is_prerelease,
224
219
  env_name: "FL_SET_GITHUB_RELEASE_IS_PRERELEASE",
225
220
  description: "Whether the release should be marked as prerelease",
226
221
  optional: true,
227
222
  default_value: false,
228
- is_string: false),
223
+ type: Boolean),
229
224
  FastlaneCore::ConfigItem.new(key: :upload_assets,
230
225
  env_name: "FL_SET_GITHUB_RELEASE_UPLOAD_ASSETS",
231
226
  description: "Path to assets to be uploaded with the release",
232
227
  optional: true,
233
- is_string: false,
234
228
  type: Array,
235
229
  verify_block: proc do |value|
236
230
  UI.user_error!("upload_assets must be an Array of paths to assets") unless value.kind_of?(Array)
@@ -53,7 +53,7 @@ module Fastlane
53
53
  FastlaneCore::ConfigItem.new(key: :value,
54
54
  env_name: "FL_SET_INFO_PLIST_PARAM_VALUE",
55
55
  description: "Value to setup",
56
- is_string: false,
56
+ skip_type_validation: true, # allow String, Hash
57
57
  optional: false),
58
58
  FastlaneCore::ConfigItem.new(key: :path,
59
59
  env_name: "FL_SET_INFO_PLIST_PATH",
@@ -36,22 +36,21 @@ module Fastlane
36
36
  FastlaneCore::ConfigItem.new(key: :use_bundle_exec,
37
37
  env_name: "FL_SET_POD_KEY_USE_BUNDLE_EXEC",
38
38
  description: "Use bundle exec when there is a Gemfile presented",
39
- is_string: false,
39
+ type: Boolean,
40
40
  default_value: true),
41
41
  FastlaneCore::ConfigItem.new(key: :key,
42
42
  env_name: "FL_SET_POD_KEY_ITEM_KEY",
43
43
  description: "The key to be saved with cocoapods-keys",
44
- is_string: true,
45
44
  optional: false),
46
45
  FastlaneCore::ConfigItem.new(key: :value,
47
46
  env_name: "FL_SET_POD_KEY_ITEM_VALUE",
48
47
  description: "The value to be saved with cocoapods-keys",
49
- is_string: true,
48
+ sensitive: true,
49
+ code_gen_sensitive: true,
50
50
  optional: false),
51
51
  FastlaneCore::ConfigItem.new(key: :project,
52
52
  env_name: "FL_SET_POD_KEY_PROJECT",
53
53
  description: "The project name",
54
- is_string: true,
55
54
  optional: true)
56
55
  ]
57
56
  end
@@ -92,12 +92,11 @@ module Fastlane
92
92
  FastlaneCore::ConfigItem.new(key: :force,
93
93
  env_name: "FL_SETUP_CI_FORCE",
94
94
  description: "Force setup, even if not executed by CI",
95
- is_string: false,
95
+ type: Boolean,
96
96
  default_value: false),
97
97
  FastlaneCore::ConfigItem.new(key: :provider,
98
98
  env_name: "FL_SETUP_CI_PROVIDER",
99
99
  description: "CI provider. If none is set, the provider is detected automatically",
100
- is_string: true,
101
100
  optional: true,
102
101
  verify_block: proc do |value|
103
102
  value = value.to_s
@@ -31,7 +31,7 @@ module Fastlane
31
31
  FastlaneCore::ConfigItem.new(key: :force,
32
32
  env_name: "FL_SETUP_CIRCLECI_FORCE",
33
33
  description: "Force setup, even if not executed by CircleCI",
34
- is_string: false,
34
+ type: Boolean,
35
35
  default_value: false)
36
36
  ]
37
37
  end
@@ -118,34 +118,32 @@ module Fastlane
118
118
  FastlaneCore::ConfigItem.new(key: :force,
119
119
  env_name: "FL_SETUP_JENKINS_FORCE",
120
120
  description: "Force setup, even if not executed by Jenkins",
121
- is_string: false,
121
+ type: Boolean,
122
122
  default_value: false),
123
123
 
124
124
  # Keychain
125
125
  FastlaneCore::ConfigItem.new(key: :unlock_keychain,
126
126
  env_name: "FL_SETUP_JENKINS_UNLOCK_KEYCHAIN",
127
127
  description: "Unlocks keychain",
128
- is_string: false,
128
+ type: Boolean,
129
129
  default_value: true),
130
130
  FastlaneCore::ConfigItem.new(key: :add_keychain_to_search_list,
131
131
  env_name: "FL_SETUP_JENKINS_ADD_KEYCHAIN_TO_SEARCH_LIST",
132
- description: "Add to keychain search list",
133
- is_string: false,
132
+ description: "Add to keychain search list, valid values are true, false, :add, and :replace",
133
+ skip_type_validation: true, # allow Boolean, Symbol
134
134
  default_value: :replace),
135
135
  FastlaneCore::ConfigItem.new(key: :set_default_keychain,
136
136
  env_name: "FL_SETUP_JENKINS_SET_DEFAULT_KEYCHAIN",
137
137
  description: "Set keychain as default",
138
- is_string: false,
138
+ type: Boolean,
139
139
  default_value: true),
140
140
  FastlaneCore::ConfigItem.new(key: :keychain_path,
141
141
  env_name: "KEYCHAIN_PATH",
142
142
  description: "Path to keychain",
143
- is_string: true,
144
143
  optional: true),
145
144
  FastlaneCore::ConfigItem.new(key: :keychain_password,
146
145
  env_name: "KEYCHAIN_PASSWORD",
147
146
  description: "Keychain password",
148
- is_string: true,
149
147
  sensitive: true,
150
148
  default_value: ""),
151
149
 
@@ -153,29 +151,26 @@ module Fastlane
153
151
  FastlaneCore::ConfigItem.new(key: :set_code_signing_identity,
154
152
  env_name: "FL_SETUP_JENKINS_SET_CODE_SIGNING_IDENTITY",
155
153
  description: "Set code signing identity from CODE_SIGNING_IDENTITY environment",
156
- is_string: false,
154
+ type: Boolean,
157
155
  default_value: true),
158
156
  FastlaneCore::ConfigItem.new(key: :code_signing_identity,
159
157
  env_name: "CODE_SIGNING_IDENTITY",
160
158
  description: "Code signing identity",
161
- is_string: true,
162
159
  optional: true),
163
160
 
164
161
  # Xcode parameters
165
162
  FastlaneCore::ConfigItem.new(key: :output_directory,
166
163
  env_name: "FL_SETUP_JENKINS_OUTPUT_DIRECTORY",
167
164
  description: "The directory in which the ipa file should be stored in",
168
- is_string: true,
169
165
  default_value: "./output"),
170
166
  FastlaneCore::ConfigItem.new(key: :derived_data_path,
171
167
  env_name: "FL_SETUP_JENKINS_DERIVED_DATA_PATH",
172
168
  description: "The directory where built products and other derived data will go",
173
- is_string: true,
174
169
  default_value: "./derivedData"),
175
170
  FastlaneCore::ConfigItem.new(key: :result_bundle,
176
171
  env_name: "FL_SETUP_JENKINS_RESULT_BUNDLE",
177
172
  description: "Produce the result bundle describing what occurred will be placed",
178
- is_string: false,
173
+ type: Boolean,
179
174
  default_value: true)
180
175
  ]
181
176
  end