fastlane 2.241.1 → 2.242.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +39 -39
- data/cert/lib/cert/runner.rb +1 -1
- data/credentials_manager/README.md +3 -3
- data/credentials_manager/lib/credentials_manager/account_manager.rb +13 -3
- data/deliver/lib/deliver/runner.rb +5 -0
- data/fastlane/lib/assets/certificates/AppleIncRootCertificate.cer +0 -0
- data/fastlane/lib/assets/certificates/AppleRootCA-G3.cer +0 -0
- data/fastlane/lib/fastlane/action.rb +8 -6
- data/fastlane/lib/fastlane/actions/app_store_connect_api_key.rb +1 -1
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +0 -3
- data/fastlane/lib/fastlane/actions/clipboard.rb +1 -1
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +0 -1
- data/fastlane/lib/fastlane/actions/create_keychain.rb +20 -29
- data/fastlane/lib/fastlane/actions/delete_keychain.rb +5 -3
- data/fastlane/lib/fastlane/actions/docs/build_app.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/create_app_online.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +4 -4
- data/fastlane/lib/fastlane/actions/docs/get_provisioning_profile.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +1 -1
- data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +12 -0
- data/fastlane/lib/fastlane/actions/download_app_privacy_details_from_app_store.rb +5 -4
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +3 -1
- data/fastlane/lib/fastlane/actions/get_managed_play_store_publishing_rights.rb +1 -0
- data/fastlane/lib/fastlane/actions/git_pull.rb +1 -1
- data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +0 -1
- data/fastlane/lib/fastlane/actions/import_certificate.rb +18 -6
- data/fastlane/lib/fastlane/actions/import_from_gem.rb +70 -0
- data/fastlane/lib/fastlane/actions/jazzy.rb +1 -1
- data/fastlane/lib/fastlane/actions/lcov.rb +1 -1
- data/fastlane/lib/fastlane/actions/mailgun.rb +2 -2
- data/fastlane/lib/fastlane/actions/make_changelog_from_jenkins.rb +1 -1
- data/fastlane/lib/fastlane/actions/notarize.rb +55 -7
- data/fastlane/lib/fastlane/actions/prompt.rb +1 -1
- data/fastlane/lib/fastlane/actions/push_to_git_remote.rb +2 -2
- data/fastlane/lib/fastlane/actions/sh.rb +20 -2
- data/fastlane/lib/fastlane/actions/sourcedocs.rb +2 -2
- data/fastlane/lib/fastlane/actions/swiftlint.rb +5 -2
- data/fastlane/lib/fastlane/actions/unlock_keychain.rb +17 -29
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +10 -3
- data/fastlane/lib/fastlane/actions/update_project_code_signing.rb +2 -1
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +21 -18
- data/fastlane/lib/fastlane/actions/upload_app_privacy_details_to_app_store.rb +1 -1
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +8 -2
- data/fastlane/lib/fastlane/actions/verify_build.rb +2 -1
- data/fastlane/lib/fastlane/actions/verify_pod_keys.rb +2 -1
- data/fastlane/lib/fastlane/actions/xcodebuild.rb +1 -1
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +7 -0
- data/fastlane/lib/fastlane/commands_generator.rb +7 -1
- data/fastlane/lib/fastlane/environment_printer.rb +14 -14
- data/fastlane/lib/fastlane/fast_file.rb +35 -4
- data/fastlane/lib/fastlane/helper/sh_helper.rb +27 -45
- data/fastlane/lib/fastlane/lane_list.rb +1 -1
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +2 -2
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +0 -2
- data/fastlane/lib/fastlane/runner.rb +4 -6
- data/fastlane/lib/fastlane/server/socket_server.rb +57 -7
- data/fastlane/lib/fastlane/server/socket_server_action_command_executor.rb +4 -4
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +3 -3
- data/fastlane/lib/fastlane/swift_lane_manager.rb +32 -11
- data/fastlane/lib/fastlane/version.rb +2 -1
- data/fastlane/swift/ArgumentProcessor.swift +10 -2
- data/fastlane/swift/Deliverfile.swift +1 -1
- data/fastlane/swift/DeliverfileProtocol.swift +1 -1
- data/fastlane/swift/Fastlane.swift +46 -152
- data/fastlane/swift/Gymfile.swift +1 -1
- data/fastlane/swift/GymfileProtocol.swift +1 -1
- data/fastlane/swift/MainProcess.swift +27 -0
- data/fastlane/swift/Matchfile.swift +1 -1
- data/fastlane/swift/MatchfileProtocol.swift +1 -1
- data/fastlane/swift/Precheckfile.swift +1 -1
- data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
- data/fastlane/swift/RubyCommand.swift +1 -9
- data/fastlane/swift/RubyCommandable.swift +3 -2
- data/fastlane/swift/Runner.swift +1 -1
- data/fastlane/swift/Scanfile.swift +1 -1
- data/fastlane/swift/ScanfileProtocol.swift +1 -1
- data/fastlane/swift/Screengrabfile.swift +1 -1
- data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
- data/fastlane/swift/Snapshotfile.swift +1 -1
- data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
- data/fastlane/swift/main.swift +1 -1
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +40 -76
- data/fastlane_core/lib/fastlane_core/command_executor.rb +128 -7
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +1 -1
- data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +1 -1
- data/fastlane_core/lib/fastlane_core/device_manager.rb +14 -5
- data/fastlane_core/lib/fastlane_core/fastlane_pty.rb +25 -10
- data/fastlane_core/lib/fastlane_core/helper.rb +26 -2
- data/fastlane_core/lib/fastlane_core/ios_app_identifier_guesser.rb +1 -1
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +41 -22
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +48 -71
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +5 -1
- data/fastlane_core/lib/fastlane_core/print_table.rb +1 -1
- data/fastlane_core/lib/fastlane_core/queue_worker.rb +0 -2
- data/fastlane_core/lib/fastlane_core/stored_passwords.rb +29 -0
- data/fastlane_core/lib/fastlane_core/string_filters.rb +1 -2
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +8 -4
- data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +2 -2
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +1 -1
- data/frameit/lib/frameit/device_types.rb +11 -4
- data/frameit/lib/frameit/editor.rb +31 -12
- data/frameit/lib/frameit/frame_downloader.rb +4 -1
- data/gym/lib/gym/detect_values.rb +10 -10
- data/gym/lib/gym/options.rb +1 -7
- data/gym/lib/gym/runner.rb +6 -1
- data/match/lib/match/encryption/encryption.rb +6 -1
- data/match/lib/match/encryption/openssl.rb +8 -3
- data/match/lib/match/portal_fetcher.rb +12 -6
- data/match/lib/match/runner.rb +4 -1
- data/match/lib/match/storage/gitlab/secure_file.rb +2 -1
- data/match/lib/match/storage/google_cloud_storage.rb +1 -1
- data/match/lib/match/storage/interface.rb +10 -0
- data/match/lib/match/storage/s3_storage.rb +1 -1
- data/pem/lib/pem/manager.rb +3 -3
- data/precheck/lib/precheck/runner.rb +4 -2
- data/scan/lib/scan/detect_values.rb +0 -1
- data/scan/lib/scan/runner.rb +1 -0
- data/sigh/lib/assets/resign.sh +10 -3
- data/sigh/lib/sigh/manager.rb +5 -1
- data/sigh/lib/sigh/resign.rb +5 -21
- data/snapshot/lib/snapshot/reset_simulators.rb +5 -2
- data/snapshot/lib/snapshot/runner.rb +0 -1
- data/spaceship/lib/spaceship/base.rb +1 -1
- data/spaceship/lib/spaceship/client.rb +13 -4
- data/spaceship/lib/spaceship/connect_api/api_client.rb +12 -14
- data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/models/user.rb +7 -3
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +9 -11
- data/spaceship/lib/spaceship/connect_api/token.rb +21 -1
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +3 -1
- data/spaceship/lib/spaceship/helper/plist_middleware.rb +2 -2
- data/spaceship/lib/spaceship/portal/portal_client.rb +8 -8
- data/spaceship/lib/spaceship/test_flight/client.rb +1 -5
- data/supply/lib/supply/client.rb +1 -1
- data/supply/lib/supply/options.rb +6 -0
- data/supply/lib/supply/uploader.rb +28 -2
- metadata +28 -25
- data/fastlane/lib/fastlane/actions/hockey.rb +0 -400
- data/fastlane/lib/fastlane/actions/typetalk.rb +0 -93
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
require_relative 'lane_manager_base.rb'
|
|
2
2
|
require_relative 'swift_runner_upgrader.rb'
|
|
3
|
+
require 'securerandom'
|
|
4
|
+
require 'tmpdir'
|
|
3
5
|
|
|
4
6
|
module Fastlane
|
|
5
7
|
class SwiftLaneManager < LaneManagerBase
|
|
6
8
|
# The runner protocol version this fastlane ships, see main.swift
|
|
7
|
-
RUNNER_PROTOCOL_VERSION =
|
|
9
|
+
RUNNER_PROTOCOL_VERSION = 2
|
|
8
10
|
RUNNER_PROTOCOL_VERSION_REGEX = /FastlaneRunnerProtocolVersion \[(\d+)\]/
|
|
9
11
|
|
|
10
12
|
# @param lane_name The name of the lane to execute
|
|
@@ -31,15 +33,25 @@ module Fastlane
|
|
|
31
33
|
|
|
32
34
|
self.ensure_runner_built!
|
|
33
35
|
self.warn_if_runner_outdated
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
# A secret only this user can read, which the runner sends back with every command
|
|
37
|
+
token_dir = Dir.mktmpdir('fastlane-runner')
|
|
38
|
+
token_file = File.join(token_dir, 'token')
|
|
39
|
+
token = SecureRandom.hex(32)
|
|
40
|
+
File.write(token_file, token, perm: 0o600)
|
|
41
|
+
token = nil unless self.runner_sends_token?
|
|
42
|
+
# Port 0 lets the server pick a free port, which no other process can take beforehand
|
|
43
|
+
socket_thread = self.start_socket_thread(port: swift_server_port || 0, token: token)
|
|
44
|
+
sleep(0.250) while socket_thread[:ready].nil? && socket_thread.alive?
|
|
45
|
+
# The thread ended without listening: join raises its error rather than waiting forever
|
|
46
|
+
socket_thread.join unless socket_thread[:ready]
|
|
37
47
|
# wait on socket_thread to be in ready state, then start the runner thread
|
|
38
|
-
self.cruise_swift_lane_in_thread(lane, parameters,
|
|
48
|
+
self.cruise_swift_lane_in_thread(lane, parameters, socket_thread[:port], token_file)
|
|
39
49
|
|
|
40
50
|
socket_thread.value
|
|
41
51
|
rescue Exception => ex # rubocop:disable Lint/RescueException
|
|
42
52
|
e = ex
|
|
53
|
+
ensure
|
|
54
|
+
FileUtils.remove_entry(token_dir) if token_dir
|
|
43
55
|
end
|
|
44
56
|
# If we have a thread exception, drop that in the exception
|
|
45
57
|
# won't ever have a situation where e is non-nil, and socket_thread[:exception] is also non-nil
|
|
@@ -84,14 +96,14 @@ module Fastlane
|
|
|
84
96
|
end
|
|
85
97
|
end
|
|
86
98
|
|
|
87
|
-
def self.cruise_swift_lane_in_thread(lane, parameters = nil, swift_server_port)
|
|
99
|
+
def self.cruise_swift_lane_in_thread(lane, parameters = nil, swift_server_port, token_file)
|
|
88
100
|
if parameters.nil?
|
|
89
101
|
parameters = {}
|
|
90
102
|
end
|
|
91
103
|
|
|
92
104
|
parameter_string = ""
|
|
93
105
|
parameters.each do |key, value|
|
|
94
|
-
parameter_string += " #{key} #{value}"
|
|
106
|
+
parameter_string += " #{key.to_s.shellescape} #{value.to_s.shellescape}"
|
|
95
107
|
end
|
|
96
108
|
|
|
97
109
|
if FastlaneCore::Globals.verbose?
|
|
@@ -99,13 +111,16 @@ module Fastlane
|
|
|
99
111
|
end
|
|
100
112
|
|
|
101
113
|
parameter_string += " swiftServerPort #{swift_server_port}"
|
|
114
|
+
parameter_string += " swiftServerTokenFile #{token_file.shellescape}"
|
|
115
|
+
|
|
116
|
+
command = "#{FastlaneCore::FastlaneFolder.swift_runner_path.shellescape} lane #{lane.to_s.shellescape}#{parameter_string}"
|
|
102
117
|
|
|
103
118
|
return Thread.new do
|
|
104
119
|
if FastlaneCore::Globals.verbose?
|
|
105
|
-
return_value = Actions.sh(
|
|
120
|
+
return_value = Actions.sh(command)
|
|
106
121
|
UI.message("runner output: ".yellow + return_value)
|
|
107
122
|
else
|
|
108
|
-
Actions.sh(
|
|
123
|
+
Actions.sh("#{command} > /dev/null")
|
|
109
124
|
end
|
|
110
125
|
end
|
|
111
126
|
end
|
|
@@ -223,13 +238,13 @@ module Fastlane
|
|
|
223
238
|
return project_modified
|
|
224
239
|
end
|
|
225
240
|
|
|
226
|
-
def self.start_socket_thread(port: nil)
|
|
241
|
+
def self.start_socket_thread(port: nil, token: nil)
|
|
227
242
|
require 'fastlane/server/socket_server'
|
|
228
243
|
require 'fastlane/server/socket_server_action_command_executor'
|
|
229
244
|
|
|
230
245
|
return Thread.new do
|
|
231
246
|
command_executor = SocketServerActionCommandExecutor.new
|
|
232
|
-
server = Fastlane::SocketServer.new(command_executor: command_executor, port: port)
|
|
247
|
+
server = Fastlane::SocketServer.new(command_executor: command_executor, port: port, token: token)
|
|
233
248
|
server.start
|
|
234
249
|
end
|
|
235
250
|
end
|
|
@@ -245,6 +260,12 @@ module Fastlane
|
|
|
245
260
|
UI.important("Your FastlaneRunner is outdated for this version of fastlane. Run a lane outside CI, without `disable_runner_upgrades`, to update it, then commit the changes.")
|
|
246
261
|
end
|
|
247
262
|
|
|
263
|
+
# Runners from protocol version 2 send the run's token with every command; older ones get warn_if_runner_outdated.
|
|
264
|
+
# Version 1 was released before the token existed.
|
|
265
|
+
def self.runner_sends_token?
|
|
266
|
+
runner_protocol_version >= 2
|
|
267
|
+
end
|
|
268
|
+
|
|
248
269
|
def self.ensure_runner_built!
|
|
249
270
|
UI.verbose("Checking for new user-provided tool configuration files")
|
|
250
271
|
# if self.link_user_configs_to_project returns true, that means we need to rebuild the runner
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
module Fastlane
|
|
2
|
-
VERSION = '2.
|
|
2
|
+
VERSION = '2.242.0'.freeze
|
|
3
3
|
SUMMARY = "The easiest way to build and release mobile apps.".freeze
|
|
4
4
|
DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
|
|
5
5
|
MINIMUM_XCODE_RELEASE = "7.0".freeze
|
|
6
|
+
SUGGESTED_MINIMUM_XCODE_RELEASE = "16.0".freeze
|
|
6
7
|
RUBOCOP_REQUIREMENT = '1.91.0'.freeze
|
|
7
8
|
MINIMUM_RUBY = '3.2.0'.freeze
|
|
8
9
|
SUGGESTED_MINIMUM_RUBY = '3.3.0'.freeze
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
import Foundation
|
|
12
12
|
|
|
13
13
|
struct ArgumentProcessor {
|
|
14
|
+
/// The secret fastlane wrote to a file only this user can read: sent with every command so that
|
|
15
|
+
/// fastlane can tell this runner from another process that connected to its port
|
|
16
|
+
static var serverToken: String?
|
|
17
|
+
|
|
14
18
|
let args: [RunnerArgument]
|
|
15
19
|
let currentLane: String
|
|
16
20
|
let commandTimeout: Int
|
|
@@ -33,6 +37,10 @@ struct ArgumentProcessor {
|
|
|
33
37
|
|
|
34
38
|
port = UInt32(fastlaneArgsMinusLanes.first(where: { $0.name == "swiftServerPort" })?.value ?? "") ?? 2000
|
|
35
39
|
|
|
40
|
+
if let tokenFile = fastlaneArgsMinusLanes.first(where: { $0.name == "swiftServerTokenFile" })?.value {
|
|
41
|
+
ArgumentProcessor.serverToken = (try? String(contentsOfFile: tokenFile, encoding: .utf8))?.trimmingCharacters(in: .whitespacesAndNewlines)
|
|
42
|
+
}
|
|
43
|
+
|
|
36
44
|
// Configure logMode since we might need to use it before we finish parsing
|
|
37
45
|
if let logModeArg = potentialLogMode.first {
|
|
38
46
|
let logModeString = logModeArg.value
|
|
@@ -74,7 +82,7 @@ struct ArgumentProcessor {
|
|
|
74
82
|
func laneParameters() -> [String: String] {
|
|
75
83
|
let laneParametersArgs = args.filter { arg in
|
|
76
84
|
let lowercasedName = arg.name.lowercased()
|
|
77
|
-
return lowercasedName != "timeoutseconds" && lowercasedName != "lane" && lowercasedName != "logmode"
|
|
85
|
+
return lowercasedName != "timeoutseconds" && lowercasedName != "lane" && lowercasedName != "logmode" && lowercasedName != "swiftservertokenfile"
|
|
78
86
|
}
|
|
79
87
|
var laneParameters = [String: String]()
|
|
80
88
|
for arg in laneParametersArgs {
|
|
@@ -86,4 +94,4 @@ struct ArgumentProcessor {
|
|
|
86
94
|
|
|
87
95
|
// Please don't remove the lines below
|
|
88
96
|
// They are used to detect outdated files
|
|
89
|
-
// FastlaneRunnerAPIVersion [0.9.
|
|
97
|
+
// FastlaneRunnerAPIVersion [0.9.3]
|
|
@@ -4252,7 +4252,7 @@ public func download(url: String) {
|
|
|
4252
4252
|
- appIdentifier: The bundle identifier of your app
|
|
4253
4253
|
- teamId: The ID of your App Store Connect team if you're in multiple teams
|
|
4254
4254
|
- teamName: The name of your App Store Connect team if you're in multiple teams
|
|
4255
|
-
- outputJsonPath: Path to the app usage data JSON file
|
|
4255
|
+
- outputJsonPath: Path to write the downloaded app usage data JSON file to
|
|
4256
4256
|
|
|
4257
4257
|
Download App Privacy Details from an app in App Store Connect. For more detail information, view https://docs.fastlane.tools/uploading-app-privacy-details
|
|
4258
4258
|
*/
|
|
@@ -6172,133 +6172,6 @@ public func hgPush(force: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
|
6172
6172
|
_ = runner.executeCommand(command)
|
|
6173
6173
|
}
|
|
6174
6174
|
|
|
6175
|
-
/**
|
|
6176
|
-
Refer to [App Center](https://github.com/Microsoft/fastlane-plugin-appcenter/)
|
|
6177
|
-
|
|
6178
|
-
- parameters:
|
|
6179
|
-
- apk: Path to your APK file
|
|
6180
|
-
- apiToken: API Token for Hockey Access
|
|
6181
|
-
- ipa: Path to your IPA file. Optional if you use the _gym_ or _xcodebuild_ action. For Mac zip the .app. For Android provide path to .apk file. In addition you could use this to upload .msi, .zip, .pkg, etc if you use the 'create_update' mechanism
|
|
6182
|
-
- dsym: Path to your symbols file. For iOS and Mac provide path to app.dSYM.zip. For Android provide path to mappings.txt file
|
|
6183
|
-
- createUpdate: Set true if you want to create then update your app as opposed to just upload it. You will need the 'public_identifier', 'bundle_version' and 'bundle_short_version'
|
|
6184
|
-
- notes: Beta Notes
|
|
6185
|
-
- notify: Notify testers? "1" for yes
|
|
6186
|
-
- status: Download status: "1" = No user can download; "2" = Available for download (only possible with full-access token)
|
|
6187
|
-
- createStatus: Download status for initial version creation when create_update is true: "1" = No user can download; "2" = Available for download (only possible with full-access token)
|
|
6188
|
-
- notesType: Notes type for your :notes, "0" = Textile, "1" = Markdown (default)
|
|
6189
|
-
- releaseType: Release type of the app: "0" = Beta (default), "1" = Store, "2" = Alpha, "3" = Enterprise
|
|
6190
|
-
- mandatory: Set to "1" to make this update mandatory
|
|
6191
|
-
- teams: Comma separated list of team ID numbers to which this build will be restricted
|
|
6192
|
-
- users: Comma separated list of user ID numbers to which this build will be restricted
|
|
6193
|
-
- tags: Comma separated list of tags which will receive access to the build
|
|
6194
|
-
- bundleShortVersion: The bundle_short_version of your application, required when using `create_update`
|
|
6195
|
-
- bundleVersion: The bundle_version of your application, required when using `create_update`
|
|
6196
|
-
- publicIdentifier: App id of the app you are targeting, usually you won't need this value. Required, if `upload_dsym_only` set to `true`
|
|
6197
|
-
- commitSha: The Git commit SHA for this build
|
|
6198
|
-
- repositoryUrl: The URL of your source repository
|
|
6199
|
-
- buildServerUrl: The URL of the build job on your build server
|
|
6200
|
-
- uploadDsymOnly: Flag to upload only the dSYM file to hockey app
|
|
6201
|
-
- ownerId: ID for the owner of the app
|
|
6202
|
-
- strategy: Strategy: 'add' = to add the build as a new build even if it has the same build number (default); 'replace' = to replace a build with the same build number
|
|
6203
|
-
- timeout: Request timeout in seconds
|
|
6204
|
-
- bypassCdn: Flag to bypass Hockey CDN when it uploads successfully but reports error
|
|
6205
|
-
- dsaSignature: DSA signature for sparkle updates for macOS
|
|
6206
|
-
|
|
6207
|
-
HockeyApp will be no longer supported and will be transitioned into App Center on November 16, 2019.
|
|
6208
|
-
Please migrate over to [App Center](https://github.com/Microsoft/fastlane-plugin-appcenter/)
|
|
6209
|
-
|
|
6210
|
-
Symbols will also be uploaded automatically if a `app.dSYM.zip` file is found next to `app.ipa`. In case it is located in a different place you can specify the path explicitly in the `:dsym` parameter.
|
|
6211
|
-
More information about the available options can be found in the [HockeyApp Docs](http://support.hockeyapp.net/kb/api/api-versions#upload-version).
|
|
6212
|
-
*/
|
|
6213
|
-
public func hockey(apk: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6214
|
-
apiToken: String,
|
|
6215
|
-
ipa: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6216
|
-
dsym: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6217
|
-
createUpdate: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
6218
|
-
notes: String = "No changelog given",
|
|
6219
|
-
notify: String = "1",
|
|
6220
|
-
status: String = "2",
|
|
6221
|
-
createStatus: String = "2",
|
|
6222
|
-
notesType: String = "1",
|
|
6223
|
-
releaseType: String = "0",
|
|
6224
|
-
mandatory: String = "0",
|
|
6225
|
-
teams: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6226
|
-
users: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6227
|
-
tags: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6228
|
-
bundleShortVersion: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6229
|
-
bundleVersion: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6230
|
-
publicIdentifier: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6231
|
-
commitSha: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6232
|
-
repositoryUrl: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6233
|
-
buildServerUrl: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6234
|
-
uploadDsymOnly: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
6235
|
-
ownerId: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6236
|
-
strategy: String = "add",
|
|
6237
|
-
timeout: OptionalConfigValue<Int?> = .fastlaneDefault(nil),
|
|
6238
|
-
bypassCdn: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
6239
|
-
dsaSignature: String = "")
|
|
6240
|
-
{
|
|
6241
|
-
let apkArg = apk.asRubyArgument(name: "apk", type: nil)
|
|
6242
|
-
let apiTokenArg = RubyCommand.Argument(name: "api_token", value: apiToken, type: nil)
|
|
6243
|
-
let ipaArg = ipa.asRubyArgument(name: "ipa", type: nil)
|
|
6244
|
-
let dsymArg = dsym.asRubyArgument(name: "dsym", type: nil)
|
|
6245
|
-
let createUpdateArg = createUpdate.asRubyArgument(name: "create_update", type: nil)
|
|
6246
|
-
let notesArg = RubyCommand.Argument(name: "notes", value: notes, type: nil)
|
|
6247
|
-
let notifyArg = RubyCommand.Argument(name: "notify", value: notify, type: nil)
|
|
6248
|
-
let statusArg = RubyCommand.Argument(name: "status", value: status, type: nil)
|
|
6249
|
-
let createStatusArg = RubyCommand.Argument(name: "create_status", value: createStatus, type: nil)
|
|
6250
|
-
let notesTypeArg = RubyCommand.Argument(name: "notes_type", value: notesType, type: nil)
|
|
6251
|
-
let releaseTypeArg = RubyCommand.Argument(name: "release_type", value: releaseType, type: nil)
|
|
6252
|
-
let mandatoryArg = RubyCommand.Argument(name: "mandatory", value: mandatory, type: nil)
|
|
6253
|
-
let teamsArg = teams.asRubyArgument(name: "teams", type: nil)
|
|
6254
|
-
let usersArg = users.asRubyArgument(name: "users", type: nil)
|
|
6255
|
-
let tagsArg = tags.asRubyArgument(name: "tags", type: nil)
|
|
6256
|
-
let bundleShortVersionArg = bundleShortVersion.asRubyArgument(name: "bundle_short_version", type: nil)
|
|
6257
|
-
let bundleVersionArg = bundleVersion.asRubyArgument(name: "bundle_version", type: nil)
|
|
6258
|
-
let publicIdentifierArg = publicIdentifier.asRubyArgument(name: "public_identifier", type: nil)
|
|
6259
|
-
let commitShaArg = commitSha.asRubyArgument(name: "commit_sha", type: nil)
|
|
6260
|
-
let repositoryUrlArg = repositoryUrl.asRubyArgument(name: "repository_url", type: nil)
|
|
6261
|
-
let buildServerUrlArg = buildServerUrl.asRubyArgument(name: "build_server_url", type: nil)
|
|
6262
|
-
let uploadDsymOnlyArg = uploadDsymOnly.asRubyArgument(name: "upload_dsym_only", type: nil)
|
|
6263
|
-
let ownerIdArg = ownerId.asRubyArgument(name: "owner_id", type: nil)
|
|
6264
|
-
let strategyArg = RubyCommand.Argument(name: "strategy", value: strategy, type: nil)
|
|
6265
|
-
let timeoutArg = timeout.asRubyArgument(name: "timeout", type: nil)
|
|
6266
|
-
let bypassCdnArg = bypassCdn.asRubyArgument(name: "bypass_cdn", type: nil)
|
|
6267
|
-
let dsaSignatureArg = RubyCommand.Argument(name: "dsa_signature", value: dsaSignature, type: nil)
|
|
6268
|
-
let array: [RubyCommand.Argument?] = [apkArg,
|
|
6269
|
-
apiTokenArg,
|
|
6270
|
-
ipaArg,
|
|
6271
|
-
dsymArg,
|
|
6272
|
-
createUpdateArg,
|
|
6273
|
-
notesArg,
|
|
6274
|
-
notifyArg,
|
|
6275
|
-
statusArg,
|
|
6276
|
-
createStatusArg,
|
|
6277
|
-
notesTypeArg,
|
|
6278
|
-
releaseTypeArg,
|
|
6279
|
-
mandatoryArg,
|
|
6280
|
-
teamsArg,
|
|
6281
|
-
usersArg,
|
|
6282
|
-
tagsArg,
|
|
6283
|
-
bundleShortVersionArg,
|
|
6284
|
-
bundleVersionArg,
|
|
6285
|
-
publicIdentifierArg,
|
|
6286
|
-
commitShaArg,
|
|
6287
|
-
repositoryUrlArg,
|
|
6288
|
-
buildServerUrlArg,
|
|
6289
|
-
uploadDsymOnlyArg,
|
|
6290
|
-
ownerIdArg,
|
|
6291
|
-
strategyArg,
|
|
6292
|
-
timeoutArg,
|
|
6293
|
-
bypassCdnArg,
|
|
6294
|
-
dsaSignatureArg]
|
|
6295
|
-
let args: [RubyCommand.Argument] = array
|
|
6296
|
-
.filter { $0?.value != nil }
|
|
6297
|
-
.compactMap { $0 }
|
|
6298
|
-
let command = RubyCommand(commandID: "", methodName: "hockey", className: nil, args: args)
|
|
6299
|
-
_ = runner.executeCommand(command)
|
|
6300
|
-
}
|
|
6301
|
-
|
|
6302
6175
|
/**
|
|
6303
6176
|
Connect to the [IFTTT Maker Channel](https://ifttt.com/maker)
|
|
6304
6177
|
|
|
@@ -6351,7 +6224,7 @@ public func ifttt(apiKey: String,
|
|
|
6351
6224
|
public func importCertificate(certificatePath: String,
|
|
6352
6225
|
certificatePassword: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6353
6226
|
certificateFormat: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6354
|
-
keychainName: String,
|
|
6227
|
+
keychainName: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6355
6228
|
keychainPath: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6356
6229
|
keychainPassword: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
6357
6230
|
logOutput: OptionalConfigValue<Bool> = .fastlaneDefault(false))
|
|
@@ -6359,7 +6232,7 @@ public func importCertificate(certificatePath: String,
|
|
|
6359
6232
|
let certificatePathArg = RubyCommand.Argument(name: "certificate_path", value: certificatePath, type: nil)
|
|
6360
6233
|
let certificatePasswordArg = certificatePassword.asRubyArgument(name: "certificate_password", type: nil)
|
|
6361
6234
|
let certificateFormatArg = certificateFormat.asRubyArgument(name: "certificate_format", type: nil)
|
|
6362
|
-
let keychainNameArg =
|
|
6235
|
+
let keychainNameArg = keychainName.asRubyArgument(name: "keychain_name", type: nil)
|
|
6363
6236
|
let keychainPathArg = keychainPath.asRubyArgument(name: "keychain_path", type: nil)
|
|
6364
6237
|
let keychainPasswordArg = keychainPassword.asRubyArgument(name: "keychain_password", type: nil)
|
|
6365
6238
|
let logOutputArg = logOutput.asRubyArgument(name: "log_output", type: nil)
|
|
@@ -7553,6 +7426,8 @@ public func nexusUpload(file: String,
|
|
|
7553
7426
|
- verbose: Whether to log requests
|
|
7554
7427
|
- apiKeyPath: Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)
|
|
7555
7428
|
- apiKey: Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-hash-option)
|
|
7429
|
+
- keychainPath: The path to a keychain file to use for reading the keychain item. If not specified, the default user keychain is used
|
|
7430
|
+
- keychainProfile: Authenticate with credentials stored in the Keychain. Use the profile name you provided in the "xcrun notarytool store-credentials" command. Unlike :username, no app-specific password is passed on the command line, so prefer it when you do not use an API key
|
|
7556
7431
|
*/
|
|
7557
7432
|
public func notarize(package: String,
|
|
7558
7433
|
skipStapling: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
@@ -7561,7 +7436,9 @@ public func notarize(package: String,
|
|
|
7561
7436
|
printLog: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
7562
7437
|
verbose: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
7563
7438
|
apiKeyPath: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
7564
|
-
apiKey: OptionalConfigValue<[String: Any]?> = .fastlaneDefault(nil)
|
|
7439
|
+
apiKey: OptionalConfigValue<[String: Any]?> = .fastlaneDefault(nil),
|
|
7440
|
+
keychainPath: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
7441
|
+
keychainProfile: OptionalConfigValue<String?> = .fastlaneDefault(nil))
|
|
7565
7442
|
{
|
|
7566
7443
|
let packageArg = RubyCommand.Argument(name: "package", value: package, type: nil)
|
|
7567
7444
|
let skipStaplingArg = skipStapling.asRubyArgument(name: "skip_stapling", type: nil)
|
|
@@ -7571,6 +7448,8 @@ public func notarize(package: String,
|
|
|
7571
7448
|
let verboseArg = verbose.asRubyArgument(name: "verbose", type: nil)
|
|
7572
7449
|
let apiKeyPathArg = apiKeyPath.asRubyArgument(name: "api_key_path", type: nil)
|
|
7573
7450
|
let apiKeyArg = apiKey.asRubyArgument(name: "api_key", type: nil)
|
|
7451
|
+
let keychainPathArg = keychainPath.asRubyArgument(name: "keychain_path", type: nil)
|
|
7452
|
+
let keychainProfileArg = keychainProfile.asRubyArgument(name: "keychain_profile", type: nil)
|
|
7574
7453
|
let array: [RubyCommand.Argument?] = [packageArg,
|
|
7575
7454
|
skipStaplingArg,
|
|
7576
7455
|
usernameArg,
|
|
@@ -7578,7 +7457,9 @@ public func notarize(package: String,
|
|
|
7578
7457
|
printLogArg,
|
|
7579
7458
|
verboseArg,
|
|
7580
7459
|
apiKeyPathArg,
|
|
7581
|
-
apiKeyArg
|
|
7460
|
+
apiKeyArg,
|
|
7461
|
+
keychainPathArg,
|
|
7462
|
+
keychainProfileArg]
|
|
7582
7463
|
let args: [RubyCommand.Argument] = array
|
|
7583
7464
|
.filter { $0?.value != nil }
|
|
7584
7465
|
.compactMap { $0 }
|
|
@@ -10299,6 +10180,9 @@ public func setupTravis(force: OptionalConfigValue<Bool> = .fastlaneDefault(fals
|
|
|
10299
10180
|
- command: Shell command to be executed
|
|
10300
10181
|
- log: Determines whether fastlane should print out the executed command itself and output of the executed command. If command line option --troubleshoot is used, then it overrides this option to true
|
|
10301
10182
|
- errorCallback: A callback invoked with the command output if there is a non-zero exit status
|
|
10183
|
+
- stdin: Data written to the command's standard input, which is then closed. It is never printed, so it can carry a secret the command reads from its input
|
|
10184
|
+
- chdir: Directory the command runs in; the lane's own directory stays as it is
|
|
10185
|
+
- separateStderr: Return stdout only; stderr goes to the error message and the error_callback
|
|
10302
10186
|
|
|
10303
10187
|
- returns: Outputs the string and executes it. When running in tests, it returns the actual command instead of executing it
|
|
10304
10188
|
|
|
@@ -10307,14 +10191,23 @@ public func setupTravis(force: OptionalConfigValue<Bool> = .fastlaneDefault(fals
|
|
|
10307
10191
|
*/
|
|
10308
10192
|
@discardableResult public func sh(command: String,
|
|
10309
10193
|
log: OptionalConfigValue<Bool> = .fastlaneDefault(true),
|
|
10310
|
-
errorCallback: ((String) -> Void)? = nil
|
|
10194
|
+
errorCallback: ((String) -> Void)? = nil,
|
|
10195
|
+
stdin: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
10196
|
+
chdir: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
10197
|
+
separateStderr: OptionalConfigValue<Bool> = .fastlaneDefault(false)) -> String
|
|
10311
10198
|
{
|
|
10312
10199
|
let commandArg = RubyCommand.Argument(name: "command", value: command, type: nil)
|
|
10313
10200
|
let logArg = log.asRubyArgument(name: "log", type: nil)
|
|
10314
10201
|
let errorCallbackArg = RubyCommand.Argument(name: "error_callback", value: errorCallback, type: .stringClosure)
|
|
10202
|
+
let stdinArg = stdin.asRubyArgument(name: "stdin", type: nil)
|
|
10203
|
+
let chdirArg = chdir.asRubyArgument(name: "chdir", type: nil)
|
|
10204
|
+
let separateStderrArg = separateStderr.asRubyArgument(name: "separate_stderr", type: nil)
|
|
10315
10205
|
let array: [RubyCommand.Argument?] = [commandArg,
|
|
10316
10206
|
logArg,
|
|
10317
|
-
errorCallbackArg
|
|
10207
|
+
errorCallbackArg,
|
|
10208
|
+
stdinArg,
|
|
10209
|
+
chdirArg,
|
|
10210
|
+
separateStderrArg]
|
|
10318
10211
|
let args: [RubyCommand.Argument] = array
|
|
10319
10212
|
.filter { $0?.value != nil }
|
|
10320
10213
|
.compactMap { $0 }
|
|
@@ -11032,7 +10925,7 @@ public func sourcedocs(allModules: OptionalConfigValue<Bool?> = .fastlaneDefault
|
|
|
11032
10925
|
moduleName: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
11033
10926
|
linkBeginning: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
11034
10927
|
linkEnding: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
11035
|
-
outputFolder: String,
|
|
10928
|
+
outputFolder: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
11036
10929
|
minAcl: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
11037
10930
|
moduleNamePath: OptionalConfigValue<Bool?> = .fastlaneDefault(nil),
|
|
11038
10931
|
clean: OptionalConfigValue<Bool?> = .fastlaneDefault(nil),
|
|
@@ -11047,7 +10940,7 @@ public func sourcedocs(allModules: OptionalConfigValue<Bool?> = .fastlaneDefault
|
|
|
11047
10940
|
let moduleNameArg = moduleName.asRubyArgument(name: "module_name", type: nil)
|
|
11048
10941
|
let linkBeginningArg = linkBeginning.asRubyArgument(name: "link_beginning", type: nil)
|
|
11049
10942
|
let linkEndingArg = linkEnding.asRubyArgument(name: "link_ending", type: nil)
|
|
11050
|
-
let outputFolderArg =
|
|
10943
|
+
let outputFolderArg = outputFolder.asRubyArgument(name: "output_folder", type: nil)
|
|
11051
10944
|
let minAclArg = minAcl.asRubyArgument(name: "min_acl", type: nil)
|
|
11052
10945
|
let moduleNamePathArg = moduleNamePath.asRubyArgument(name: "module_name_path", type: nil)
|
|
11053
10946
|
let cleanArg = clean.asRubyArgument(name: "clean", type: nil)
|
|
@@ -11320,6 +11213,7 @@ public func ssh(username: String,
|
|
|
11320
11213
|
- syncImageUpload: Whether to use sha256 comparison to skip upload of images and screenshots that are already in Play Store
|
|
11321
11214
|
- trackPromoteTo: The track to promote to. The default available tracks are: production, beta, alpha, internal
|
|
11322
11215
|
- trackPromoteReleaseStatus: Promoted track release status (used when promoting a track) - valid values are completed, draft, halted, inProgress
|
|
11216
|
+
- trackPromoteForce: Force the promotion of a version code that is no longer returned for the source track (:version_code and :version_name are required)
|
|
11323
11217
|
- validateOnly: Only validate changes with Google Play rather than actually publish
|
|
11324
11218
|
- mapping: Path to the mapping file to upload (mapping.txt or native-debug-symbols.zip alike)
|
|
11325
11219
|
- mappingPaths: An array of paths to mapping files to upload (mapping.txt or native-debug-symbols.zip alike)
|
|
@@ -11363,6 +11257,7 @@ public func supply(packageName: String,
|
|
|
11363
11257
|
syncImageUpload: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
11364
11258
|
trackPromoteTo: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
11365
11259
|
trackPromoteReleaseStatus: String = "completed",
|
|
11260
|
+
trackPromoteForce: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
11366
11261
|
validateOnly: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
11367
11262
|
mapping: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
11368
11263
|
mappingPaths: OptionalConfigValue<[String]?> = .fastlaneDefault(nil),
|
|
@@ -11404,6 +11299,7 @@ public func supply(packageName: String,
|
|
|
11404
11299
|
let syncImageUploadArg = syncImageUpload.asRubyArgument(name: "sync_image_upload", type: nil)
|
|
11405
11300
|
let trackPromoteToArg = trackPromoteTo.asRubyArgument(name: "track_promote_to", type: nil)
|
|
11406
11301
|
let trackPromoteReleaseStatusArg = RubyCommand.Argument(name: "track_promote_release_status", value: trackPromoteReleaseStatus, type: nil)
|
|
11302
|
+
let trackPromoteForceArg = trackPromoteForce.asRubyArgument(name: "track_promote_force", type: nil)
|
|
11407
11303
|
let validateOnlyArg = validateOnly.asRubyArgument(name: "validate_only", type: nil)
|
|
11408
11304
|
let mappingArg = mapping.asRubyArgument(name: "mapping", type: nil)
|
|
11409
11305
|
let mappingPathsArg = mappingPaths.asRubyArgument(name: "mapping_paths", type: nil)
|
|
@@ -11444,6 +11340,7 @@ public func supply(packageName: String,
|
|
|
11444
11340
|
syncImageUploadArg,
|
|
11445
11341
|
trackPromoteToArg,
|
|
11446
11342
|
trackPromoteReleaseStatusArg,
|
|
11343
|
+
trackPromoteForceArg,
|
|
11447
11344
|
validateOnlyArg,
|
|
11448
11345
|
mappingArg,
|
|
11449
11346
|
mappingPathsArg,
|
|
@@ -12215,15 +12112,6 @@ public func twitter(consumerKey: String,
|
|
|
12215
12112
|
_ = runner.executeCommand(command)
|
|
12216
12113
|
}
|
|
12217
12114
|
|
|
12218
|
-
/**
|
|
12219
|
-
Post a message to [Typetalk](https://www.typetalk.com/)
|
|
12220
|
-
*/
|
|
12221
|
-
public func typetalk() {
|
|
12222
|
-
let args: [RubyCommand.Argument] = []
|
|
12223
|
-
let command = RubyCommand(commandID: "", methodName: "typetalk", className: nil, args: args)
|
|
12224
|
-
_ = runner.executeCommand(command)
|
|
12225
|
-
}
|
|
12226
|
-
|
|
12227
12115
|
/**
|
|
12228
12116
|
Unlock a keychain
|
|
12229
12117
|
|
|
@@ -12433,6 +12321,8 @@ public func updateCodeSigningSettings(path: String,
|
|
|
12433
12321
|
After the above changes, restart your terminal, then run `mkdir $GEM_HOME` to create the new gem directory. After this, you're good to go!
|
|
12434
12322
|
|
|
12435
12323
|
Recommended usage of the `update_fastlane` action is at the top inside of the `before_all` block, before running any other action.
|
|
12324
|
+
|
|
12325
|
+
When fastlane runs with Bundler (`bundle exec fastlane`), this action does nothing: run `bundle update fastlane` instead.
|
|
12436
12326
|
*/
|
|
12437
12327
|
public func updateFastlane(noUpdate: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
12438
12328
|
nightly: OptionalConfigValue<Bool> = .fastlaneDefault(false))
|
|
@@ -12590,7 +12480,7 @@ public func updateProjectCodeSigning(path: String,
|
|
|
12590
12480
|
- targetFilter: A filter for the target name. Use a standard regex
|
|
12591
12481
|
- buildConfigurationFilter: Legacy option, use 'target_filter' instead
|
|
12592
12482
|
- buildConfiguration: A filter for the build configuration name. Use a standard regex. Applied to all configurations if not specified
|
|
12593
|
-
- certificate: Path to
|
|
12483
|
+
- certificate: Path to a root certificate to trust in addition to Apple's root certificates shipped with fastlane, e.g. a root Apple introduced after this release
|
|
12594
12484
|
- codeSigningIdentity: Code sign identity for build configuration
|
|
12595
12485
|
|
|
12596
12486
|
You should check out the [code signing guide](https://docs.fastlane.tools/codesigning/getting-started/) before using this action.
|
|
@@ -12605,7 +12495,7 @@ public func updateProjectProvisioning(xcodeproj: OptionalConfigValue<String?> =
|
|
|
12605
12495
|
targetFilter: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
12606
12496
|
buildConfigurationFilter: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
12607
12497
|
buildConfiguration: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
12608
|
-
certificate: String =
|
|
12498
|
+
certificate: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
12609
12499
|
codeSigningIdentity: OptionalConfigValue<String?> = .fastlaneDefault(nil))
|
|
12610
12500
|
{
|
|
12611
12501
|
let xcodeprojArg = xcodeproj.asRubyArgument(name: "xcodeproj", type: nil)
|
|
@@ -12613,7 +12503,7 @@ public func updateProjectProvisioning(xcodeproj: OptionalConfigValue<String?> =
|
|
|
12613
12503
|
let targetFilterArg = targetFilter.asRubyArgument(name: "target_filter", type: nil)
|
|
12614
12504
|
let buildConfigurationFilterArg = buildConfigurationFilter.asRubyArgument(name: "build_configuration_filter", type: nil)
|
|
12615
12505
|
let buildConfigurationArg = buildConfiguration.asRubyArgument(name: "build_configuration", type: nil)
|
|
12616
|
-
let certificateArg =
|
|
12506
|
+
let certificateArg = certificate.asRubyArgument(name: "certificate", type: nil)
|
|
12617
12507
|
let codeSigningIdentityArg = codeSigningIdentity.asRubyArgument(name: "code_signing_identity", type: nil)
|
|
12618
12508
|
let array: [RubyCommand.Argument?] = [xcodeprojArg,
|
|
12619
12509
|
profileArg,
|
|
@@ -12778,7 +12668,7 @@ public func uploadAppPrivacyDetailsToAppStore(username: String,
|
|
|
12778
12668
|
Upload dSYM symbolication files to Crashlytics
|
|
12779
12669
|
|
|
12780
12670
|
- parameters:
|
|
12781
|
-
- dsymPath: Path to the DSYM file or zip to upload
|
|
12671
|
+
- dsymPath: Path to the DSYM file or zip to upload. Defaults to the dSYM of the last build_app, or else the most recent .dSYM or .dSYM.zip under the current directory
|
|
12782
12672
|
- dsymPaths: Paths to the DSYM files or zips to upload
|
|
12783
12673
|
- apiToken: Crashlytics API Key
|
|
12784
12674
|
- gspPath: Path to GoogleService-Info.plist
|
|
@@ -12792,7 +12682,7 @@ public func uploadAppPrivacyDetailsToAppStore(username: String,
|
|
|
12792
12682
|
This action allows you to upload symbolication files to Crashlytics. It's extra useful if you use it to download the latest dSYM files from Apple when you use Bitcode. This action will not fail the build if one of the uploads failed by default.
|
|
12793
12683
|
The reason for that is that sometimes some of dSYM files are invalid, and we don't want them to fail the complete build. However, fail_on_build parameter can be used to prevent this behavior.
|
|
12794
12684
|
*/
|
|
12795
|
-
public func uploadSymbolsToCrashlytics(dsymPath: String =
|
|
12685
|
+
public func uploadSymbolsToCrashlytics(dsymPath: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
12796
12686
|
dsymPaths: OptionalConfigValue<[String]?> = .fastlaneDefault(nil),
|
|
12797
12687
|
apiToken: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
12798
12688
|
gspPath: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
@@ -12803,7 +12693,7 @@ public func uploadSymbolsToCrashlytics(dsymPath: String = "./spec/fixtures/dSYM/
|
|
|
12803
12693
|
failOnError: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
12804
12694
|
debug: OptionalConfigValue<Bool> = .fastlaneDefault(false))
|
|
12805
12695
|
{
|
|
12806
|
-
let dsymPathArg =
|
|
12696
|
+
let dsymPathArg = dsymPath.asRubyArgument(name: "dsym_path", type: nil)
|
|
12807
12697
|
let dsymPathsArg = dsymPaths.asRubyArgument(name: "dsym_paths", type: nil)
|
|
12808
12698
|
let apiTokenArg = apiToken.asRubyArgument(name: "api_token", type: nil)
|
|
12809
12699
|
let gspPathArg = gspPath.asRubyArgument(name: "gsp_path", type: nil)
|
|
@@ -13227,6 +13117,7 @@ public func uploadToAppStore(apiKeyPath: OptionalConfigValue<String?> = .fastlan
|
|
|
13227
13117
|
- syncImageUpload: Whether to use sha256 comparison to skip upload of images and screenshots that are already in Play Store
|
|
13228
13118
|
- trackPromoteTo: The track to promote to. The default available tracks are: production, beta, alpha, internal
|
|
13229
13119
|
- trackPromoteReleaseStatus: Promoted track release status (used when promoting a track) - valid values are completed, draft, halted, inProgress
|
|
13120
|
+
- trackPromoteForce: Force the promotion of a version code that is no longer returned for the source track (:version_code and :version_name are required)
|
|
13230
13121
|
- validateOnly: Only validate changes with Google Play rather than actually publish
|
|
13231
13122
|
- mapping: Path to the mapping file to upload (mapping.txt or native-debug-symbols.zip alike)
|
|
13232
13123
|
- mappingPaths: An array of paths to mapping files to upload (mapping.txt or native-debug-symbols.zip alike)
|
|
@@ -13270,6 +13161,7 @@ public func uploadToPlayStore(packageName: String,
|
|
|
13270
13161
|
syncImageUpload: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
13271
13162
|
trackPromoteTo: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
13272
13163
|
trackPromoteReleaseStatus: String = "completed",
|
|
13164
|
+
trackPromoteForce: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
13273
13165
|
validateOnly: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
|
13274
13166
|
mapping: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
|
13275
13167
|
mappingPaths: OptionalConfigValue<[String]?> = .fastlaneDefault(nil),
|
|
@@ -13311,6 +13203,7 @@ public func uploadToPlayStore(packageName: String,
|
|
|
13311
13203
|
let syncImageUploadArg = syncImageUpload.asRubyArgument(name: "sync_image_upload", type: nil)
|
|
13312
13204
|
let trackPromoteToArg = trackPromoteTo.asRubyArgument(name: "track_promote_to", type: nil)
|
|
13313
13205
|
let trackPromoteReleaseStatusArg = RubyCommand.Argument(name: "track_promote_release_status", value: trackPromoteReleaseStatus, type: nil)
|
|
13206
|
+
let trackPromoteForceArg = trackPromoteForce.asRubyArgument(name: "track_promote_force", type: nil)
|
|
13314
13207
|
let validateOnlyArg = validateOnly.asRubyArgument(name: "validate_only", type: nil)
|
|
13315
13208
|
let mappingArg = mapping.asRubyArgument(name: "mapping", type: nil)
|
|
13316
13209
|
let mappingPathsArg = mappingPaths.asRubyArgument(name: "mapping_paths", type: nil)
|
|
@@ -13351,6 +13244,7 @@ public func uploadToPlayStore(packageName: String,
|
|
|
13351
13244
|
syncImageUploadArg,
|
|
13352
13245
|
trackPromoteToArg,
|
|
13353
13246
|
trackPromoteReleaseStatusArg,
|
|
13247
|
+
trackPromoteForceArg,
|
|
13354
13248
|
validateOnlyArg,
|
|
13355
13249
|
mappingArg,
|
|
13356
13250
|
mappingPathsArg,
|
|
@@ -14245,4 +14139,4 @@ public let snapshotfile: Snapshotfile = .init()
|
|
|
14245
14139
|
|
|
14246
14140
|
// Please don't remove the lines below
|
|
14247
14141
|
// They are used to detect outdated files
|
|
14248
|
-
// FastlaneRunnerAPIVersion [0.9.
|
|
14142
|
+
// FastlaneRunnerAPIVersion [0.9.212]
|
|
@@ -42,12 +42,21 @@ class MainProcess {
|
|
|
42
42
|
killExistingSocketServerProcesses(port: argumentProcessor.port)
|
|
43
43
|
abortIfPortIsInUse(argumentProcessor.port)
|
|
44
44
|
|
|
45
|
+
let serverToken = createServerToken()
|
|
46
|
+
ArgumentProcessor.serverToken = serverToken.token
|
|
47
|
+
|
|
45
48
|
rubySocketCommand = Process()
|
|
46
49
|
rubySocketCommand.launchPath = "/usr/bin/env"
|
|
47
50
|
rubySocketCommand.arguments = fastlaneLaunchArguments() + ["socket_server", "-c", String(timeout), "-p", String(argumentProcessor.port)]
|
|
51
|
+
// An environment variable rather than --token_file, so that an older fastlane still starts
|
|
52
|
+
var environment = ProcessInfo.processInfo.environment
|
|
53
|
+
environment["FASTLANE_SOCKET_SERVER_TOKEN_FILE"] = serverToken.file
|
|
54
|
+
rubySocketCommand.environment = environment
|
|
48
55
|
rubySocketCommand.launch()
|
|
49
56
|
|
|
50
57
|
waitUntilSocketServerIsListening(port: argumentProcessor.port, serverProcess: rubySocketCommand)
|
|
58
|
+
// socket_server read the token when it started
|
|
59
|
+
try? FileManager.default.removeItem(atPath: serverToken.directory)
|
|
51
60
|
thread.start()
|
|
52
61
|
#endif
|
|
53
62
|
}
|
|
@@ -78,6 +87,24 @@ class MainProcess {
|
|
|
78
87
|
return ["bundle", "exec", "fastlane"]
|
|
79
88
|
}
|
|
80
89
|
|
|
90
|
+
/// A random token in a file only this user can read, which socket_server requires on every command and the runner sends
|
|
91
|
+
func createServerToken() -> (token: String, directory: String, file: String) {
|
|
92
|
+
var template = Array((NSTemporaryDirectory() as NSString).appendingPathComponent("fastlane-runner.XXXXXX").utf8CString)
|
|
93
|
+
guard let created = mkdtemp(&template), let random = FileHandle(forReadingAtPath: "/dev/urandom") else {
|
|
94
|
+
log(message: "Could not create the token for fastlane socket_server")
|
|
95
|
+
exit(1)
|
|
96
|
+
}
|
|
97
|
+
let directory = String(cString: created)
|
|
98
|
+
let token = random.readData(ofLength: 32).map { String(format: "%02x", $0) }.joined()
|
|
99
|
+
random.closeFile()
|
|
100
|
+
let file = directory + "/token"
|
|
101
|
+
guard token.count == 64, FileManager.default.createFile(atPath: file, contents: token.data(using: .utf8), attributes: [.posixPermissions: 0o600]) else {
|
|
102
|
+
log(message: "Could not create the token for fastlane socket_server")
|
|
103
|
+
exit(1)
|
|
104
|
+
}
|
|
105
|
+
return (token, directory, file)
|
|
106
|
+
}
|
|
107
|
+
|
|
81
108
|
/// The directory of the Gemfile Bundler would use: BUNDLE_GEMFILE, else the
|
|
82
109
|
/// nearest Gemfile or gems.rb from the working directory up.
|
|
83
110
|
func bundleRootDirectory() -> String? {
|