fastlane 1.104.0 → 1.105.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/lib/.DS_Store +0 -0
  3. data/lib/assets/.DS_Store +0 -0
  4. data/lib/assets/Actions.md.erb +78 -0
  5. data/lib/assets/AvailablePlugins.md.erb +2 -2
  6. data/lib/{fastlane/plugins → assets/completions}/.DS_Store +0 -0
  7. data/lib/fastlane/.DS_Store +0 -0
  8. data/lib/fastlane/action.rb +33 -0
  9. data/lib/fastlane/actions/.DS_Store +0 -0
  10. data/lib/fastlane/actions/adb.rb +12 -0
  11. data/lib/fastlane/actions/adb_devices.rb +21 -2
  12. data/lib/fastlane/actions/add_git_tag.rb +31 -0
  13. data/lib/fastlane/actions/appaloosa.rb +27 -0
  14. data/lib/fastlane/actions/appetize.rb +23 -1
  15. data/lib/fastlane/actions/appetize_viewing_url_generator.rb +3 -1
  16. data/lib/fastlane/actions/appium.rb +18 -0
  17. data/lib/fastlane/actions/appledoc.rb +24 -0
  18. data/lib/fastlane/actions/appstore.rb +8 -0
  19. data/lib/fastlane/actions/apteligent.rb +13 -0
  20. data/lib/fastlane/actions/artifactory.rb +17 -0
  21. data/lib/fastlane/actions/backup_file.rb +10 -0
  22. data/lib/fastlane/actions/backup_xcarchive.rb +15 -0
  23. data/lib/fastlane/actions/badge.rb +15 -1
  24. data/lib/fastlane/actions/build_and_upload_to_appetize.rb +14 -1
  25. data/lib/fastlane/actions/bundle_install.rb +9 -0
  26. data/lib/fastlane/actions/carthage.rb +23 -0
  27. data/lib/fastlane/actions/cert.rb +21 -0
  28. data/lib/fastlane/actions/changelog_from_git_commits.rb +16 -0
  29. data/lib/fastlane/actions/chatwork.rb +20 -1
  30. data/lib/fastlane/actions/clean_build_artifacts.rb +19 -1
  31. data/lib/fastlane/actions/clean_cocoapods_cache.rb +11 -0
  32. data/lib/fastlane/actions/clear_derived_data.rb +11 -0
  33. data/lib/fastlane/actions/clipboard.rb +11 -0
  34. data/lib/fastlane/actions/cloc.rb +18 -1
  35. data/lib/fastlane/actions/cocoapods.rb +18 -0
  36. data/lib/fastlane/actions/commit_version_bump.rb +30 -0
  37. data/lib/fastlane/actions/copy_artifacts.rb +25 -0
  38. data/lib/fastlane/actions/crashlytics.rb +24 -1
  39. data/lib/fastlane/actions/create_keychain.rb +16 -0
  40. data/lib/fastlane/actions/create_pull_request.rb +18 -0
  41. data/lib/fastlane/actions/danger.rb +20 -1
  42. data/lib/fastlane/actions/debug.rb +10 -0
  43. data/lib/fastlane/actions/default_platform.rb +10 -0
  44. data/lib/fastlane/actions/delete_keychain.rb +14 -0
  45. data/lib/fastlane/actions/deliver.rb +26 -0
  46. data/lib/fastlane/actions/deploygate.rb +25 -2
  47. data/lib/fastlane/{plugins/templates → actions/device_grid}/.DS_Store +0 -0
  48. data/lib/fastlane/actions/dotgpg_environment.rb +10 -0
  49. data/lib/fastlane/actions/download.rb +10 -0
  50. data/lib/fastlane/actions/download_dsyms.rb +20 -2
  51. data/lib/fastlane/actions/dsym_zip.rb +17 -0
  52. data/lib/fastlane/actions/ensure_git_branch.rb +21 -0
  53. data/lib/fastlane/actions/ensure_git_status_clean.rb +18 -0
  54. data/lib/fastlane/actions/ensure_no_debug_code.rb +21 -1
  55. data/lib/fastlane/actions/ensure_xcode_version.rb +8 -0
  56. data/lib/fastlane/actions/erb.rb +30 -1
  57. data/lib/fastlane/actions/fastlane_version.rb +17 -2
  58. data/lib/fastlane/actions/flock.rb +20 -0
  59. data/lib/fastlane/actions/frameit.rb +18 -0
  60. data/lib/fastlane/actions/gcovr.rb +18 -0
  61. data/lib/fastlane/actions/get_build_number.rb +10 -0
  62. data/lib/fastlane/actions/get_build_number_repository.rb +18 -0
  63. data/lib/fastlane/actions/get_github_release.rb +18 -1
  64. data/lib/fastlane/actions/get_info_plist_value.rb +14 -0
  65. data/lib/fastlane/actions/get_ipa_info_plist_value.rb +10 -0
  66. data/lib/fastlane/actions/get_version_number.rb +10 -0
  67. data/lib/fastlane/actions/git_add.rb +11 -7
  68. data/lib/fastlane/actions/git_branch.rb +10 -0
  69. data/lib/fastlane/actions/git_commit.rb +13 -0
  70. data/lib/fastlane/actions/git_pull.rb +11 -0
  71. data/lib/fastlane/actions/git_tag_exists.rb +12 -0
  72. data/lib/fastlane/actions/gradle.rb +45 -0
  73. data/lib/fastlane/actions/gym.rb +25 -3
  74. data/lib/fastlane/actions/hg_add_tag.rb +10 -0
  75. data/lib/fastlane/actions/hg_commit_version_bump.rb +26 -0
  76. data/lib/fastlane/actions/hg_ensure_clean_status.rb +14 -0
  77. data/lib/fastlane/actions/hg_push.rb +18 -0
  78. data/lib/fastlane/actions/hipchat.rb +19 -0
  79. data/lib/fastlane/actions/hockey.rb +22 -1
  80. data/lib/fastlane/actions/ifttt.rb +20 -0
  81. data/lib/fastlane/actions/import.rb +10 -0
  82. data/lib/fastlane/actions/import_certificate.rb +19 -0
  83. data/lib/fastlane/actions/import_from_git.rb +14 -0
  84. data/lib/fastlane/actions/increment_build_number.rb +24 -2
  85. data/lib/fastlane/actions/increment_version_number.rb +31 -0
  86. data/lib/fastlane/actions/install_on_device.rb +17 -0
  87. data/lib/fastlane/actions/install_xcode_plugin.rb +11 -0
  88. data/lib/fastlane/actions/installr.rb +17 -1
  89. data/lib/fastlane/actions/ipa.rb +25 -1
  90. data/lib/fastlane/actions/is_ci.rb +14 -1
  91. data/lib/fastlane/actions/jazzy.rb +10 -0
  92. data/lib/fastlane/actions/jira.rb +16 -3
  93. data/lib/fastlane/actions/lane_context.rb +8 -0
  94. data/lib/fastlane/actions/last_git_commit.rb +23 -0
  95. data/lib/fastlane/actions/last_git_tag.rb +14 -0
  96. data/lib/fastlane/actions/latest_testflight_build_number.rb +21 -1
  97. data/lib/fastlane/actions/lcov.rb +14 -0
  98. data/lib/fastlane/actions/mailgun.rb +25 -0
  99. data/lib/fastlane/actions/make_changelog_from_jenkins.rb +13 -0
  100. data/lib/fastlane/actions/match.rb +11 -0
  101. data/lib/fastlane/actions/nexus_upload.rb +20 -0
  102. data/lib/fastlane/actions/notification.rb +10 -0
  103. data/lib/fastlane/actions/notify.rb +9 -1
  104. data/lib/fastlane/actions/number_of_commits.rb +15 -0
  105. data/lib/fastlane/actions/oclint.rb +35 -0
  106. data/lib/fastlane/actions/onesignal.rb +17 -3
  107. data/lib/fastlane/actions/opt_out_usage.rb +10 -0
  108. data/lib/fastlane/actions/pem.rb +19 -0
  109. data/lib/fastlane/actions/pilot.rb +17 -0
  110. data/lib/fastlane/actions/pod_lib_lint.rb +16 -0
  111. data/lib/fastlane/actions/pod_push.rb +17 -3
  112. data/lib/fastlane/actions/podio_item.rb +16 -0
  113. data/lib/fastlane/actions/produce.rb +19 -0
  114. data/lib/fastlane/actions/prompt.rb +20 -0
  115. data/lib/fastlane/actions/push_git_tags.rb +14 -0
  116. data/lib/fastlane/actions/push_to_git_remote.rb +25 -0
  117. data/lib/fastlane/actions/puts.rb +10 -0
  118. data/lib/fastlane/actions/read_podspec.rb +23 -1
  119. data/lib/fastlane/actions/recreate_schemes.rb +10 -0
  120. data/lib/fastlane/actions/register_devices.rb +31 -0
  121. data/lib/fastlane/actions/reset_git_repo.rb +18 -0
  122. data/lib/fastlane/actions/reset_simulators.rb +10 -0
  123. data/lib/fastlane/actions/resign.rb +24 -2
  124. data/lib/fastlane/actions/restore_file.rb +10 -0
  125. data/lib/fastlane/actions/rocket.rb +14 -0
  126. data/lib/fastlane/actions/rsync.rb +13 -0
  127. data/lib/fastlane/actions/s3.rb +30 -0
  128. data/lib/fastlane/actions/say.rb +10 -0
  129. data/lib/fastlane/actions/scan.rb +16 -1
  130. data/lib/fastlane/actions/scp.rb +25 -0
  131. data/lib/fastlane/actions/screengrab.rb +16 -0
  132. data/lib/fastlane/actions/set_build_number_repository.rb +16 -3
  133. data/lib/fastlane/actions/set_changelog.rb +14 -1
  134. data/lib/fastlane/actions/set_github_release.rb +18 -0
  135. data/lib/fastlane/actions/set_info_plist_value.rb +10 -4
  136. data/lib/fastlane/actions/set_pod_key.rb +18 -0
  137. data/lib/fastlane/actions/setup_jenkins.rb +15 -1
  138. data/lib/fastlane/actions/sigh.rb +19 -0
  139. data/lib/fastlane/actions/skip_docs.rb +14 -0
  140. data/lib/fastlane/actions/slack.rb +34 -0
  141. data/lib/fastlane/actions/slather.rb +15 -2
  142. data/lib/fastlane/actions/snapshot.rb +14 -0
  143. data/lib/fastlane/actions/sonar.rb +37 -19
  144. data/lib/fastlane/actions/splunkmint.rb +14 -0
  145. data/lib/fastlane/actions/ssh.rb +18 -1
  146. data/lib/fastlane/actions/supply.rb +10 -2
  147. data/lib/fastlane/actions/swiftlint.rb +19 -0
  148. data/lib/fastlane/actions/team_id.rb +10 -0
  149. data/lib/fastlane/actions/team_name.rb +10 -0
  150. data/lib/fastlane/actions/testfairy.rb +19 -1
  151. data/lib/fastlane/actions/testflight.rb +8 -0
  152. data/lib/fastlane/actions/tryouts.rb +19 -1
  153. data/lib/fastlane/actions/twitter.rb +18 -1
  154. data/lib/fastlane/actions/typetalk.rb +16 -0
  155. data/lib/fastlane/actions/unlock_keychain.rb +27 -0
  156. data/lib/fastlane/actions/update_app_group_identifiers.rb +17 -0
  157. data/lib/fastlane/actions/update_app_identifier.rb +18 -0
  158. data/lib/fastlane/actions/update_fastlane.rb +27 -0
  159. data/lib/fastlane/actions/update_icloud_container_identifiers.rb +17 -0
  160. data/lib/fastlane/actions/update_info_plist.rb +38 -0
  161. data/lib/fastlane/actions/update_project_code_signing.rb +10 -2
  162. data/lib/fastlane/actions/update_project_provisioning.rb +17 -1
  163. data/lib/fastlane/actions/update_project_team.rb +14 -1
  164. data/lib/fastlane/actions/update_urban_airship_configuration.rb +14 -0
  165. data/lib/fastlane/actions/update_url_schemes.rb +21 -0
  166. data/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +10 -0
  167. data/lib/fastlane/actions/upload_symbols_to_sentry.rb +15 -0
  168. data/lib/fastlane/actions/verify_build.rb +14 -0
  169. data/lib/fastlane/actions/verify_pod_keys.rb +15 -1
  170. data/lib/fastlane/actions/verify_xcode.rb +11 -0
  171. data/lib/fastlane/actions/version_bump_podspec.rb +11 -0
  172. data/lib/fastlane/actions/version_get_podspec.rb +10 -0
  173. data/lib/fastlane/actions/xcode_install.rb +11 -0
  174. data/lib/fastlane/actions/xcode_select.rb +14 -0
  175. data/lib/fastlane/actions/xcode_server_get_assets.rb +13 -0
  176. data/lib/fastlane/actions/xcodebuild.rb +68 -1
  177. data/lib/fastlane/actions/xcov.rb +18 -1
  178. data/lib/fastlane/actions/xctool.rb +21 -1
  179. data/lib/fastlane/actions/xcversion.rb +17 -2
  180. data/lib/fastlane/actions/zip.rb +14 -0
  181. data/lib/fastlane/commands_generator.rb +2 -4
  182. data/lib/fastlane/documentation/markdown_docs_generator.rb +142 -0
  183. data/lib/fastlane/features.rb +4 -2
  184. data/lib/fastlane/lane_manager.rb +6 -2
  185. data/lib/fastlane/setup/crashlytics_beta.rb +6 -4
  186. data/lib/fastlane/version.rb +1 -1
  187. metadata +37 -33
@@ -38,14 +38,14 @@ module Fastlane
38
38
  ].join(' ')
39
39
 
40
40
  if Helper.test?
41
- Actions.lane_context[SharedValues::BUILD_NUMBER] = command
41
+ return Actions.lane_context[SharedValues::BUILD_NUMBER] = command
42
42
  else
43
43
  Actions.sh command
44
44
 
45
45
  # Store the new number in the shared hash
46
46
  build_number = `#{command_prefix} agvtool what-version`.split("\n").last.strip
47
47
 
48
- Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number
48
+ return Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number
49
49
  end
50
50
  rescue => ex
51
51
  UI.error('Make sure to follow the steps to setup your Xcode project: https://developer.apple.com/library/ios/qa/qa1827/_index.html')
@@ -80,9 +80,31 @@ module Fastlane
80
80
  ]
81
81
  end
82
82
 
83
+ def self.return_value
84
+ "The new build number"
85
+ end
86
+
83
87
  def self.author
84
88
  "KrauseFx"
85
89
  end
90
+
91
+ def self.example_code
92
+ [
93
+ 'increment_build_number # automatically increment by one',
94
+ 'increment_build_number(
95
+ build_number: "75" # set a specific number
96
+ )',
97
+ 'increment_build_number(
98
+ build_number: 75, # specify specific build number (optional, omitting it increments by one)
99
+ xcodeproj: "./path/to/MyApp.xcodeproj" # (optional, you must specify the path to your main Xcode project if it is not in the project root directory)
100
+ )',
101
+ 'build_number = increment_build_number'
102
+ ]
103
+ end
104
+
105
+ def self.category
106
+ :project
107
+ end
86
108
  end
87
109
  end
88
110
  end
@@ -116,9 +116,40 @@ module Fastlane
116
116
  ]
117
117
  end
118
118
 
119
+ def self.return_value
120
+ "The new version number"
121
+ end
122
+
119
123
  def self.author
120
124
  "serluca"
121
125
  end
126
+
127
+ def self.example_code
128
+ [
129
+ 'increment_version_number # Automatically increment patch version number',
130
+ 'increment_version_number(
131
+ bump_type: "patch" # Automatically increment patch version number
132
+ )',
133
+ 'increment_version_number(
134
+ bump_type: "minor" # Automatically increment minor version number
135
+ )',
136
+ 'increment_version_number(
137
+ bump_type: "major" # Automatically increment major version number
138
+ )',
139
+ 'increment_version_number(
140
+ version_number: "2.1.1" # Set a specific version number
141
+ )',
142
+ 'increment_version_number(
143
+ version_number: "2.1.1", # specify specific version number (optional, omitting it increments patch version number)
144
+ xcodeproj: "./path/to/MyApp.xcodeproj" # (optional, you must specify the path to your main Xcode project if it is not in the project root directory)
145
+ )',
146
+ 'version = increment_version_number'
147
+ ]
148
+ end
149
+
150
+ def self.category
151
+ :project
152
+ end
122
153
  end
123
154
  end
124
155
  end
@@ -68,9 +68,26 @@ module Fastlane
68
68
  ["hjanuschka"]
69
69
  end
70
70
 
71
+ def self.details
72
+ "Installs the ipa on the device, if no id is given, the first found iOS device will be used, works via USB or Wi-Fi. This requires `ios-deploy` to be installed please have a look at [ios-deploy](https://github.com/phonegap/ios-deploy). to quickly install it, use `npm -g i ios-deploy`"
73
+ end
74
+
71
75
  def self.is_supported?(platform)
72
76
  platform == :ios
73
77
  end
78
+
79
+ def self.example_code
80
+ [
81
+ 'install_on_device(
82
+ device_id: "a3be6c9ff7e5c3c6028597513243b0f933b876d4",
83
+ ipa: "./app.ipa"
84
+ )'
85
+ ]
86
+ end
87
+
88
+ def self.category
89
+ :misc
90
+ end
74
91
  end
75
92
  end
76
93
  end
@@ -80,6 +80,17 @@ module Fastlane
80
80
  def self.is_supported?(platform)
81
81
  [:ios, :mac, :tvos, :watchos, :caros].include?(platform)
82
82
  end
83
+
84
+ def self.example_code
85
+ [
86
+ 'install_xcode_plugin(url: "https://example.com/clubmate/plugin.zip")',
87
+ 'install_xcode_plugin(github: "https://github.com/contentful/ContentfulXcodePlugin")'
88
+ ]
89
+ end
90
+
91
+ def self.category
92
+ :misc
93
+ end
83
94
  end
84
95
  end
85
96
  end
@@ -73,7 +73,7 @@ module Fastlane
73
73
  end),
74
74
  FastlaneCore::ConfigItem.new(key: :ipa,
75
75
  env_name: "INSTALLR_IPA_PATH",
76
- description: "Path to your IPA file. Optional if you use the `gym` or `xcodebuild` action",
76
+ description: "Path to your IPA file. Optional if you use the _gym_ or _xcodebuild_ action",
77
77
  default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH],
78
78
  verify_block: proc do |value|
79
79
  UI.user_error!("Couldn't find build file at path '#{value}'") unless File.exist?(value)
@@ -109,6 +109,22 @@ module Fastlane
109
109
  def self.is_supported?(platform)
110
110
  [:ios].include?(platform)
111
111
  end
112
+
113
+ def self.example_code
114
+ [
115
+ 'installr(
116
+ api_token: "...",
117
+ ipa: "test.ipa",
118
+ notes: "The next great version of the app!",
119
+ notify: "dev,qa",
120
+ add: "exec,ops"
121
+ )'
122
+ ]
123
+ end
124
+
125
+ def self.category
126
+ :beta
127
+ end
112
128
  end
113
129
  end
114
130
  end
@@ -136,8 +136,9 @@ module Fastlane
136
136
 
137
137
  def self.details
138
138
  [
139
+ "**Note**: This action is deprecated, use _gym_ instead",
139
140
  "More information on the shenzhen project page: https://github.com/nomad/shenzhen",
140
- "To make code signing work, it is recommended to set a the provisioning profile in the project settings."
141
+ "To make code signing work, follow https://docs.fastlane.tools/codesigning/xcode-project/#"
141
142
  ].join(' ')
142
143
  end
143
144
 
@@ -210,6 +211,29 @@ module Fastlane
210
211
  def self.author
211
212
  "joshdholtz"
212
213
  end
214
+
215
+ def self.example_code
216
+ [
217
+ 'ipa(
218
+ workspace: "MyApp.xcworkspace",
219
+ configuration: "Debug",
220
+ scheme: "MyApp",
221
+ # (optionals)
222
+ clean: true, # This means "Do Clean". Cleans project before building (the default if not specified).
223
+ destination: "path/to/dir", # Destination directory. Defaults to current directory.
224
+ ipa: "my-app.ipa", # specify the name of the .ipa file to generate (including file extension)
225
+ xcargs: "MY_ADHOC=0", # pass additional arguments to xcodebuild when building the app.
226
+ embed: "my.mobileprovision", # Sign .ipa file with .mobileprovision
227
+ identity: "MyIdentity", # Identity to be used along with --embed
228
+ sdk: "10.0", # use SDK as the name or path of the base SDK when building the project.
229
+ archive: true # this means "Do Archive". Archive project after building (the default if not specified).
230
+ )'
231
+ ]
232
+ end
233
+
234
+ def self.category
235
+ :building
236
+ end
213
237
  end
214
238
  end
215
239
  end
@@ -25,13 +25,26 @@ module Fastlane
25
25
  end
26
26
 
27
27
  def self.authors
28
- # So no one will ever forget your contribution to fastlane :) You are awesome btw!
29
28
  ["KrauseFx"]
30
29
  end
31
30
 
32
31
  def self.is_supported?(platform)
33
32
  true
34
33
  end
34
+
35
+ def self.example_code
36
+ [
37
+ 'if is_ci?
38
+ puts "I\'m a computer"
39
+ else
40
+ say "Hi Human!"
41
+ end'
42
+ ]
43
+ end
44
+
45
+ def self.category
46
+ :misc
47
+ end
35
48
  end
36
49
  end
37
50
  end
@@ -44,6 +44,16 @@ module Fastlane
44
44
  def self.is_supported?(platform)
45
45
  [:ios, :mac].include?(platform)
46
46
  end
47
+
48
+ def self.example_code
49
+ [
50
+ 'jazzy'
51
+ ]
52
+ end
53
+
54
+ def self.category
55
+ :documentation
56
+ end
47
57
  end
48
58
  end
49
59
  end
@@ -70,9 +70,6 @@ module Fastlane
70
70
  ]
71
71
  end
72
72
 
73
- def self.output
74
- end
75
-
76
73
  def self.return_value
77
74
  end
78
75
 
@@ -83,6 +80,22 @@ module Fastlane
83
80
  def self.is_supported?(platform)
84
81
  true
85
82
  end
83
+
84
+ def self.example_code
85
+ [
86
+ 'jira(
87
+ url: "https://bugs.yourdomain.com",
88
+ username: "Your username",
89
+ password: "Your password",
90
+ ticket_id: "Ticket ID, i.e. IOS-123",
91
+ comment_text: "Text to post as a comment"
92
+ )'
93
+ ]
94
+ end
95
+
96
+ def self.category
97
+ :misc
98
+ end
86
99
  end
87
100
  end
88
101
  end
@@ -33,6 +33,14 @@ module Fastlane
33
33
  def self.step_text
34
34
  nil
35
35
  end
36
+
37
+ def self.example_code
38
+ []
39
+ end
40
+
41
+ def self.category
42
+ :misc
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -24,6 +24,29 @@ module Fastlane
24
24
  def self.is_supported?(platform)
25
25
  true
26
26
  end
27
+
28
+ def self.example_code
29
+ [
30
+ 'commit = last_git_commit
31
+ crashlytics(notes: commit[:message]) # message of commit
32
+ author = commit[:author] # author of the commit
33
+ hash = commit[:commit_hash] # long sha of commit
34
+ short_hash = commit[:abbreviated_commit_hash] # short sha of commit'
35
+ ]
36
+ end
37
+
38
+ def self.category
39
+ :source_control
40
+ end
41
+
42
+ def self.sample_return_value
43
+ {
44
+ message: "message",
45
+ author: "author",
46
+ commit_hash: "commit_hash",
47
+ abbreviated_commit_hash: "short_hash"
48
+ }
49
+ end
27
50
  end
28
51
  end
29
52
  end
@@ -28,6 +28,20 @@ module Fastlane
28
28
  def self.is_supported?(platform)
29
29
  true
30
30
  end
31
+
32
+ def self.details
33
+ "If you are using this action on a **shallow clone**, *the default with some CI systems like Bamboo*, you need to ensure that you have also have pulled all the git tags appropriately. Assuming your git repo has the correct remote set you can issue `sh('git fetch --tags')`"
34
+ end
35
+
36
+ def self.example_code
37
+ [
38
+ 'last_git_tag'
39
+ ]
40
+ end
41
+
42
+ def self.category
43
+ :source_control
44
+ end
31
45
  end
32
46
  end
33
47
  end
@@ -56,7 +56,10 @@ module Fastlane
56
56
  end
57
57
 
58
58
  def self.details
59
- "Provides a way to have increment_build_number be based on the latest build you uploaded to iTC."
59
+ [
60
+ "Provides a way to have increment_build_number be based on the latest build you uploaded to iTC.",
61
+ "Fetches most recent build number from TestFlight based on the version number. Provides a way to have `increment_build_number` be based on the latest build you uploaded to iTC."
62
+ ].join("\n")
60
63
  end
61
64
 
62
65
  def self.available_options
@@ -108,6 +111,23 @@ module Fastlane
108
111
  def self.is_supported?(platform)
109
112
  platform == :ios
110
113
  end
114
+
115
+ def self.example_code
116
+ [
117
+ 'latest_testflight_build_number(version: "1.3")',
118
+ 'increment_build_number({
119
+ build_number: latest_testflight_build_number + 1
120
+ })'
121
+ ]
122
+ end
123
+
124
+ def self.sample_return_value
125
+ 2
126
+ end
127
+
128
+ def self.category
129
+ :misc
130
+ end
111
131
  end
112
132
  end
113
133
  end
@@ -83,6 +83,20 @@ module Fastlane
83
83
  def self.exclude_dirs
84
84
  ["/Applications/*", "/Frameworks/*"]
85
85
  end
86
+
87
+ def self.example_code
88
+ [
89
+ 'lcov(
90
+ project_name: "ProjectName",
91
+ scheme: "yourScheme",
92
+ output_dir: "cov_reports" # This value is optional. Default is coverage_reports
93
+ )'
94
+ ]
95
+ end
96
+
97
+ def self.category
98
+ :testing
99
+ end
86
100
  end
87
101
  end
88
102
  end
@@ -128,6 +128,31 @@ module Fastlane
128
128
  end
129
129
  eth.render(html_template, hash)
130
130
  end
131
+
132
+ def self.example_code
133
+ [
134
+ 'mailgun(
135
+ to: "fastlane@krausefx.com",
136
+ success: true,
137
+ message: "This is the mail\'s content"
138
+ )',
139
+ 'mailgun(
140
+ postmaster: "MY_POSTMASTER",
141
+ apikey: "MY_API_KEY",
142
+ to: "DESTINATION_EMAIL",
143
+ from: "EMAIL_FROM_NAME",
144
+ success: true,
145
+ message: "Mail Body",
146
+ app_link: "http://www.myapplink.com",
147
+ ci_build_link: "http://www.mycibuildlink.com",
148
+ template_path: "HTML_TEMPLATE_PATH"
149
+ )'
150
+ ]
151
+ end
152
+
153
+ def self.category
154
+ :notifications
155
+ end
131
156
  end
132
157
  end
133
158
  end