fastlane 2.185.0 → 2.188.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +96 -96
  3. data/fastlane/lib/fastlane/actions/appetize.rb +0 -7
  4. data/fastlane/lib/fastlane/actions/appium.rb +40 -65
  5. data/fastlane/lib/fastlane/actions/appledoc.rb +45 -45
  6. data/fastlane/lib/fastlane/actions/apteligent.rb +3 -2
  7. data/fastlane/lib/fastlane/actions/artifactory.rb +5 -6
  8. data/fastlane/lib/fastlane/actions/automatic_code_signing.rb +7 -13
  9. data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +2 -2
  10. data/fastlane/lib/fastlane/actions/badge.rb +9 -13
  11. data/fastlane/lib/fastlane/actions/build_and_upload_to_appetize.rb +1 -3
  12. data/fastlane/lib/fastlane/actions/bundle_install.rb +8 -10
  13. data/fastlane/lib/fastlane/actions/carthage.rb +1 -15
  14. data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +8 -17
  15. data/fastlane/lib/fastlane/actions/chatwork.rb +3 -2
  16. data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +0 -1
  17. data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +0 -1
  18. data/fastlane/lib/fastlane/actions/cloc.rb +9 -13
  19. data/fastlane/lib/fastlane/actions/cocoapods.rb +9 -15
  20. data/fastlane/lib/fastlane/actions/commit_github_file.rb +1 -3
  21. data/fastlane/lib/fastlane/actions/commit_version_bump.rb +6 -7
  22. data/fastlane/lib/fastlane/actions/copy_artifacts.rb +3 -4
  23. data/fastlane/lib/fastlane/actions/crashlytics.rb +7 -11
  24. data/fastlane/lib/fastlane/actions/create_app_on_managed_play_store.rb +70 -76
  25. data/fastlane/lib/fastlane/actions/create_keychain.rb +13 -11
  26. data/fastlane/lib/fastlane/actions/create_pull_request.rb +0 -9
  27. data/fastlane/lib/fastlane/actions/danger.rb +6 -11
  28. data/fastlane/lib/fastlane/actions/deploygate.rb +1 -2
  29. data/fastlane/lib/fastlane/actions/docs/build_app.md +1 -1
  30. data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +26 -27
  31. data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +2 -2
  32. data/fastlane/lib/fastlane/actions/docs/create_app_online.md +171 -67
  33. data/fastlane/lib/fastlane/actions/download_app_privacy_details_from_app_store.rb +1 -1
  34. data/fastlane/lib/fastlane/actions/download_dsyms.rb +3 -4
  35. data/fastlane/lib/fastlane/actions/dsym_zip.rb +1 -1
  36. data/fastlane/lib/fastlane/actions/ensure_git_branch.rb +0 -1
  37. data/fastlane/lib/fastlane/actions/ensure_git_status_clean.rb +3 -4
  38. data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +3 -5
  39. data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +1 -2
  40. data/fastlane/lib/fastlane/actions/environment_variable.rb +13 -21
  41. data/fastlane/lib/fastlane/actions/erb.rb +2 -5
  42. data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +1 -1
  43. data/fastlane/lib/fastlane/actions/get_ipa_info_plist_value.rb +0 -1
  44. data/fastlane/lib/fastlane/actions/get_managed_play_store_publishing_rights.rb +29 -34
  45. data/fastlane/lib/fastlane/actions/get_push_certificate.rb +1 -1
  46. data/fastlane/lib/fastlane/actions/git_add.rb +5 -10
  47. data/fastlane/lib/fastlane/actions/git_commit.rb +2 -6
  48. data/fastlane/lib/fastlane/actions/git_remote_branch.rb +57 -0
  49. data/fastlane/lib/fastlane/actions/github_api.rb +2 -5
  50. data/fastlane/lib/fastlane/actions/gradle.rb +12 -20
  51. data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +1 -1
  52. data/fastlane/lib/fastlane/actions/hg_push.rb +1 -1
  53. data/fastlane/lib/fastlane/actions/hipchat.rb +4 -5
  54. data/fastlane/lib/fastlane/actions/hockey.rb +5 -12
  55. data/fastlane/lib/fastlane/actions/ifttt.rb +3 -6
  56. data/fastlane/lib/fastlane/actions/import_from_git.rb +2 -4
  57. data/fastlane/lib/fastlane/actions/increment_build_number.rb +1 -2
  58. data/fastlane/lib/fastlane/actions/install_on_device.rb +3 -6
  59. data/fastlane/lib/fastlane/actions/installr.rb +22 -25
  60. data/fastlane/lib/fastlane/actions/ipa.rb +2 -2
  61. data/fastlane/lib/fastlane/actions/jazzy.rb +8 -14
  62. data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +3 -4
  63. data/fastlane/lib/fastlane/actions/lcov.rb +0 -4
  64. data/fastlane/lib/fastlane/actions/mailgun.rb +21 -27
  65. data/fastlane/lib/fastlane/actions/make_changelog_from_jenkins.rb +1 -1
  66. data/fastlane/lib/fastlane/actions/modify_services.rb +59 -24
  67. data/fastlane/lib/fastlane/actions/nexus_upload.rb +2 -2
  68. data/fastlane/lib/fastlane/actions/notarize.rb +1 -4
  69. data/fastlane/lib/fastlane/actions/number_of_commits.rb +1 -1
  70. data/fastlane/lib/fastlane/actions/oclint.rb +15 -14
  71. data/fastlane/lib/fastlane/actions/pod_push.rb +0 -2
  72. data/fastlane/lib/fastlane/actions/podio_item.rb +0 -7
  73. data/fastlane/lib/fastlane/actions/prompt.rb +3 -4
  74. data/fastlane/lib/fastlane/actions/push_git_tags.rb +1 -1
  75. data/fastlane/lib/fastlane/actions/puts.rb +1 -2
  76. data/fastlane/lib/fastlane/actions/register_devices.rb +0 -1
  77. data/fastlane/lib/fastlane/actions/reset_git_repo.rb +5 -8
  78. data/fastlane/lib/fastlane/actions/reset_simulator_contents.rb +0 -2
  79. data/fastlane/lib/fastlane/actions/resign.rb +2 -9
  80. data/fastlane/lib/fastlane/actions/rsync.rb +3 -6
  81. data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
  82. data/fastlane/lib/fastlane/actions/s3.rb +1 -1
  83. data/fastlane/lib/fastlane/actions/say.rb +2 -3
  84. data/fastlane/lib/fastlane/actions/scp.rb +4 -10
  85. data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
  86. data/fastlane/lib/fastlane/actions/set_changelog.rb +1 -1
  87. data/fastlane/lib/fastlane/actions/set_github_release.rb +2 -8
  88. data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +1 -1
  89. data/fastlane/lib/fastlane/actions/set_pod_key.rb +3 -4
  90. data/fastlane/lib/fastlane/actions/setup_ci.rb +1 -2
  91. data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +1 -1
  92. data/fastlane/lib/fastlane/actions/setup_jenkins.rb +7 -12
  93. data/fastlane/lib/fastlane/actions/setup_travis.rb +1 -1
  94. data/fastlane/lib/fastlane/actions/sh.rb +2 -4
  95. data/fastlane/lib/fastlane/actions/slack.rb +6 -8
  96. data/fastlane/lib/fastlane/actions/slather.rb +3 -19
  97. data/fastlane/lib/fastlane/actions/sonar.rb +12 -19
  98. data/fastlane/lib/fastlane/actions/sourcedocs.rb +62 -98
  99. data/fastlane/lib/fastlane/actions/splunkmint.rb +2 -2
  100. data/fastlane/lib/fastlane/actions/spm.rb +3 -3
  101. data/fastlane/lib/fastlane/actions/ssh.rb +5 -10
  102. data/fastlane/lib/fastlane/actions/testfairy.rb +0 -1
  103. data/fastlane/lib/fastlane/actions/tryouts.rb +2 -3
  104. data/fastlane/lib/fastlane/actions/twitter.rb +0 -5
  105. data/fastlane/lib/fastlane/actions/unlock_keychain.rb +3 -3
  106. data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +1 -4
  107. data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +8 -15
  108. data/fastlane/lib/fastlane/actions/update_fastlane.rb +2 -2
  109. data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +1 -4
  110. data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
  111. data/fastlane/lib/fastlane/actions/update_keychain_access_groups.rb +1 -4
  112. data/fastlane/lib/fastlane/actions/update_plist.rb +1 -1
  113. data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +2 -2
  114. data/fastlane/lib/fastlane/actions/update_urban_airship_configuration.rb +0 -1
  115. data/fastlane/lib/fastlane/actions/update_url_schemes.rb +15 -26
  116. data/fastlane/lib/fastlane/actions/upload_app_privacy_details_to_app_store.rb +1 -2
  117. data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +3 -10
  118. data/fastlane/lib/fastlane/actions/validate_play_store_json_key.rb +40 -44
  119. data/fastlane/lib/fastlane/actions/version_get_podspec.rb +1 -2
  120. data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +3 -3
  121. data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
  122. data/fastlane/lib/fastlane/documentation/markdown_docs_generator.rb +1 -1
  123. data/fastlane/lib/fastlane/helper/crashlytics_helper.rb +4 -4
  124. data/fastlane/lib/fastlane/helper/git_helper.rb +17 -5
  125. data/fastlane/lib/fastlane/plugins/template/.circleci/config.yml +1 -1
  126. data/fastlane/lib/fastlane/plugins/template/.github/workflows/test.yml +1 -1
  127. data/fastlane/lib/fastlane/setup/setup_ios.rb +3 -3
  128. data/fastlane/lib/fastlane/swift_fastlane_function.rb +4 -4
  129. data/fastlane/lib/fastlane/version.rb +1 -1
  130. data/fastlane/swift/Deliverfile.swift +1 -1
  131. data/fastlane/swift/DeliverfileProtocol.swift +1 -1
  132. data/fastlane/swift/Fastlane.swift +1239 -1222
  133. data/fastlane/swift/Gymfile.swift +1 -1
  134. data/fastlane/swift/GymfileProtocol.swift +1 -1
  135. data/fastlane/swift/Matchfile.swift +1 -1
  136. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  137. data/fastlane/swift/Precheckfile.swift +1 -1
  138. data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
  139. data/fastlane/swift/Scanfile.swift +1 -1
  140. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  141. data/fastlane/swift/Screengrabfile.swift +1 -1
  142. data/fastlane/swift/ScreengrabfileProtocol.swift +4 -4
  143. data/fastlane/swift/Snapshotfile.swift +1 -1
  144. data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
  145. data/fastlane/swift/formatting/Brewfile.lock.json +19 -11
  146. data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +13 -0
  147. data/fastlane_core/lib/fastlane_core/print_table.rb +5 -3
  148. data/fastlane_core/lib/fastlane_core/project.rb +7 -3
  149. data/match/lib/match/importer.rb +3 -0
  150. data/match/lib/match/nuke.rb +2 -3
  151. data/pilot/lib/pilot.rb +0 -1
  152. data/pilot/lib/pilot/build_manager.rb +0 -3
  153. data/pilot/lib/pilot/manager.rb +4 -1
  154. data/produce/lib/produce/commands_generator.rb +99 -27
  155. data/produce/lib/produce/developer_center.rb +42 -4
  156. data/produce/lib/produce/options.rb +1 -1
  157. data/produce/lib/produce/service.rb +270 -179
  158. data/screengrab/lib/screengrab/android_environment.rb +2 -52
  159. data/screengrab/lib/screengrab/dependency_checker.rb +0 -20
  160. data/screengrab/lib/screengrab/options.rb +5 -2
  161. data/screengrab/lib/screengrab/runner.rb +109 -107
  162. data/snapshot/lib/assets/SnapfileTemplate +2 -1
  163. data/snapshot/lib/assets/SnapfileTemplate.swift +2 -1
  164. data/snapshot/lib/assets/SnapshotHelper.swift +14 -10
  165. data/snapshot/lib/snapshot/reports_generator.rb +3 -1
  166. data/snapshot/lib/snapshot/test_command_generator.rb +17 -3
  167. data/spaceship/lib/spaceship/client.rb +13 -3
  168. data/spaceship/lib/spaceship/connect_api/api_client.rb +30 -5
  169. data/spaceship/lib/spaceship/connect_api/models/{.app_store_version_submission.rb.swp → .bundle_id.rb.swp} +0 -0
  170. data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +3 -1
  171. data/spaceship/lib/spaceship/connect_api/models/build.rb +3 -1
  172. data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +8 -0
  173. data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +58 -17
  174. data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +41 -1
  175. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +13 -0
  176. data/spaceship/lib/spaceship/portal/.app.rb.swp +0 -0
  177. data/spaceship/lib/spaceship/spaceauth_runner.rb +19 -6
  178. metadata +25 -28
  179. data/fastlane/lib/fastlane/.erb_template_helper.rb.swp +0 -0
  180. data/fastlane/lib/fastlane/actions/.git_commit.rb.swp +0 -0
  181. data/gym/lib/gym/generators/.package_command_generator_xcode7.rb.swp +0 -0
  182. data/pilot/lib/pilot/features.rb +0 -0
  183. data/spaceship/lib/spaceship/.DS_Store +0 -0
@@ -143,7 +143,7 @@ module Fastlane
143
143
  FastlaneCore::ConfigItem.new(key: :ssl_verify,
144
144
  env_name: "FL_NEXUS_SSL_VERIFY",
145
145
  description: "Verify SSL",
146
- is_string: false,
146
+ type: Boolean,
147
147
  default_value: true,
148
148
  optional: true),
149
149
  FastlaneCore::ConfigItem.new(key: :nexus_version,
@@ -161,7 +161,7 @@ module Fastlane
161
161
  FastlaneCore::ConfigItem.new(key: :verbose,
162
162
  env_name: "FL_NEXUS_VERBOSE",
163
163
  description: "Make detailed output",
164
- is_string: false,
164
+ type: Boolean,
165
165
  default_value: false,
166
166
  optional: true),
167
167
  FastlaneCore::ConfigItem.new(key: :proxy_username,
@@ -177,7 +177,6 @@ module Fastlane
177
177
  FastlaneCore::ConfigItem.new(key: :package,
178
178
  env_name: 'FL_NOTARIZE_PACKAGE',
179
179
  description: 'Path to package to notarize, e.g. .app bundle or disk image',
180
- is_string: true,
181
180
  verify_block: proc do |value|
182
181
  UI.user_error!("Could not find package at '#{value}'") unless File.exist?(value)
183
182
  end),
@@ -190,8 +189,7 @@ module Fastlane
190
189
  FastlaneCore::ConfigItem.new(key: :bundle_id,
191
190
  env_name: 'FL_NOTARIZE_BUNDLE_ID',
192
191
  description: 'Bundle identifier to uniquely identify the package',
193
- optional: true,
194
- is_string: true),
192
+ optional: true),
195
193
  FastlaneCore::ConfigItem.new(key: :username,
196
194
  env_name: 'FL_NOTARIZE_USERNAME',
197
195
  description: 'Apple ID username',
@@ -221,7 +219,6 @@ module Fastlane
221
219
  description: 'Path to AppStore Connect API key',
222
220
  optional: true,
223
221
  conflicting_options: [:username],
224
- is_string: true,
225
222
  verify_block: proc do |value|
226
223
  UI.user_error!("API Key not found at '#{value}'") unless File.exist?(value)
227
224
  end)
@@ -42,7 +42,7 @@ module Fastlane
42
42
  FastlaneCore::ConfigItem.new(key: :all,
43
43
  env_name: "FL_NUMBER_OF_COMMITS_ALL",
44
44
  optional: true,
45
- is_string: false,
45
+ type: Boolean,
46
46
  description: "Returns number of all commits instead of current branch")
47
47
  ]
48
48
  end
@@ -129,20 +129,21 @@ module Fastlane
129
129
  description: 'The json compilation database, use xctool reporter \'json-compilation-database\'',
130
130
  default_value: 'compile_commands.json',
131
131
  optional: true),
132
- FastlaneCore::ConfigItem.new(key: :select_reqex, # select_reqex is deprecated, remove as soon as possible
132
+ FastlaneCore::ConfigItem.new(key: :select_reqex,
133
133
  env_name: 'FL_OCLINT_SELECT_REQEX',
134
134
  description: 'Select all files matching this reqex',
135
- is_string: false,
135
+ skip_type_validation: true, # allows Regex
136
+ deprecated: "Use `:select_regex` instead",
136
137
  optional: true),
137
138
  FastlaneCore::ConfigItem.new(key: :select_regex,
138
139
  env_name: 'FL_OCLINT_SELECT_REGEX',
139
140
  description: 'Select all files matching this regex',
140
- is_string: false,
141
+ skip_type_validation: true, # allows Regex
141
142
  optional: true),
142
143
  FastlaneCore::ConfigItem.new(key: :exclude_regex,
143
144
  env_name: 'FL_OCLINT_EXCLUDE_REGEX',
144
145
  description: 'Exclude all files matching this regex',
145
- is_string: false,
146
+ skip_type_validation: true, # allows Regex
146
147
  optional: true),
147
148
  FastlaneCore::ConfigItem.new(key: :report_type,
148
149
  env_name: 'FL_OCLINT_REPORT_TYPE',
@@ -156,7 +157,7 @@ module Fastlane
156
157
  FastlaneCore::ConfigItem.new(key: :list_enabled_rules,
157
158
  env_name: "FL_OCLINT_LIST_ENABLED_RULES",
158
159
  description: "List enabled rules",
159
- is_string: false,
160
+ type: Boolean,
160
161
  default_value: false),
161
162
  FastlaneCore::ConfigItem.new(key: :rc,
162
163
  env_name: 'FL_OCLINT_RC',
@@ -165,47 +166,47 @@ module Fastlane
165
166
  FastlaneCore::ConfigItem.new(key: :thresholds,
166
167
  env_name: 'FL_OCLINT_THRESHOLDS',
167
168
  description: 'List of rule thresholds to override the default behavior of rules',
168
- is_string: false,
169
+ type: Array,
169
170
  optional: true),
170
171
  FastlaneCore::ConfigItem.new(key: :enable_rules,
171
172
  env_name: 'FL_OCLINT_ENABLE_RULES',
172
173
  description: 'List of rules to pick explicitly',
173
- is_string: false,
174
+ type: Array,
174
175
  optional: true),
175
176
  FastlaneCore::ConfigItem.new(key: :disable_rules,
176
177
  env_name: 'FL_OCLINT_DISABLE_RULES',
177
178
  description: 'List of rules to disable',
178
- is_string: false,
179
+ type: Array,
179
180
  optional: true),
180
181
  FastlaneCore::ConfigItem.new(key: :max_priority_1,
181
182
  env_name: 'FL_OCLINT_MAX_PRIOTITY_1',
182
183
  description: 'The max allowed number of priority 1 violations',
183
- is_string: false,
184
+ type: Integer,
184
185
  optional: true),
185
186
  FastlaneCore::ConfigItem.new(key: :max_priority_2,
186
187
  env_name: 'FL_OCLINT_MAX_PRIOTITY_2',
187
188
  description: 'The max allowed number of priority 2 violations',
188
- is_string: false,
189
+ type: Integer,
189
190
  optional: true),
190
191
  FastlaneCore::ConfigItem.new(key: :max_priority_3,
191
192
  env_name: 'FL_OCLINT_MAX_PRIOTITY_3',
192
193
  description: 'The max allowed number of priority 3 violations',
193
- is_string: false,
194
+ type: Integer,
194
195
  optional: true),
195
196
  FastlaneCore::ConfigItem.new(key: :enable_clang_static_analyzer,
196
197
  env_name: "FL_OCLINT_ENABLE_CLANG_STATIC_ANALYZER",
197
198
  description: "Enable Clang Static Analyzer, and integrate results into OCLint report",
198
- is_string: false,
199
+ type: Boolean,
199
200
  default_value: false),
200
201
  FastlaneCore::ConfigItem.new(key: :enable_global_analysis,
201
202
  env_name: "FL_OCLINT_ENABLE_GLOBAL_ANALYSIS",
202
203
  description: "Compile every source, and analyze across global contexts (depends on number of source files, could results in high memory load)",
203
- is_string: false,
204
+ type: Boolean,
204
205
  default_value: false),
205
206
  FastlaneCore::ConfigItem.new(key: :allow_duplicated_violations,
206
207
  env_name: "FL_OCLINT_ALLOW_DUPLICATED_VIOLATIONS",
207
208
  description: "Allow duplicated violations in the OCLint report",
208
- is_string: false,
209
+ type: Boolean,
209
210
  default_value: false),
210
211
  FastlaneCore::ConfigItem.new(key: :extra_arg,
211
212
  env_name: 'FL_OCLINT_EXTRA_ARG',
@@ -104,7 +104,6 @@ module Fastlane
104
104
  FastlaneCore::ConfigItem.new(key: :sources,
105
105
  description: "The sources of repos you want the pod spec to lint with, separated by commas",
106
106
  optional: true,
107
- is_string: false,
108
107
  type: Array,
109
108
  verify_block: proc do |value|
110
109
  UI.user_error!("Sources must be an array.") unless value.kind_of?(Array)
@@ -113,7 +112,6 @@ module Fastlane
113
112
  FastlaneCore::ConfigItem.new(key: :swift_version,
114
113
  description: "The SWIFT_VERSION that should be used to lint the spec. This takes precedence over a .swift-version file",
115
114
  optional: true,
116
- is_string: true,
117
115
  env_name: "FL_POD_PUSH_SWIFT_VERSION"),
118
116
  FastlaneCore::ConfigItem.new(key: :skip_import_validation,
119
117
  description: "Lint skips validating that the pod can be imported",
@@ -37,7 +37,6 @@ module Fastlane
37
37
  FastlaneCore::ConfigItem.new(key: :client_id,
38
38
  env_name: 'PODIO_ITEM_CLIENT_ID',
39
39
  description: 'Client ID for Podio API (see https://developers.podio.com/api-key)',
40
- is_string: true,
41
40
  verify_block: proc do |value|
42
41
  UI.user_error!("No Client ID for Podio given, pass using `client_id: 'id'`") unless value && !value.empty?
43
42
  end),
@@ -45,14 +44,12 @@ module Fastlane
45
44
  env_name: 'PODIO_ITEM_CLIENT_SECRET',
46
45
  sensitive: true,
47
46
  description: 'Client secret for Podio API (see https://developers.podio.com/api-key)',
48
- is_string: true,
49
47
  verify_block: proc do |value|
50
48
  UI.user_error!("No Client Secret for Podio given, pass using `client_secret: 'secret'`") unless value && !value.empty?
51
49
  end),
52
50
  FastlaneCore::ConfigItem.new(key: :app_id,
53
51
  env_name: 'PODIO_ITEM_APP_ID',
54
52
  description: 'App ID of the app you intend to authenticate with (see https://developers.podio.com/authentication/app_auth)',
55
- is_string: true,
56
53
  verify_block: proc do |value|
57
54
  UI.user_error!("No App ID for Podio given, pass using `app_id: 'id'`") unless value && !value.empty?
58
55
  end),
@@ -60,26 +57,22 @@ module Fastlane
60
57
  env_name: 'PODIO_ITEM_APP_TOKEN',
61
58
  sensitive: true,
62
59
  description: 'App token of the app you intend to authenticate with (see https://developers.podio.com/authentication/app_auth)',
63
- is_string: true,
64
60
  verify_block: proc do |value|
65
61
  UI.user_error!("No App token for Podio given, pass using `app_token: 'token'`") unless value && !value.empty?
66
62
  end),
67
63
  FastlaneCore::ConfigItem.new(key: :identifying_field,
68
64
  env_name: 'PODIO_ITEM_IDENTIFYING_FIELD',
69
65
  description: 'String specifying the field key used for identification of an item',
70
- is_string: true,
71
66
  verify_block: proc do |value|
72
67
  UI.user_error!("No Identifying field given, pass using `identifying_field: 'field name'`") unless value && !value.empty?
73
68
  end),
74
69
  FastlaneCore::ConfigItem.new(key: :identifying_value,
75
70
  description: 'String uniquely specifying an item within the app',
76
- is_string: true,
77
71
  verify_block: proc do |value|
78
72
  UI.user_error!("No Identifying value given, pass using `identifying_value: 'unique value'`") unless value && !value.empty?
79
73
  end),
80
74
  FastlaneCore::ConfigItem.new(key: :other_fields,
81
75
  description: 'Dictionary of your app fields. Podio supports several field types, see https://developers.podio.com/doc/items',
82
- is_string: false,
83
76
  type: Hash,
84
77
  optional: true)
85
78
  ]
@@ -67,15 +67,14 @@ module Fastlane
67
67
  FastlaneCore::ConfigItem.new(key: :boolean,
68
68
  description: "Is that a boolean question (yes/no)? This will add (y/n) at the end",
69
69
  default_value: false,
70
- is_string: false),
70
+ type: Boolean),
71
71
  FastlaneCore::ConfigItem.new(key: :secure_text,
72
72
  description: "Is that a secure text (yes/no)?",
73
73
  default_value: false,
74
- is_string: false),
74
+ type: Boolean),
75
75
  FastlaneCore::ConfigItem.new(key: :multi_line_end_keyword,
76
76
  description: "Enable multi-line inputs by providing an end text (e.g. 'END') which will stop the user input",
77
- optional: true,
78
- is_string: true)
77
+ optional: true)
79
78
  ]
80
79
  end
81
80
 
@@ -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
  ]