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
@@ -66,9 +66,34 @@ module Fastlane
66
66
  "lmirosevic"
67
67
  end
68
68
 
69
+ def self.details
70
+ [
71
+ "Lets you push your local commits to a remote git repo. Useful if you make local changes such as adding a version bump commit",
72
+ "(using `commit_version_bump`) or a git tag (using 'add_git_tag') on a CI server, and you want to push those changes back to your",
73
+ "canonical/main repo."
74
+ ].join(" ")
75
+ end
76
+
69
77
  def self.is_supported?(platform)
70
78
  true
71
79
  end
80
+
81
+ def self.example_code
82
+ [
83
+ 'push_to_git_remote # simple version. pushes "master" branch to "origin" remote',
84
+ 'push_to_git_remote(
85
+ remote: "origin", # optional, default: "origin"
86
+ local_branch: "develop", # optional, aliased by "branch", default: "master"
87
+ remote_branch: "develop", # optional, default is set to local_branch
88
+ force: true, # optional, default: false
89
+ tags: false # optional, default: true
90
+ )'
91
+ ]
92
+ end
93
+
94
+ def self.category
95
+ :source_control
96
+ end
72
97
  end
73
98
  end
74
99
  end
@@ -25,6 +25,16 @@ module Fastlane
25
25
  def self.step_text
26
26
  nil
27
27
  end
28
+
29
+ def self.example_code
30
+ [
31
+ 'puts "Hi there"'
32
+ ]
33
+ end
34
+
35
+ def self.category
36
+ :misc
37
+ end
28
38
  end
29
39
  end
30
40
  end
@@ -31,7 +31,10 @@ module Fastlane
31
31
  [
32
32
  "This can be used for only specifying a version string in your podspec",
33
33
  "- and during your release process you'd read it from the podspec by running",
34
- "`version = read_podspec['version']` at the beginning of your lane"
34
+ "`version = read_podspec['version']` at the beginning of your lane",
35
+ "Loads the specified (or the first found) podspec in the folder as JSON, so that you can inspect its `version`, `files` etc. ",
36
+ "This can be useful when basing your release process on the version string only stored in one place - in the podspec. As one of ",
37
+ "the first steps you'd read the podspec and its version and the rest of the workflow can use that version string (when e.g. creating a new git tag or a GitHub Release)."
35
38
  ].join("\n")
36
39
  end
37
40
 
@@ -60,6 +63,25 @@ module Fastlane
60
63
  def self.is_supported?(platform)
61
64
  [:ios, :mac].include? platform
62
65
  end
66
+
67
+ def self.example_code
68
+ [
69
+ 'spec = read_podspec
70
+ version = spec["version"]
71
+ puts "Using Version #{version}"',
72
+ 'spec = read_podspec(path: "./XcodeServerSDK.podspec")'
73
+ ]
74
+ end
75
+
76
+ def self.sample_return_value
77
+ {
78
+ 'version' => 1.0
79
+ }
80
+ end
81
+
82
+ def self.category
83
+ :misc
84
+ end
63
85
  end
64
86
  end
65
87
  end
@@ -31,6 +31,16 @@ module Fastlane
31
31
  def self.is_supported?(platform)
32
32
  [:ios, :mac].include? platform
33
33
  end
34
+
35
+ def self.example_code
36
+ [
37
+ 'recreate_schemes(project: "./path/to/MyApp.xcodeproj")'
38
+ ]
39
+ end
40
+
41
+ def self.category
42
+ :project
43
+ end
34
44
  end
35
45
  end
36
46
  end
@@ -83,9 +83,40 @@ module Fastlane
83
83
  ]
84
84
  end
85
85
 
86
+ def self.details
87
+ [
88
+ "This will register iOS devices with the Developer Portal so that you can include them in your provisioning profiles.",
89
+ "This is an optimistic action, in that it will only ever add new devices to the member center, and never remove devices. If a device which has already been registered within the member center is not passed to this action, it will be left alone in the member center and continue to work.",
90
+ "The action will connect to the Apple Developer Portal using the username you specified in your `Appfile` with `apple_id`, but you can override it using the `username` option, or by setting the env variable `ENV['DELIVER_USER']`."
91
+ ].join("\n")
92
+ end
93
+
86
94
  def self.author
87
95
  "lmirosevic"
88
96
  end
97
+
98
+ def self.example_code
99
+ [
100
+ 'register_devices(
101
+ devices: {
102
+ "Luka iPhone 6" => "1234567890123456789012345678901234567890",
103
+ "Felix iPad Air 2" => "abcdefghijklmnopqrstvuwxyzabcdefghijklmn"
104
+ }
105
+ ) # Simply provide a list of devices as a Hash',
106
+ 'register_devices(
107
+ devices_file: "./devices.txt"
108
+ ) # Alternatively provide a standard UDID export .txt file, see the Apple Sample (https://devimages.apple.com.edgekey.net/downloads/devices/Multiple-Upload-Samples.zip)',
109
+ 'register_devices(
110
+ devices_file: "./devices.txt", # You must pass in either `devices_file` or `devices`.
111
+ team_id: "XXXXXXXXXX", # Optional, if you"re a member of multiple teams, then you need to pass the team ID here.
112
+ username: "luka@goonbee.com" # Optional, lets you override the Apple Member Center username.
113
+ )'
114
+ ]
115
+ end
116
+
117
+ def self.category
118
+ :code_signing
119
+ end
89
120
  end
90
121
  end
91
122
  end
@@ -53,6 +53,24 @@ module Fastlane
53
53
  ].join(' ')
54
54
  end
55
55
 
56
+ def self.example_code
57
+ [
58
+ 'reset_git_repo',
59
+ 'reset_git_repo(force: true) # If you don\'t care about warnings and are absolutely sure that you want to discard all changes. This will reset the repo even if you have valuable uncommitted changes, so use with care!',
60
+ 'reset_git_repo(skip_clean: true) # If you want "git clean" to be skipped, thus NOT deleting untracked files like ".env". Optional, defaults to false.',
61
+ 'reset_git_repo(
62
+ force: true,
63
+ files: [
64
+ "./file.txt"
65
+ ]
66
+ )'
67
+ ]
68
+ end
69
+
70
+ def self.category
71
+ :source_control
72
+ end
73
+
56
74
  def self.available_options
57
75
  [
58
76
  FastlaneCore::ConfigItem.new(key: :files,
@@ -29,6 +29,16 @@ module Fastlane
29
29
  def self.is_supported?(platform)
30
30
  platform == :ios
31
31
  end
32
+
33
+ def self.example_code
34
+ [
35
+ 'reset_simulators'
36
+ ]
37
+ end
38
+
39
+ def self.category
40
+ :misc
41
+ end
32
42
  end
33
43
  end
34
44
  end
@@ -31,11 +31,33 @@ module Fastlane
31
31
  ].join("\n")
32
32
  end
33
33
 
34
+ def self.example_code
35
+ [
36
+ 'resign(
37
+ ipa: "path/to/ipa", # can omit if using the `ipa` action
38
+ signing_identity: "iPhone Distribution: Luka Mirosevic (0123456789)",
39
+ provisioning_profile: "path/to/profile", # can omit if using the _sigh_ action
40
+ )',
41
+ 'resign(
42
+ ipa: "path/to/ipa", # can omit if using the `ipa` action
43
+ signing_identity: "iPhone Distribution: Luka Mirosevic (0123456789)",
44
+ provisioning_profile: {
45
+ "com.example.awesome-app" => "path/to/profile",
46
+ "com.example.awesome-app.app-extension" => "path/to/app-extension/profile"
47
+ }
48
+ )'
49
+ ]
50
+ end
51
+
52
+ def self.category
53
+ :code_signing
54
+ end
55
+
34
56
  def self.available_options
35
57
  [
36
58
  FastlaneCore::ConfigItem.new(key: :ipa,
37
59
  env_name: "FL_RESIGN_IPA",
38
- description: "Path to the ipa file to resign. Optional if you use the `gym` or `xcodebuild` action",
60
+ description: "Path to the ipa file to resign. Optional if you use the _gym_ or _xcodebuild_ action",
39
61
  default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH],
40
62
  verify_block: proc do |value|
41
63
  UI.user_error!("Couldn't find ipa file at path '#{value}'") unless File.exist?(value)
@@ -51,7 +73,7 @@ module Fastlane
51
73
  optional: true),
52
74
  FastlaneCore::ConfigItem.new(key: :provisioning_profile,
53
75
  env_name: "FL_RESIGN_PROVISIONING_PROFILE",
54
- description: "Path to your provisioning_profile. Optional if you use `sigh`",
76
+ description: "Path to your provisioning_profile. Optional if you use _sigh_",
55
77
  default_value: Actions.lane_context[SharedValues::SIGH_PROFILE_PATH],
56
78
  is_string: false,
57
79
  verify_block: proc do |value|
@@ -29,6 +29,16 @@ module Fastlane
29
29
  optional: false)
30
30
  ]
31
31
  end
32
+
33
+ def self.example_code
34
+ [
35
+ 'restore_file(path: "/path/to/file")'
36
+ ]
37
+ end
38
+
39
+ def self.category
40
+ :misc
41
+ end
32
42
  end
33
43
  end
34
44
  end
@@ -48,6 +48,10 @@ module Fastlane
48
48
  "Outputs ascii-art for a rocket 🚀"
49
49
  end
50
50
 
51
+ def self.details
52
+ "Print an ascii Rocket :rocket:. Useful after using _crashlytics_ or _pilot_ to indicate that your new build has been shipped to outer-space."
53
+ end
54
+
51
55
  def self.available_options
52
56
  [
53
57
  ]
@@ -60,6 +64,16 @@ module Fastlane
60
64
  def self.is_supported?(platform)
61
65
  true
62
66
  end
67
+
68
+ def self.example_code
69
+ [
70
+ 'rocket'
71
+ ]
72
+ end
73
+
74
+ def self.category
75
+ :misc
76
+ end
63
77
  end
64
78
  end
65
79
  end
@@ -56,6 +56,19 @@ module Fastlane
56
56
  def self.is_supported?(platform)
57
57
  true
58
58
  end
59
+
60
+ def self.example_code
61
+ [
62
+ 'rsync(
63
+ source: "root@host:/tmp/1.txt",
64
+ destination: "/tmp/local_file.txt"
65
+ )'
66
+ ]
67
+ end
68
+
69
+ def self.category
70
+ :misc
71
+ end
59
72
  end
60
73
  end
61
74
  end
@@ -307,6 +307,14 @@ module Fastlane
307
307
  "Generates a plist file and uploads all to AWS S3"
308
308
  end
309
309
 
310
+ def self.details
311
+ [
312
+ "Upload a new build to Amazon S3 to distribute the build to beta testers. ",
313
+ "Works for both Ad Hoc and Enterprise signed applications. This step will generate the necessary HTML, plist, and version files for you.",
314
+ "It is recommended to **not** store the AWS access keys in the `Fastfile`. The uploaded `version.json` file provides an easy way for apps to poll if a new update is available."
315
+ ].join(" ")
316
+ end
317
+
310
318
  def self.available_options
311
319
  [
312
320
  FastlaneCore::ConfigItem.new(key: :ipa,
@@ -403,6 +411,28 @@ module Fastlane
403
411
  def self.is_supported?(platform)
404
412
  platform == :ios
405
413
  end
414
+
415
+ def self.example_code
416
+ [
417
+ 's3',
418
+ 's3(
419
+ # All of these are used to make Shenzhen\'s `ipa distribute:s3` command
420
+ access_key: ENV["S3_ACCESS_KEY"], # Required from user.
421
+ secret_access_key: ENV["S3_SECRET_ACCESS_KEY"], # Required from user.
422
+ bucket: ENV["S3_BUCKET"], # Required from user.
423
+ ipa: "AppName.ipa", # Optional is you use `ipa` to build
424
+ dsym: "AppName.app.dSYM.zip", # Optional is you use `ipa` to build
425
+ path: "v{CFBundleShortVersionString}_b{CFBundleVersion}/", # This is actually the default.
426
+ upload_metadata: true, # Upload version.json, plist and HTML. Set to false to skip uploading of these files.
427
+ version_file_name: "app_version.json", # Name of the file to upload to S3. Defaults to "version.json"
428
+ version_template_path: "path/to/erb" # Path to an ERB to configure the structure of the version JSON file
429
+ )'
430
+ ]
431
+ end
432
+
433
+ def self.category
434
+ :beta
435
+ end
406
436
  end
407
437
  end
408
438
  end
@@ -21,6 +21,16 @@ module Fastlane
21
21
  def self.author
22
22
  "KrauseFx"
23
23
  end
24
+
25
+ def self.example_code
26
+ [
27
+ 'say "I can speak"'
28
+ ]
29
+ end
30
+
31
+ def self.category
32
+ :misc
33
+ end
24
34
  end
25
35
  end
26
36
  end
@@ -41,7 +41,7 @@ module Fastlane
41
41
  end
42
42
 
43
43
  def self.description
44
- "Easily run tests of your iOS app using `scan`"
44
+ "Easily run tests of your iOS app using _scan_"
45
45
  end
46
46
 
47
47
  def self.details
@@ -72,6 +72,21 @@ module Fastlane
72
72
  def self.test_summary_filenames(derived_data_path)
73
73
  Dir["#{derived_data_path}/**/Logs/Test/*TestSummaries.plist"]
74
74
  end
75
+
76
+ def self.example_code
77
+ [
78
+ 'scan',
79
+ 'scan(
80
+ workspace: "App.xcworkspace",
81
+ scheme: "MyTests",
82
+ clean: false
83
+ )'
84
+ ]
85
+ end
86
+
87
+ def self.category
88
+ :testing
89
+ end
75
90
  end
76
91
  end
77
92
  end
@@ -83,6 +83,31 @@ module Fastlane
83
83
  def self.is_supported?(platform)
84
84
  true
85
85
  end
86
+
87
+ def self.example_code
88
+ [
89
+ 'scp(
90
+ host: "dev.januschka.com",
91
+ username: "root",
92
+ upload: {
93
+ src: "/root/dir1",
94
+ dst: "/tmp/new_dir"
95
+ }
96
+ )',
97
+ 'scp(
98
+ host: "dev.januschka.com",
99
+ username: "root",
100
+ download: {
101
+ src: "/root/dir1",
102
+ dst: "/tmp/new_dir"
103
+ }
104
+ )'
105
+ ]
106
+ end
107
+
108
+ def self.category
109
+ :misc
110
+ end
86
111
  end
87
112
  end
88
113
  end
@@ -41,6 +41,22 @@ module Fastlane
41
41
  def self.is_supported?(platform)
42
42
  platform == :android
43
43
  end
44
+
45
+ def self.example_code
46
+ [
47
+ 'screengrab',
48
+ 'screengrab(
49
+ locales: ["en-US", "fr-FR", "ja-JP"],
50
+ clear_previous_screenshots: true,
51
+ app_apk_path: "build/outputs/apk/example-debug.apk",
52
+ tests_apk_path: "build/outputs/apk/example-debug-androidTest-unaligned.apk"
53
+ )'
54
+ ]
55
+ end
56
+
57
+ def self.category
58
+ :screenshots
59
+ end
44
60
  end
45
61
  end
46
62
  end