fastlane 2.141.0 → 2.146.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +82 -82
- data/credentials_manager/lib/credentials_manager/appfile_config.rb +4 -0
- data/deliver/lib/deliver/app_screenshot.rb +1 -0
- data/deliver/lib/deliver/options.rb +30 -1
- data/deliver/lib/deliver/setup.rb +4 -4
- data/fastlane/lib/fastlane/actions/.update_code_signing_settings.rb.swp +0 -0
- data/fastlane/lib/fastlane/actions/README.md +2 -0
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +13 -5
- data/fastlane/lib/fastlane/actions/automatic_code_signing.rb +7 -1
- data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +3 -0
- data/fastlane/lib/fastlane/actions/cocoapods.rb +2 -2
- data/fastlane/lib/fastlane/actions/crashlytics.rb +14 -2
- data/fastlane/lib/fastlane/actions/create_pull_request.rb +7 -1
- data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +10 -4
- data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +22 -6
- data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +23 -7
- data/fastlane/lib/fastlane/actions/ensure_git_branch.rb +1 -1
- data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +35 -7
- data/fastlane/lib/fastlane/actions/frame_screenshots.rb +2 -1
- data/fastlane/lib/fastlane/actions/get_github_release.rb +3 -0
- data/fastlane/lib/fastlane/actions/get_version_number.rb +1 -1
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +9 -3
- data/fastlane/lib/fastlane/actions/notarize.rb +183 -0
- data/fastlane/lib/fastlane/actions/pod_lib_lint.rb +7 -1
- data/fastlane/lib/fastlane/actions/s3.rb +5 -291
- data/fastlane/lib/fastlane/actions/setup_ci.rb +1 -1
- data/fastlane/lib/fastlane/actions/setup_jenkins.rb +11 -2
- data/fastlane/lib/fastlane/actions/slather.rb +1 -1
- data/fastlane/lib/fastlane/actions/spm.rb +8 -0
- data/fastlane/lib/fastlane/actions/swiftlint.rb +45 -9
- data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +198 -0
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +14 -4
- data/fastlane/lib/fastlane/actions/verify_build.rb +1 -1
- data/fastlane/lib/fastlane/helper/adb_helper.rb +1 -1
- data/fastlane/lib/fastlane/helper/s3_client_helper.rb +61 -0
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +1 -1
- data/fastlane/lib/fastlane/server/socket_server_action_command_executor.rb +1 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane/swift/Deliverfile.swift +1 -1
- data/fastlane/swift/Fastlane.swift +201 -13
- data/fastlane/swift/Gymfile.swift +1 -1
- data/fastlane/swift/Matchfile.swift +1 -1
- data/fastlane/swift/MatchfileProtocol.swift +17 -1
- data/fastlane/swift/Precheckfile.swift +1 -1
- data/fastlane/swift/RubyCommand.swift +1 -1
- data/fastlane/swift/Scanfile.swift +1 -1
- data/fastlane/swift/ScanfileProtocol.swift +9 -1
- data/fastlane/swift/Screengrabfile.swift +1 -1
- data/fastlane/swift/Snapshotfile.swift +1 -1
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +9 -0
- data/fastlane_core/lib/fastlane_core/device_manager.rb +3 -3
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +1 -0
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +2 -0
- data/fastlane_core/lib/fastlane_core/project.rb +4 -0
- data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +15 -2
- data/frameit/lib/frameit/commands_generator.rb +25 -0
- data/frameit/lib/frameit/config_parser.rb +31 -9
- data/frameit/lib/frameit/device.rb +90 -0
- data/frameit/lib/frameit/device_types.rb +121 -5
- data/frameit/lib/frameit/editor.rb +29 -41
- data/frameit/lib/frameit/offsets.rb +8 -1
- data/frameit/lib/frameit/options.rb +81 -54
- data/frameit/lib/frameit/runner.rb +17 -7
- data/frameit/lib/frameit/screenshot.rb +39 -47
- data/frameit/lib/frameit/template_finder.rb +15 -12
- data/gym/lib/gym/generators/package_command_generator.rb +4 -0
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +5 -0
- data/gym/lib/gym/runner.rb +16 -2
- data/match/lib/match/change_password.rb +1 -1
- data/match/lib/match/encryption.rb +4 -0
- data/match/lib/match/importer.rb +37 -20
- data/match/lib/match/module.rb +1 -1
- data/match/lib/match/nuke.rb +5 -1
- data/match/lib/match/options.rb +18 -0
- data/match/lib/match/runner.rb +4 -0
- data/match/lib/match/setup.rb +1 -1
- data/match/lib/match/storage.rb +4 -0
- data/match/lib/match/storage/google_cloud_storage.rb +2 -2
- data/match/lib/match/storage/s3_storage.rb +167 -0
- data/pilot/lib/pilot/build_manager.rb +24 -7
- data/pilot/lib/pilot/options.rb +8 -0
- data/produce/lib/produce/developer_center.rb +11 -2
- data/produce/lib/produce/itunes_connect.rb +11 -3
- data/produce/lib/produce/options.rb +12 -0
- data/scan/lib/scan/options.rb +10 -0
- data/scan/lib/scan/runner.rb +9 -7
- data/scan/lib/scan/test_command_generator.rb +11 -4
- data/screengrab/lib/screengrab/runner.rb +32 -19
- data/snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb +16 -0
- data/snapshot/lib/snapshot/reports_generator.rb +4 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +2 -0
- data/spaceship/lib/spaceship/connect_api/models/app.rb +11 -0
- data/spaceship/lib/spaceship/connect_api/models/build.rb +1 -2
- data/spaceship/lib/spaceship/connect_api/models/certificate.rb +2 -0
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +23 -0
- data/spaceship/lib/spaceship/portal/app_service.rb +2 -2
- data/spaceship/lib/spaceship/portal/portal_client.rb +13 -0
- data/spaceship/lib/spaceship/tunes/app_version.rb +6 -1
- data/spaceship/lib/spaceship/tunes/application.rb +2 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +2 -2
- data/spaceship/lib/spaceship/two_step_or_factor_client.rb +52 -16
- data/supply/lib/supply/client.rb +4 -4
- data/supply/lib/supply/setup.rb +5 -3
- metadata +37 -16
Binary file
|
@@ -1,3 +1,5 @@
|
|
1
1
|
All built-in integrations are available in this directory. Use the `fastlane new_action` command to create a new action.
|
2
2
|
|
3
3
|
_fastlane_ will automatically detect the files in this folder
|
4
|
+
|
5
|
+
All available actions are listed and documented on https://docs.fastlane.tools/actions/. Documentation for individual actions is available on https://docs.fastlane.tools/actions/%action_name%, e.g. https://docs.fastlane.tools/actions/copy_artifacts/.
|
@@ -1,14 +1,18 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
|
1
3
|
module Fastlane
|
2
4
|
module Actions
|
3
5
|
module SharedValues
|
4
6
|
LATEST_BUILD_NUMBER = :LATEST_BUILD_NUMBER
|
7
|
+
LATEST_VERSION = :LATEST_VERSION
|
5
8
|
end
|
6
9
|
|
7
10
|
class AppStoreBuildNumberAction < Action
|
8
11
|
def self.run(params)
|
9
12
|
require 'spaceship'
|
10
13
|
|
11
|
-
|
14
|
+
result = get_build_number(params)
|
15
|
+
build_nr = result.build_nr
|
12
16
|
|
13
17
|
# Convert build_nr to int (for legacy use) if no "." in string
|
14
18
|
if build_nr.kind_of?(String) && !build_nr.include?(".")
|
@@ -16,6 +20,9 @@ module Fastlane
|
|
16
20
|
end
|
17
21
|
|
18
22
|
Actions.lane_context[SharedValues::LATEST_BUILD_NUMBER] = build_nr
|
23
|
+
Actions.lane_context[SharedValues::LATEST_VERSION] = result.build_v
|
24
|
+
|
25
|
+
return build_nr
|
19
26
|
end
|
20
27
|
|
21
28
|
def self.get_build_number(params)
|
@@ -33,7 +40,7 @@ module Fastlane
|
|
33
40
|
|
34
41
|
UI.message("Latest upload for live-version #{app.live_version.version} is build: #{build_nr}")
|
35
42
|
|
36
|
-
return build_nr
|
43
|
+
return OpenStruct.new({ build_nr: build_nr, build_v: app.live_version.version })
|
37
44
|
else
|
38
45
|
version_number = params[:version]
|
39
46
|
platform = params[:platform]
|
@@ -61,7 +68,7 @@ module Fastlane
|
|
61
68
|
if build
|
62
69
|
build_nr = build.version
|
63
70
|
UI.message("Latest upload for version #{build.app_version} on #{platform_message} is build: #{build_nr}")
|
64
|
-
return build_nr
|
71
|
+
return OpenStruct.new({ build_nr: build_nr, build_v: build.app_version })
|
65
72
|
end
|
66
73
|
|
67
74
|
# Let user know that build couldn't be found
|
@@ -72,7 +79,7 @@ module Fastlane
|
|
72
79
|
else
|
73
80
|
build_nr = params[:initial_build_number]
|
74
81
|
UI.message("Using initial build number of #{build_nr}")
|
75
|
-
return build_nr
|
82
|
+
return OpenStruct.new({ build_nr: build_nr, build_v: version_number })
|
76
83
|
end
|
77
84
|
end
|
78
85
|
end
|
@@ -159,7 +166,8 @@ module Fastlane
|
|
159
166
|
|
160
167
|
def self.output
|
161
168
|
[
|
162
|
-
['LATEST_BUILD_NUMBER', 'The latest build number of either live or testflight version']
|
169
|
+
['LATEST_BUILD_NUMBER', 'The latest build number of either live or testflight version'],
|
170
|
+
['LATEST_VERSION', 'The version of the latest build number']
|
163
171
|
]
|
164
172
|
end
|
165
173
|
|
@@ -3,6 +3,8 @@ module Fastlane
|
|
3
3
|
module Actions
|
4
4
|
class AutomaticCodeSigningAction < Action
|
5
5
|
def self.run(params)
|
6
|
+
UI.deprecated("The `automatic_code_signing` action has been deprecated,")
|
7
|
+
UI.deprecated("Please use `update_code_signing_settings` action instead.")
|
6
8
|
FastlaneCore::PrintTable.print_values(config: params, title: "Summary for Automatic Codesigning")
|
7
9
|
path = params[:path]
|
8
10
|
path = File.join(File.expand_path(path), "project.pbxproj")
|
@@ -201,7 +203,11 @@ module Fastlane
|
|
201
203
|
end
|
202
204
|
|
203
205
|
def self.category
|
204
|
-
:
|
206
|
+
:deprecated
|
207
|
+
end
|
208
|
+
|
209
|
+
def self.deprecated_notes
|
210
|
+
"Please use `update_code_signing_settings` action instead."
|
205
211
|
end
|
206
212
|
|
207
213
|
def self.return_value
|
@@ -19,7 +19,7 @@ module Fastlane
|
|
19
19
|
|
20
20
|
cmd << '--no-clean' unless params[:clean]
|
21
21
|
cmd << '--no-integrate' unless params[:integrate]
|
22
|
-
cmd << '--clean-install' if params[:clean_install] && pod_version.to_f >= 1.7
|
22
|
+
cmd << '--clean-install' if params[:clean_install] && pod_version(params).to_f >= 1.7
|
23
23
|
cmd << '--repo-update' if params[:repo_update]
|
24
24
|
cmd << '--silent' if params[:silent]
|
25
25
|
cmd << '--verbose' if params[:verbose]
|
@@ -42,7 +42,7 @@ module Fastlane
|
|
42
42
|
params[:use_bundle_exec] && shell_out_should_use_bundle_exec?
|
43
43
|
end
|
44
44
|
|
45
|
-
def self.pod_version
|
45
|
+
def self.pod_version(params)
|
46
46
|
use_bundle_exec?(params) ? `bundle exec pod --version` : `pod --version`
|
47
47
|
end
|
48
48
|
|
@@ -66,7 +66,7 @@ module Fastlane
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def self.description
|
69
|
-
"
|
69
|
+
"Refer to [Firebase App Distribution](https://appdistro.page.link/fastlane-repo)"
|
70
70
|
end
|
71
71
|
|
72
72
|
def self.available_options
|
@@ -169,6 +169,10 @@ module Fastlane
|
|
169
169
|
|
170
170
|
def self.details
|
171
171
|
[
|
172
|
+
"Crashlytics Beta has been deprecated and replaced with Firebase App Distribution.",
|
173
|
+
"Beta will continue working until May 4, 2020.",
|
174
|
+
"Check out the [Firebase App Distribution docs](https://github.com/fastlane/fastlane-plugin-firebase_app_distribution) to get started.",
|
175
|
+
"",
|
172
176
|
"Additionally, you can specify `notes`, `emails`, `groups` and `notifications`.",
|
173
177
|
"Distributing to Groups: When using the `groups` parameter, it's important to use the group **alias** names for each group you'd like to distribute to. A group's alias can be found in the web UI. If you're viewing the Beta page, you can open the groups dialog by clicking the 'Manage Groups' button.",
|
174
178
|
"This action uses the `submit` binary provided by the Crashlytics framework. If the binary is not found in its usual path, you'll need to specify the path manually by using the `crashlytics_path` option."
|
@@ -196,7 +200,15 @@ module Fastlane
|
|
196
200
|
end
|
197
201
|
|
198
202
|
def self.category
|
199
|
-
:
|
203
|
+
:deprecated
|
204
|
+
end
|
205
|
+
|
206
|
+
def self.deprecated_notes
|
207
|
+
[
|
208
|
+
"Crashlytics Beta has been deprecated and replaced with Firebase App Distribution.",
|
209
|
+
"Beta will continue working until May 4, 2020.",
|
210
|
+
"Check out the [Firebase App Distribution docs](https://github.com/fastlane/fastlane-plugin-firebase_app_distribution) to get started."
|
211
|
+
].join("\n")
|
200
212
|
end
|
201
213
|
end
|
202
214
|
end
|
@@ -15,6 +15,7 @@ module Fastlane
|
|
15
15
|
'base' => params[:base]
|
16
16
|
}
|
17
17
|
payload['body'] = params[:body] if params[:body]
|
18
|
+
payload['draft'] = params[:draft] if params[:draft]
|
18
19
|
|
19
20
|
GithubApiAction.run(
|
20
21
|
server_url: params[:api_url],
|
@@ -176,6 +177,11 @@ module Fastlane
|
|
176
177
|
description: "The contents of the pull request",
|
177
178
|
is_string: true,
|
178
179
|
optional: true),
|
180
|
+
FastlaneCore::ConfigItem.new(key: :draft,
|
181
|
+
env_name: "GITHUB_PULL_REQUEST_DRAFT",
|
182
|
+
description: "Indicates whether the pull request is a draft",
|
183
|
+
type: Boolean,
|
184
|
+
optional: true),
|
179
185
|
FastlaneCore::ConfigItem.new(key: :labels,
|
180
186
|
env_name: "GITHUB_PULL_REQUEST_LABELS",
|
181
187
|
description: "The labels for the pull request",
|
@@ -226,7 +232,7 @@ module Fastlane
|
|
226
232
|
end
|
227
233
|
|
228
234
|
def self.author
|
229
|
-
["seei", "tommeier", "marumemomo", "elneruda"]
|
235
|
+
["seei", "tommeier", "marumemomo", "elneruda", "kagemiku"]
|
230
236
|
end
|
231
237
|
|
232
238
|
def self.is_supported?(platform)
|
@@ -190,10 +190,16 @@ The `Snapfile` can contain all the options that are also available on `fastlane
|
|
190
190
|
scheme("UITests")
|
191
191
|
|
192
192
|
devices([
|
193
|
-
"
|
194
|
-
"
|
195
|
-
"
|
196
|
-
"
|
193
|
+
"iPad (7th generation)",
|
194
|
+
"iPad Air (3rd generation)",
|
195
|
+
"iPad Pro (11-inch)",
|
196
|
+
"iPad Pro (12.9-inch) (3rd generation)",
|
197
|
+
"iPad Pro (9.7-inch)",
|
198
|
+
"iPhone 11",
|
199
|
+
"iPhone 11 Pro",
|
200
|
+
"iPhone 11 Pro Max",
|
201
|
+
"iPhone 8",
|
202
|
+
"iPhone 8 Plus"
|
197
203
|
])
|
198
204
|
|
199
205
|
languages([
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
###### Easily put your screenshots into the right device frames
|
6
6
|
|
7
|
-
_frameit_ allows you to put a gorgeous device frame around your iOS and
|
7
|
+
_frameit_ allows you to put a gorgeous device frame around your iOS, macOS and Android screenshots just by running one simple command. Use _frameit_ to prepare perfect screenshots for the App Store, your website, QA or emails.
|
8
8
|
|
9
9
|
-------
|
10
10
|
|
@@ -23,9 +23,10 @@ _frameit_ allows you to put a gorgeous device frame around your iOS and macOS sc
|
|
23
23
|
|
24
24
|
## Frame screenshot
|
25
25
|
|
26
|
-
Put a gorgeous device frame around your iOS and
|
26
|
+
Put a gorgeous device frame around your iOS, macOS and Android screenshots just by running one simple command. Support for:
|
27
27
|
|
28
28
|
- iPhone, iPad and Mac
|
29
|
+
- Set of Android devices
|
29
30
|
- Portrait and Landscape modes
|
30
31
|
- Several device frame colors
|
31
32
|
|
@@ -69,12 +70,18 @@ More information about this process and how to update the frames can be found [h
|
|
69
70
|
|
70
71
|
Why should you have to use Photoshop, just to add a frame around your screenshots?
|
71
72
|
|
72
|
-
Just navigate to your folder of screenshots and use the following command:
|
73
|
+
Just navigate to your folder of screenshots and use the following command (iOS and Mac OS are default platforms for backward compatibility):
|
73
74
|
|
74
75
|
```no-highlight
|
75
76
|
fastlane frameit
|
76
77
|
```
|
77
78
|
|
79
|
+
To frame Android screenshots:
|
80
|
+
|
81
|
+
```no-highlight
|
82
|
+
fastlane frameit android
|
83
|
+
```
|
84
|
+
|
78
85
|
To use the silver version of the frames:
|
79
86
|
|
80
87
|
```no-highlight
|
@@ -129,8 +136,10 @@ The general parameters are defined in the `default` key and can be:
|
|
129
136
|
| `padding` | The content of the framed screenshot will be resized to match the specified `padding` around all edges. The vertical padding is also applied between the text and the top or bottom (depending on `title_below_image`) of the device frame. <p> There are 3 different options of specyfying the padding: <p> 1. Default: An integer value that defines both horizontal and vertical padding in pixels. <br> 2. A string that defines (different) padding values in pixels for horizontal and vertical padding. The syntax is `"<horizontal>x<vertical>"`, e.g. `"30x60"`. <br> 3. A string that defines (different) padding values in percentage for horizontal and vertical padding. The syntax is `"<horizontal>%x<vertical>%"`, e.g. `"5%x10%"`. <br> **Note:** The percentage is calculated from the smallest image dimension (height or width). <p> A combination of option 2 and 3 is possible, e.g. `"5%x40"`. | `50` |
|
130
137
|
| `interline_spacing` | Specifies whether _frameit_ should add or subtract this many pixels between the individual lines of text. This only applies to a multi-line `title` and/or `keyword` to expand or squash together the individual lines of text. | `0` |
|
131
138
|
| `font_scale_factor` | Specifies whether _frameit_ should increase or decrease the font size of the text. | `0.1` |
|
132
|
-
| `frame` | Overrides the color of the frame to be used. (Valid values are `BLACK
|
139
|
+
| `frame` | Overrides the color of the frame to be used. (Valid values are `BLACK`, `WHITE`, `GOLD` and `ROSE_GOLD`) | NA |
|
133
140
|
| `title_min_height` | Specifies a height always reserved for the title. Value can be a percentage of the height or an absolute value. The device will be placed below (or above) this area. Convenient to ensure the device top (or bottom) will be consistently placed at the same height on the different screenshots. | NA |
|
141
|
+
| `use_platform` | Overrides the platform used for the screenshot. Valid values are `IOS`, `ANDROID` and `ANY`. | `IOS` |
|
142
|
+
| `force_device_type` | Forces a specific device. Valid values are: Huawei P8, Motorola Moto E, Motorola Moto G, Nexus 4, Nexus 5X, Nexus 6P, Nexus 9, Samsung Galaxy Grand Prime, Samsung Galaxy Note 5, Samsung Galaxy S Duos, Samsung Galaxy S3, Samsung Galaxy S5, Samsung Galaxy S7, Samsung Galaxy S8, Samsung Galaxy S9, iPhone 5s, iPhone 5c, iPhone SE, iPhone 6s, iPhone 6s Plus, iPhone 7, iPhone 7 Plus, iPhone 8, iPhone 8 Plus, iPhone X, iPhone XS, iPhone XR, iPhone XS Max, iPad Air 2, iPad Mini 4, iPad Pro, MacBook, Google Pixel 3, Google Pixel 3 XL, HTC One A9, HTC One M8 | NA |
|
134
143
|
|
135
144
|
### Specific parameters
|
136
145
|
|
@@ -142,7 +151,9 @@ These are defined in the `data` key. This is an array with the following keys fo
|
|
142
151
|
| `filter` | This is mandatory to link the individual configuration to the screenshot, based on part of the file name. <p>Example:<br>If a screenshot is named `iPhone 8-Brainstorming.png` you can use value `Brainstorming` for `filter`. If there are more than one `filter` matching an entry, they will all be applied in order (which means that the last one has the highest precedence). All other keys from that array element will only be applied on this specific screenshot. |
|
143
152
|
| `keyword` | Similar use as in `default`, except that parameter `text` can be used here because it is screenshot specific. |
|
144
153
|
| `title` | Similar use as in `default`, except that parameter `text` can be used here because it is screenshot specific. |
|
145
|
-
| `frame` | Overrides the color of the frame to be used. (Valid values are `BLACK
|
154
|
+
| `frame` | Overrides the color of the frame to be used. (Valid values are `BLACK`, `WHITE`, `GOLD` and `ROSE_GOLD`) | NA |
|
155
|
+
| `use_platform` | Overrides the platform used for the screenshot. Valid values are `IOS`, `ANDROID` and `ANY`. | `IOS` |
|
156
|
+
| `force_device_type` | Forces a specific device. Valid values are the same as for the general parameter. | NA |
|
146
157
|
|
147
158
|
### <a name="keyword-and-title-parameters"></a>Framefile `keyword` and `title` parameters
|
148
159
|
|
@@ -172,7 +183,8 @@ The `keyword` and `title` parameters are both used in `default` and `data`. They
|
|
172
183
|
"show_complete_frame": false,
|
173
184
|
"stack_title" : false,
|
174
185
|
"title_below_image": true,
|
175
|
-
"frame": "WHITE"
|
186
|
+
"frame": "WHITE",
|
187
|
+
"use_platform": "IOS"
|
176
188
|
},
|
177
189
|
|
178
190
|
"data": [
|
@@ -200,6 +212,10 @@ The `keyword` and `title` parameters are both used in `default` and `data`. They
|
|
200
212
|
"keyword": {
|
201
213
|
"color": "#31bb48"
|
202
214
|
}
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"filter": "Android",
|
218
|
+
"use_platform": "ANDROID"
|
203
219
|
}
|
204
220
|
]
|
205
221
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
A new approach to iOS code signing: Share one code signing identity across your development team to simplify your codesigning setup and prevent code signing issues.
|
8
8
|
|
9
|
-
_match_ is the implementation of the [codesigning.guide concept](https://codesigning.guide). _match_ creates all required certificates & provisioning profiles and stores them in a separate git repository. Every team member with access to the
|
9
|
+
_match_ is the implementation of the [codesigning.guide concept](https://codesigning.guide). _match_ creates all required certificates & provisioning profiles and stores them in a separate git repository, Google Cloud, or Amazon S3. Every team member with access to the selected storage can use those credentials for code signing. _match_ also automatically repairs broken and expired credentials. It's the easiest way to share signing credentials across teams
|
10
10
|
|
11
11
|
[More information on how to get started with codesigning](https://docs.fastlane.tools/codesigning/getting-started/)
|
12
12
|
|
@@ -73,7 +73,7 @@ fastlane match init
|
|
73
73
|
|
74
74
|
<img src="/img/actions/match_init.gif" width="550" />
|
75
75
|
|
76
|
-
You'll be asked if you want to store your code signing identities inside a **Git repo**, or
|
76
|
+
You'll be asked if you want to store your code signing identities inside a **Git repo**, **Google Cloud** or **Amazon S3**.
|
77
77
|
|
78
78
|
#### Git Storage
|
79
79
|
|
@@ -142,6 +142,18 @@ Example content (for more advanced setups check out the [fastlane section](#fast
|
|
142
142
|
google_cloud_bucket_name("major-key-certificates")
|
143
143
|
```
|
144
144
|
|
145
|
+
#### Amazon S3
|
146
|
+
|
147
|
+
Use [Amazon S3](https://aws.amazon.com/s3/) for a fully hosted solution for your code signing identities. Certificates are stored on S3, inside a storage bucket you provide. You can also directly access the files using the web console.
|
148
|
+
|
149
|
+
This will create a `Matchfile` in your current directory (or in your `./fastlane/` folder).
|
150
|
+
|
151
|
+
Example content (for more advanced setups check out the [fastlane section](#fastlane)):
|
152
|
+
|
153
|
+
```ruby-skip-tests
|
154
|
+
s3_bucket("ios-certificates")
|
155
|
+
```
|
156
|
+
|
145
157
|
### Multiple teams
|
146
158
|
|
147
159
|
_match_ can store the codesigning files for multiple development teams:
|
@@ -155,9 +167,9 @@ match(git_branch: "team1", username: "user@team1.com")
|
|
155
167
|
match(git_branch: "team2", username: "user@team2.com")
|
156
168
|
```
|
157
169
|
|
158
|
-
#### Google Cloud Storage
|
170
|
+
#### Google Cloud or Amazon S3 Storage
|
159
171
|
|
160
|
-
If you use Google Cloud Storage, you don't need to do anything manually
|
172
|
+
If you use Google Cloud or Amazon S3 Storage, you don't need to do anything manually. Just use Google Cloud or Amazon S3 Storage, and the top level folder will be the team ID.
|
161
173
|
|
162
174
|
### Run
|
163
175
|
|
@@ -194,7 +206,7 @@ fastlane action match
|
|
194
206
|
|
195
207
|
#### Handle multiple targets
|
196
208
|
|
197
|
-
_match_ can use the same one Git repository
|
209
|
+
_match_ can use the same one Git repository, Google Cloud, or Amazon S3 Storage for all bundle identifiers.
|
198
210
|
|
199
211
|
If you have several targets with different bundle identifiers, supply them as a comma-separated list:
|
200
212
|
|
@@ -419,6 +431,10 @@ Once you've decided which approach to take, all that's left to do is to set your
|
|
419
431
|
|
420
432
|
Accessing Google Cloud Storage from your CI system requires you to provide the `gc_keys.json` file as part of your build. How you implement this is your decision. You can inject that file during build time.
|
421
433
|
|
434
|
+
#### Amazon S3 Storage access
|
435
|
+
|
436
|
+
Accessing Amazon S3 Storage from your CI system requires you to provide the `s3_region`, `s3_access_key`, `s3_secret_access_key` and `s3_bucket` options (or environment variables), with keys that has read access to the bucket.
|
437
|
+
|
422
438
|
### Nuke
|
423
439
|
|
424
440
|
If you never really cared about code signing and have a messy Apple Developer account with a lot of invalid, expired or Xcode managed profiles/certificates, you can use the `match nuke` command to revoke your certificates and provisioning profiles. Don't worry, apps that are already available in the App Store / TestFlight will still work. Builds distributed via Ad Hoc or Enterprise will be disabled after nuking your account, so you'll have to re-upload a new build. After clearing your account you'll start from a clean state, and you can run _match_ to generate your certificates and profiles again.
|
@@ -449,13 +465,13 @@ You'll be asked for the new password on all your machines on the next run.
|
|
449
465
|
|
450
466
|
### Import
|
451
467
|
|
452
|
-
To import and encrypt a certificate (`.cer`)
|
468
|
+
To import and encrypt a certificate (`.cer`), the private key (`.p12`) and the provisioning profiles (`.mobileprovision` or `.provisionprofile`) into the _match_ repo run:
|
453
469
|
|
454
470
|
```no-highlight
|
455
471
|
fastlane match import
|
456
472
|
```
|
457
473
|
|
458
|
-
You'll be prompted for the certificate (`.cer`)
|
474
|
+
You'll be prompted for the certificate (`.cer`), the private key (`.p12`) and the provisioning profiles (`.mobileprovision` or `.provisionprofile`) paths. _match_ will first validate the certificate (`.cer`) against the Developer Portal before importing the certificate, the private key and the provisioning profiles into the specified _match_ repository.
|
459
475
|
|
460
476
|
### Manual Decrypt
|
461
477
|
|
@@ -34,7 +34,7 @@ module Fastlane
|
|
34
34
|
[
|
35
35
|
FastlaneCore::ConfigItem.new(key: :branch,
|
36
36
|
env_name: "FL_ENSURE_GIT_BRANCH_NAME",
|
37
|
-
description: "The branch that should be checked for. String that can be either the full name of the branch or a regex to match",
|
37
|
+
description: "The branch that should be checked for. String that can be either the full name of the branch or a regex e.g. `^feature\/.*$` to match",
|
38
38
|
is_string: true,
|
39
39
|
default_value: 'master')
|
40
40
|
]
|
@@ -4,6 +4,7 @@ module Fastlane
|
|
4
4
|
def self.run(params)
|
5
5
|
Actions.verify_gem!('xcode-install')
|
6
6
|
required_version = params[:version]
|
7
|
+
strict = params[:strict]
|
7
8
|
|
8
9
|
if required_version.to_s.length == 0
|
9
10
|
# The user didn't provide an Xcode version, let's see
|
@@ -30,16 +31,38 @@ module Fastlane
|
|
30
31
|
UI.user_error!("Invalid version number provided, make sure it's valid: #{ex}")
|
31
32
|
end
|
32
33
|
|
33
|
-
if
|
34
|
-
|
34
|
+
if strict == true
|
35
|
+
if selected_version == required_version
|
36
|
+
success(selected_version)
|
37
|
+
else
|
38
|
+
error(selected_version, required_version)
|
39
|
+
end
|
35
40
|
else
|
36
|
-
|
37
|
-
|
41
|
+
required_version_numbers = required_version.to_s.split(".")
|
42
|
+
selected_version_numbers = selected_version.to_s.split(".")
|
43
|
+
|
44
|
+
required_version_numbers.each_with_index do |required_version_number, index|
|
45
|
+
selected_version_number = selected_version_numbers[index]
|
46
|
+
next unless required_version_number != selected_version_number
|
47
|
+
error(selected_version, required_version)
|
48
|
+
break
|
49
|
+
end
|
38
50
|
|
39
|
-
|
51
|
+
success(selected_version)
|
40
52
|
end
|
41
53
|
end
|
42
54
|
|
55
|
+
def self.success(selected_version)
|
56
|
+
UI.success("Selected Xcode version is correct: #{selected_version}")
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.error(selected_version, required_version)
|
60
|
+
UI.message("Selected Xcode version is not correct: #{selected_version}. You expected #{required_version}.")
|
61
|
+
UI.message("To correct this, use: `xcode_select(version: #{required_version})`.")
|
62
|
+
|
63
|
+
UI.user_error!("Selected Xcode version doesn't match your requirement.\nExpected: Xcode #{required_version}\nActual: Xcode #{selected_version}\n")
|
64
|
+
end
|
65
|
+
|
43
66
|
#####################################################
|
44
67
|
# @!group Documentation
|
45
68
|
#####################################################
|
@@ -52,7 +75,8 @@ module Fastlane
|
|
52
75
|
[
|
53
76
|
"If building your app requires a specific version of Xcode, you can invoke this command before using gym.",
|
54
77
|
"For example, to ensure that a beta version of Xcode is not accidentally selected to build, which would make uploading to TestFlight fail.",
|
55
|
-
"You can either manually provide a specific version using `version: ` or you make use of the `.xcode-version` file."
|
78
|
+
"You can either manually provide a specific version using `version: ` or you make use of the `.xcode-version` file.",
|
79
|
+
"Using the `strict` parameter, you can either verify the full set of version numbers strictly (i.e. `11.3.1`) or only a subset of them (i.e. `11.3` or `11`)."
|
56
80
|
].join("\n")
|
57
81
|
end
|
58
82
|
|
@@ -62,7 +86,11 @@ module Fastlane
|
|
62
86
|
env_name: "FL_ENSURE_XCODE_VERSION",
|
63
87
|
description: "Xcode version to verify that is selected",
|
64
88
|
is_string: true,
|
65
|
-
optional: true)
|
89
|
+
optional: true),
|
90
|
+
FastlaneCore::ConfigItem.new(key: :strict,
|
91
|
+
description: "Should the version be verified strictly (all 3 version numbers), or matching only the given version numbers (i.e. `11.3` == `11.3.x`)",
|
92
|
+
type: Boolean,
|
93
|
+
default_value: true)
|
66
94
|
]
|
67
95
|
end
|
68
96
|
|