Skip to content

Commit 5f89975

Browse files
authored
Tweak code signing lanes naming and make them all public (#1693)
2 parents d344c21 + 49d5757 commit 5f89975

File tree

3 files changed

+47
-58
lines changed

3 files changed

+47
-58
lines changed

Gemfile.lock

+38-36
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (7.2.1.2)
8+
activesupport (7.2.2.1)
99
base64
10+
benchmark (>= 0.3)
1011
bigdecimal
1112
concurrent-ruby (~> 1.0, >= 1.3.1)
1213
connection_pool (>= 2.2.5)
@@ -25,24 +26,25 @@ GEM
2526
ast (2.4.2)
2627
atomos (0.1.3)
2728
aws-eventstream (1.3.0)
28-
aws-partitions (1.997.0)
29-
aws-sdk-core (3.211.0)
29+
aws-partitions (1.1040.0)
30+
aws-sdk-core (3.216.0)
3031
aws-eventstream (~> 1, >= 1.3.0)
3132
aws-partitions (~> 1, >= 1.992.0)
3233
aws-sigv4 (~> 1.9)
3334
jmespath (~> 1, >= 1.6.1)
34-
aws-sdk-kms (1.95.0)
35-
aws-sdk-core (~> 3, >= 3.210.0)
35+
aws-sdk-kms (1.97.0)
36+
aws-sdk-core (~> 3, >= 3.216.0)
3637
aws-sigv4 (~> 1.5)
37-
aws-sdk-s3 (1.169.0)
38-
aws-sdk-core (~> 3, >= 3.210.0)
38+
aws-sdk-s3 (1.178.0)
39+
aws-sdk-core (~> 3, >= 3.216.0)
3940
aws-sdk-kms (~> 1)
4041
aws-sigv4 (~> 1.5)
41-
aws-sigv4 (1.10.1)
42+
aws-sigv4 (1.11.0)
4243
aws-eventstream (~> 1, >= 1.0.2)
4344
babosa (1.0.4)
4445
base64 (0.2.0)
45-
bigdecimal (3.1.8)
46+
benchmark (0.4.0)
47+
bigdecimal (3.1.9)
4648
buildkit (1.6.1)
4749
sawyer (>= 0.6)
4850
chroma (0.2.0)
@@ -92,8 +94,8 @@ GEM
9294
colored2 (3.1.2)
9395
commander (4.6.0)
9496
highline (~> 2.0.0)
95-
concurrent-ruby (1.3.4)
96-
connection_pool (2.4.1)
97+
concurrent-ruby (1.3.5)
98+
connection_pool (2.5.0)
9799
cork (0.3.0)
98100
colored2 (~> 3.1)
99101
danger (9.5.0)
@@ -151,17 +153,17 @@ GEM
151153
faraday-http-cache (2.5.1)
152154
faraday (>= 0.8)
153155
faraday-httpclient (1.0.1)
154-
faraday-multipart (1.0.4)
155-
multipart-post (~> 2)
156+
faraday-multipart (1.1.0)
157+
multipart-post (~> 2.0)
156158
faraday-net_http (1.0.2)
157159
faraday-net_http_persistent (1.2.0)
158160
faraday-patron (1.0.0)
159161
faraday-rack (1.0.0)
160162
faraday-retry (1.0.3)
161163
faraday_middleware (1.2.1)
162164
faraday (~> 1.0)
163-
fastimage (2.3.1)
164-
fastlane (2.225.0)
165+
fastimage (2.4.0)
166+
fastlane (2.226.0)
165167
CFPropertyList (>= 2.3, < 4.0.0)
166168
addressable (>= 2.8, < 3.0.0)
167169
artifactory (~> 3.0)
@@ -201,12 +203,12 @@ GEM
201203
tty-spinner (>= 0.8.0, < 1.0.0)
202204
word_wrap (~> 1.0.0)
203205
xcodeproj (>= 1.13.0, < 2.0.0)
204-
xcpretty (~> 0.3.0)
206+
xcpretty (~> 0.4.0)
205207
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
206208
fastlane-plugin-appcenter (2.1.2)
207209
fastlane-plugin-sentry (1.22.0)
208210
os (~> 1.1, >= 1.1.4)
209-
fastlane-plugin-wpmreleasetoolkit (12.2.1)
211+
fastlane-plugin-wpmreleasetoolkit (12.4.0)
210212
activesupport (>= 6.1.7.1)
211213
buildkit (~> 1.5)
212214
chroma (= 0.2.0)
@@ -270,25 +272,25 @@ GEM
270272
os (>= 0.9, < 2.0)
271273
signet (>= 0.16, < 2.a)
272274
highline (2.0.3)
273-
http-cookie (1.0.7)
275+
http-cookie (1.0.8)
274276
domain_name (~> 0.5)
275277
httpclient (2.8.3)
276-
i18n (1.14.6)
278+
i18n (1.14.7)
277279
concurrent-ruby (~> 1.0)
278280
java-properties (0.3.0)
279281
jmespath (1.6.2)
280-
json (2.7.4)
281-
jwt (2.9.3)
282+
json (2.9.1)
283+
jwt (2.10.1)
282284
base64
283285
kramdown (2.4.0)
284286
rexml
285287
kramdown-parser-gfm (1.1.0)
286288
kramdown (~> 2.0)
287289
language_server-protocol (3.17.0.3)
288-
logger (1.6.1)
290+
logger (1.6.5)
289291
mini_magick (4.13.2)
290292
mini_mime (1.1.5)
291-
minitest (5.25.1)
293+
minitest (5.25.4)
292294
molinillo (0.8.0)
293295
multi_json (1.15.0)
294296
multipart-post (2.4.1)
@@ -297,41 +299,41 @@ GEM
297299
naturally (2.2.1)
298300
netrc (0.11.0)
299301
nkf (0.2.0)
300-
nokogiri (1.16.7-arm64-darwin)
302+
nokogiri (1.18.2-arm64-darwin)
301303
racc (~> 1.4)
302-
nokogiri (1.16.7-x86_64-linux)
304+
nokogiri (1.18.2-x86_64-linux-gnu)
303305
racc (~> 1.4)
304306
octokit (6.1.1)
305307
faraday (>= 1, < 3)
306308
sawyer (~> 0.9)
307309
open4 (1.3.4)
308310
options (2.3.2)
309-
optparse (0.5.0)
311+
optparse (0.6.0)
310312
os (1.1.4)
311313
parallel (1.26.3)
312314
parser (3.3.4.2)
313315
ast (~> 2.4.1)
314316
racc
315-
plist (3.7.1)
317+
plist (3.7.2)
316318
progress_bar (1.3.4)
317319
highline (>= 1.6)
318320
options (~> 2.3.0)
319321
public_suffix (4.0.7)
320322
racc (1.8.1)
321323
rainbow (3.1.1)
322324
rake (13.2.1)
323-
rake-compiler (1.2.8)
325+
rake-compiler (1.2.9)
324326
rake
325-
rchardet (1.8.0)
327+
rchardet (1.9.0)
326328
regexp_parser (2.9.2)
327329
representable (3.2.0)
328330
declarative (< 0.1.0)
329331
trailblazer-option (>= 0.1.1, < 0.2.0)
330332
uber (< 0.2.0)
331333
retriable (3.1.2)
332-
rexml (3.3.9)
334+
rexml (3.4.0)
333335
rmagick (3.2.0)
334-
rouge (2.0.7)
336+
rouge (3.28.0)
335337
rubocop (1.65.1)
336338
json (~> 2.3)
337339
language_server-protocol (>= 3.17.0)
@@ -348,11 +350,11 @@ GEM
348350
ruby-macho (2.5.1)
349351
ruby-progressbar (1.13.0)
350352
ruby2_keywords (0.0.5)
351-
rubyzip (2.3.2)
353+
rubyzip (2.4.1)
352354
sawyer (0.9.2)
353355
addressable (>= 2.3.5)
354356
faraday (>= 0.17.3, < 3)
355-
securerandom (0.3.1)
357+
securerandom (0.4.1)
356358
security (0.1.5)
357359
signet (0.19.0)
358360
addressable (~> 2.8)
@@ -378,15 +380,15 @@ GEM
378380
uber (0.1.0)
379381
unicode-display_width (2.6.0)
380382
word_wrap (1.0.0)
381-
xcodeproj (1.26.0)
383+
xcodeproj (1.27.0)
382384
CFPropertyList (>= 2.3.3, < 4.0)
383385
atomos (~> 0.1.3)
384386
claide (>= 1.0.2, < 2.0)
385387
colored2 (~> 3.1)
386388
nanaimo (~> 0.4.0)
387389
rexml (>= 3.3.6, < 4.0)
388-
xcpretty (0.3.0)
389-
rouge (~> 2.0.7)
390+
xcpretty (0.4.0)
391+
rouge (~> 3.28.0)
390392
xcpretty-travis-formatter (1.0.1)
391393
xcpretty (~> 0.2, >= 0.0.7)
392394

fastlane/Fastfile

+8-21
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ platform :ios do
117117
#####################################################################################
118118
desc 'Builds and uploads an installable build'
119119
lane :build_and_upload_installable_build do
120-
alpha_code_signing
120+
update_certs_and_profiles_enterprise
121121

122122
# Get the current build version, and update it if needed
123123
build_number = generate_installable_build_number
@@ -419,45 +419,32 @@ end
419419
# Optionally, it can create any new necessary certificates or profiles.
420420
#
421421
# @option [Boolean] readonly (default: true) Whether to only fetch existing certificates and profiles, without generating new ones.
422-
lane :update_certs_and_profiles do |options|
423-
alpha_code_signing(options)
424-
internal_code_signing(options)
425-
appstore_code_signing(options)
422+
lane :update_certs_and_profiles do |readonly: true|
423+
update_certs_and_profiles_enterprise(readonly: readonly)
424+
update_certs_and_profiles_app_store(readonly: readonly)
426425
end
427426

428427
# Downloads all the required certificates and profiles (using `match`) for the alpha builds in the enterprise account.
429428
# Optionally, it can create any new necessary certificates or profiles.
430429
#
431430
# @option [Boolean] readonly (default: true) Whether to only fetch existing certificates and profiles, without generating new ones.
432431
#
433-
private_lane :alpha_code_signing do |options|
432+
lane :update_certs_and_profiles_enterprise do |readonly: true|
434433
update_code_signing_enterprise(
435434
app_identifiers: simplenote_app_identifiers(root_bundle_id: "#{APP_STORE_BUNDLE_IDENTIFIER}.Alpha"),
436-
readonly: options.fetch(:readonly, true)
437-
)
438-
end
439-
440-
# Downloads all the required certificates and profiles (using `match`) for the internal builds in the enterprise account.
441-
# Optionally, it can create any new necessary certificates or profiles.
442-
#
443-
# @option [Boolean] readonly (default: true) Whether to only fetch existing certificates and profiles, without generating new ones.
444-
#
445-
private_lane :internal_code_signing do |options|
446-
update_code_signing_enterprise(
447-
app_identifiers: simplenote_app_identifiers(root_bundle_id: "#{APP_STORE_BUNDLE_IDENTIFIER}.Internal"),
448-
readonly: options.fetch(:readonly, true)
435+
readonly: readonly
449436
)
450437
end
451438

452439
# Downloads all the required certificates and profiles for the production build.
453440
# Optionally, it can create any new necessary certificates or profiles.
454441
#
455442
# @option [Boolean] readonly (default: true) Whether to only fetch existing certificates and profiles, without generating new ones.
456-
private_lane :appstore_code_signing do |options|
443+
lane :update_certs_and_profiles_app_store do |readonly: true|
457444
update_code_signing(
458445
type: 'appstore',
459446
team_id: TEAM_ID_APP_STORE_CONNECT,
460-
readonly: options.fetch(:readonly, true),
447+
readonly: readonly,
461448
app_identifiers: simplenote_app_identifiers,
462449
api_key_path: APP_STORE_CONNECT_KEY_PATH,
463450
template_name: 'NotationalFlow Keychain Access (Distribution)'

fastlane/lanes/build.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
XCARCHIVE_ZIP_PATH = File.join(OUTPUT_DIRECTORY_PATH, "#{APP_STORE_CONNECT_OUTPUT_NAME}.xcarchive.zip")
66

77
lane :build_for_app_store_connect do |fetch_code_signing: true|
8-
appstore_code_signing if fetch_code_signing
8+
update_certs_and_profiles_app_store if fetch_code_signing
99

1010
build_app(
1111
scheme: 'Simplenote',

0 commit comments

Comments
 (0)