xcode_fastlane 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e2663ea7a9423640263850234ef3e7d77e90ed560f0e3c075370ee1c090c2cc
4
- data.tar.gz: 4cfa19a676af15c29b0bcc853e0b38ed73b4c2bb77d846323e500cb0bf65fda7
3
+ metadata.gz: 3ec5914ef095a9a6fa672f369746a8b52fc01218a9ceb50e201783fc4bf6d50f
4
+ data.tar.gz: 2e65ff5de1bcf5d9fa25d1fe9962baf69a2c8f1cfeb94bd522b8fcc0a2d90524
5
5
  SHA512:
6
- metadata.gz: 93dbf3ec6a82312fa73341ce2ae406ebe2f33e27f8958c512386f5ede94572ec8124e864dad04737a0dcbdde133053846e38b3e6f3c6e5ca36ce51394a64e4dd
7
- data.tar.gz: f9071ea3c917e26da59a39ff2332117a819c6cdfba7e6c9845637241c65947de7a3bfd7105c19d29139570f4bcfc59cf0e42300c70db072ee78950d4c132dd6c
6
+ metadata.gz: 2238e88b0838bcc3603c4a32d738d123f4e9f3f119cc0b5110ff45259ee2b1da98ffd98b16f2da1d6924dd04f5b6bf42c122b3a6f84cee6008d1b325f0acf988
7
+ data.tar.gz: 3d47bbdccdebb564a66e160cbdfd4ba9e905a906c9eebdca72d18d695d22084fc4ac77224a6c684c95d675a5f5770cb55cea1254625c350369eb7238265b8f17
data/.rubocop.yml CHANGED
@@ -1,430 +1,123 @@
1
1
  ---
2
2
  require:
3
- - rubocop-rake
4
3
  - rubocop-rspec
5
4
 
6
5
  AllCops:
7
- TargetRubyVersion: 3
8
- Exclude:
9
- - fastlane/**/*
10
- - templates/**/*
11
-
12
- Capybara:
13
- Enabled: false
14
-
15
- FactoryBot:
16
- Enabled: false
17
-
18
- Gemspec/DeprecatedAttributeAssignment:
19
- Enabled: true
20
-
21
- Gemspec/DevelopmentDependencies:
22
- Enabled: true
23
-
24
- Gemspec/RequireMFA:
25
- Enabled: true
26
-
27
- Layout/LineContinuationLeadingSpace:
28
- Enabled: true
29
-
30
- Layout/LineContinuationSpacing:
31
- Enabled: true
32
-
33
- Layout/LineEndStringConcatenationIndentation:
34
- Enabled: true
35
-
36
- Layout/SpaceBeforeBrackets:
37
- Enabled: true
38
-
39
- Lint/AmbiguousAssignment:
40
- Enabled: true
41
-
42
- Lint/AmbiguousOperatorPrecedence:
43
- Enabled: true
44
-
45
- Lint/AmbiguousRange:
46
- Enabled: true
47
-
48
- Lint/ConstantOverwrittenInRescue:
49
- Enabled: true
50
-
51
- Lint/DeprecatedConstants:
52
- Enabled: true
53
-
54
- Lint/DuplicateBranch:
55
- Enabled: true
56
-
57
- Lint/DuplicateMagicComment:
58
- Enabled: true
59
-
60
- Lint/DuplicateMatchPattern:
61
- Enabled: true
62
-
63
- Lint/DuplicateRegexpCharacterClassElement:
64
- Enabled: true
65
-
66
- Lint/EmptyBlock:
67
- Enabled: true
68
-
69
- Lint/EmptyClass:
70
- Enabled: true
71
-
72
- Lint/EmptyInPattern:
73
- Enabled: true
74
-
75
- Lint/IncompatibleIoSelectWithFiberScheduler:
76
- Enabled: true
77
-
78
- Lint/ItWithoutArgumentsInBlock:
79
- Enabled: true
80
-
81
- Lint/LambdaWithoutLiteralBlock:
82
- Enabled: true
83
-
84
- Lint/LiteralAssignmentInCondition:
85
- Enabled: true
86
-
87
- Lint/MixedCaseRange:
88
- Enabled: true
89
-
90
- Lint/NoReturnInBeginEndBlocks:
91
- Enabled: true
92
-
93
- Lint/NonAtomicFileOperation:
94
- Enabled: true
95
-
96
- Lint/NumberedParameterAssignment:
97
- Enabled: true
98
-
99
- Lint/OrAssignmentToConstant:
100
- Enabled: true
101
-
102
- Lint/RedundantDirGlobSort:
103
- Enabled: true
6
+ DisplayCopNames: true
7
+ DisplayStyleGuide: true
8
+ NewCops: enable
9
+ StyleGuideBaseURL: https://rubystyle.guide
10
+ SuggestExtensions: false
11
+ TargetRubyVersion: 3.0
104
12
 
105
- Lint/RedundantRegexpQuantifiers:
106
- Enabled: true
13
+ Bundler/OrderedGems:
14
+ TreatCommentsAsGroupSeparators: false
107
15
 
108
- Lint/RefinementImportMethods:
109
- Enabled: true
16
+ Layout/IndentationStyle:
17
+ IndentationWidth: 2
110
18
 
111
- Lint/RequireRangeParentheses:
112
- Enabled: true
19
+ Layout/LineLength:
20
+ Max: 140
113
21
 
114
- Lint/RequireRelativeSelfPath:
115
- Enabled: true
116
-
117
- Lint/SymbolConversion:
118
- Enabled: true
119
-
120
- Lint/ToEnumArguments:
121
- Enabled: true
122
-
123
- Lint/TripleQuotes:
124
- Enabled: true
125
-
126
- Lint/UnexpectedBlockArity:
127
- Enabled: true
128
-
129
- Lint/UnmodifiedReduceAccumulator:
130
- Enabled: true
131
-
132
- Lint/UselessRescue:
133
- Enabled: true
134
-
135
- Lint/UselessRuby2Keywords:
136
- Enabled: true
137
-
138
- Metrics/CollectionLiteralLength:
139
- Enabled: true
140
-
141
- Naming/BlockForwarding:
142
- Enabled: true
143
-
144
- RSpec/BeEmpty:
145
- Enabled: true
146
-
147
- RSpec/BeEq:
148
- Enabled: true
149
-
150
- RSpec/BeNil:
151
- Enabled: true
152
-
153
- RSpec/ChangeByZero:
154
- Enabled: true
155
-
156
- RSpec/ContainExactly:
157
- Enabled: true
158
-
159
- RSpec/DuplicatedMetadata:
160
- Enabled: true
161
-
162
- RSpec/EmptyMetadata:
163
- Enabled: true
164
-
165
- RSpec/EmptyOutput:
166
- Enabled: true
167
-
168
- RSpec/Eq:
169
- Enabled: true
170
-
171
- RSpec/ExcessiveDocstringSpacing:
172
- Enabled: true
173
-
174
- RSpec/IdenticalEqualityAssertion:
175
- Enabled: true
176
-
177
- RSpec/IndexedLet:
178
- Enabled: true
179
-
180
- RSpec/IsExpectedSpecify:
181
- Enabled: true
182
-
183
- RSpec/MatchArray:
184
- Enabled: true
185
-
186
- RSpec/MetadataStyle:
187
- Enabled: true
188
-
189
- RSpec/NoExpectationExample:
190
- Enabled: true
191
-
192
- RSpec/PendingWithoutReason:
193
- Enabled: true
22
+ Metrics/AbcSize:
23
+ Enabled: false
194
24
 
195
- RSpec/ReceiveMessages:
196
- Enabled: true
25
+ Metrics/BlockLength:
26
+ Exclude:
27
+ - fastlane/*
28
+ - templates/fastlane/*
29
+ AllowedMethods:
30
+ - context
31
+ - define
32
+ - describe
33
+ - factory
34
+ - group
35
+ - shared_examples
36
+
37
+ Metrics/ClassLength:
38
+ Max: 320
39
+
40
+ Metrics/CyclomaticComplexity:
41
+ Max: 8
42
+
43
+ Metrics/MethodLength:
44
+ Enabled: false
197
45
 
198
- RSpec/RedundantAround:
199
- Enabled: true
46
+ Metrics/PerceivedComplexity:
47
+ Max: 10
200
48
 
201
- RSpec/RedundantPredicateMatcher:
202
- Enabled: true
49
+ Naming/FileName:
50
+ Exclude:
51
+ - Guardfile
203
52
 
204
- RSpec/RemoveConst:
205
- Enabled: true
53
+ Naming/PredicateName:
54
+ Enabled: false
206
55
 
207
- RSpec/RepeatedSubjectCall:
208
- Enabled: true
56
+ RSpec/ContextWording:
57
+ Prefixes:
58
+ - and
59
+ - as
60
+ - for
61
+ - when
62
+ - with
63
+ - without
209
64
 
210
- RSpec/SkipBlockInsideExample:
211
- Enabled: true
65
+ RSpec/ExampleLength:
66
+ Max: 13
212
67
 
213
- RSpec/SortMetadata:
214
- Enabled: true
68
+ RSpec/FilePath:
69
+ Enabled: false
215
70
 
216
71
  RSpec/SpecFilePathFormat:
217
- Enabled: true
218
-
219
- RSpec/SpecFilePathSuffix:
220
- Enabled: true
221
-
222
- RSpec/SubjectDeclaration:
223
- Enabled: true
224
-
225
- RSpec/UndescriptiveLiteralsDescription:
226
- Enabled: true
227
-
228
- RSpec/VerifiedDoubleReference:
229
- Enabled: true
230
-
231
- RSpecRails/AvoidSetupHook:
232
- Enabled: true
233
-
234
- RSpecRails/HaveHttpStatus:
235
- Enabled: true
236
-
237
- RSpecRails/InferredSpecType:
238
- Enabled: true
239
-
240
- RSpecRails/MinitestAssertions:
241
- Enabled: true
242
-
243
- RSpecRails/NegationBeValid:
244
- Enabled: true
245
-
246
- RSpecRails/TravelAround:
247
- Enabled: true
248
-
249
- Security/CompoundHash:
250
- Enabled: true
251
-
252
- Security/IoMethods:
253
- Enabled: true
254
-
255
- Style/ArgumentsForwarding:
256
- Enabled: true
257
-
258
- Style/ArrayIntersect:
259
- Enabled: true
260
-
261
- Style/CollectionCompact:
262
- Enabled: true
263
-
264
- Style/ComparableClamp:
265
- Enabled: true
266
-
267
- Style/ConcatArrayLiterals:
268
- Enabled: true
269
-
270
- Style/DataInheritance:
271
- Enabled: true
272
-
273
- Style/DirEmpty:
274
- Enabled: true
275
-
276
- Style/DocumentDynamicEvalDefinition:
277
- Enabled: true
278
-
279
- Style/EmptyHeredoc:
280
- Enabled: true
281
-
282
- Style/EndlessMethod:
283
- Enabled: true
284
-
285
- Style/EnvHome:
286
- Enabled: true
287
-
288
- Style/ExactRegexpMatch:
289
- Enabled: true
290
-
291
- Style/FetchEnvVar:
292
- Enabled: true
293
-
294
- Style/FileEmpty:
295
- Enabled: true
296
-
297
- Style/FileRead:
298
- Enabled: true
299
-
300
- Style/FileWrite:
301
- Enabled: true
302
-
303
- Style/HashConversion:
304
- Enabled: true
305
-
306
- Style/HashExcept:
307
- Enabled: true
308
-
309
- Style/IfWithBooleanLiteralBranches:
310
- Enabled: true
311
-
312
- Style/InPatternThen:
313
- Enabled: true
314
-
315
- Style/MagicCommentFormat:
316
- Enabled: true
317
-
318
- Style/MapCompactWithConditionalBlock:
319
- Enabled: true
320
-
321
- Style/MapIntoArray:
322
- Enabled: true
323
-
324
- Style/MapToHash:
325
- Enabled: true
326
-
327
- Style/MapToSet:
328
- Enabled: true
329
-
330
- Style/MinMaxComparison:
331
- Enabled: true
332
-
333
- Style/MultilineInPatternThen:
334
- Enabled: true
335
-
336
- Style/NegatedIfElseCondition:
337
- Enabled: true
338
-
339
- Style/NestedFileDirname:
340
- Enabled: true
341
-
342
- Style/NilLambda:
343
- Enabled: true
344
-
345
- Style/NumberedParameters:
346
- Enabled: true
347
-
348
- Style/NumberedParametersLimit:
349
- Enabled: true
350
-
351
- Style/ObjectThen:
352
- Enabled: true
353
-
354
- Style/OpenStructUse:
355
- Enabled: true
356
-
357
- Style/OperatorMethodCall:
358
- Enabled: true
359
-
360
- Style/QuotedSymbols:
361
- Enabled: true
362
-
363
- Style/RedundantArgument:
364
- Enabled: true
365
-
366
- Style/RedundantArrayConstructor:
367
- Enabled: true
368
-
369
- Style/RedundantConstantBase:
370
- Enabled: true
371
-
372
- Style/RedundantCurrentDirectoryInPath:
373
- Enabled: true
374
-
375
- Style/RedundantDoubleSplatHashBraces:
376
- Enabled: true
377
-
378
- Style/RedundantEach:
379
- Enabled: true
380
-
381
- Style/RedundantFilterChain:
382
- Enabled: true
72
+ Enabled: false
383
73
 
384
- Style/RedundantHeredocDelimiterQuotes:
385
- Enabled: true
74
+ RSpec/MultipleExpectations:
75
+ Max: 7
386
76
 
387
- Style/RedundantInitialize:
388
- Enabled: true
77
+ RSpec/MultipleMemoizedHelpers:
78
+ Max: 6
389
79
 
390
- Style/RedundantLineContinuation:
391
- Enabled: true
80
+ RSpec/NamedSubject:
81
+ Enabled: false
392
82
 
393
- Style/RedundantRegexpArgument:
394
- Enabled: true
83
+ RSpec/NestedGroups:
84
+ Max: 5
395
85
 
396
- Style/RedundantRegexpConstructor:
397
- Enabled: true
86
+ RSpec/VerifiedDoubles:
87
+ Enabled: false
398
88
 
399
- Style/RedundantSelfAssignmentBranch:
400
- Enabled: true
89
+ Style/BlockDelimiters:
90
+ EnforcedStyle: semantic
91
+ Exclude:
92
+ - spec/factories/*.rb
93
+ AllowedMethods:
94
+ - html
95
+ - let
96
+ - let!
97
+ - sequence
98
+ - subject
99
+ - watch
100
+
101
+ Style/Copyright:
102
+ Enabled: false
401
103
 
402
- Style/RedundantStringEscape:
403
- Enabled: true
104
+ Style/Documentation:
105
+ Enabled: false
404
106
 
405
- Style/ReturnNilInPredicateMethodDefinition:
406
- Enabled: true
107
+ Style/EmptyMethod:
108
+ EnforcedStyle: expanded
407
109
 
408
- Style/SelectByRegexp:
409
- Enabled: true
110
+ Style/FormatString:
111
+ EnforcedStyle: format
410
112
 
411
- Style/SingleLineDoEndBlock:
412
- Enabled: true
113
+ Style/MethodCallWithArgsParentheses:
114
+ AllowedMethods:
115
+ - desc
413
116
 
414
- Style/StringChars:
415
- Enabled: true
117
+ Style/MixinUsage:
118
+ Exclude:
119
+ - bin/setup
120
+ - bin/update
416
121
 
417
122
  Style/StringLiterals:
418
123
  EnforcedStyle: double_quotes
419
-
420
- Style/StringLiteralsInInterpolation:
421
- EnforcedStyle: double_quotes
422
-
423
- Style/SuperWithArgsParentheses:
424
- Enabled: true
425
-
426
- Style/SwapValues:
427
- Enabled: true
428
-
429
- Style/YAMLFileRead:
430
- Enabled: true
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.2.1 (2024-05-21)
2
+
3
+ ### Bug fixes
4
+
5
+ - rename mac platform
6
+
1
7
  ## 1.2.0 (2024-05-21)
2
8
 
3
9
  ### Features
data/fastlane/Fastfile CHANGED
@@ -11,14 +11,13 @@ platform :ios do
11
11
  end
12
12
  end
13
13
 
14
- platform :macos do
14
+ platform :mac do
15
15
  before_all do
16
16
  Dotenv.load ".env.mac"
17
17
  end
18
18
  end
19
19
 
20
20
  platform :ios do
21
-
22
21
  desc "Create app on Apple Developer and App Store Connect"
23
22
  lane :create_app do
24
23
  create_app_online # produce
@@ -37,8 +36,8 @@ platform :ios do
37
36
  prepare_versioning
38
37
  if options[:commit]
39
38
  git_commit(allow_nothing_to_commit: true,
40
- message: "build: update versioning system",
41
- path: ["*.plist", "*.pbxproj"])
39
+ message: "build: update versioning system",
40
+ path: ["*.plist", "*.pbxproj"])
42
41
  end
43
42
  end
44
43
 
@@ -48,9 +47,9 @@ platform :ios do
48
47
  get_certificates # invokes cert
49
48
  get_provisioning_profile # invokes sigh
50
49
  else
51
- sync_code_signing({readonly: true, type: "appstore"}) # invokes match
50
+ sync_code_signing({ readonly: true, type: "appstore" }) # invokes match
52
51
  update_code_signing_settings(
53
- profile_name: lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING][ENV["APP_IDENTIFIER"]],
52
+ profile_name: lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING][ENV.fetch("APP_IDENTIFIER", nil)]
54
53
  )
55
54
  end
56
55
  end
@@ -75,7 +74,7 @@ platform :ios do
75
74
  UI.message("New version: #{new_version}")
76
75
 
77
76
  # new branch
78
- XcodeFastlane.checkout_branch("#{ENV["RELEASE_BRANCH_PREFIX"]}#{new_version}")
77
+ XcodeFastlane.checkout_branch("#{ENV.fetch('RELEASE_BRANCH_PREFIX', nil)}#{new_version}")
79
78
 
80
79
  file = write_release_notes(text: lane_context[SharedValues::SEMVER_NEW_CHANGELOG])
81
80
  git_add(path: file)
@@ -194,7 +193,7 @@ end
194
193
 
195
194
  private_lane :get_app_category do
196
195
  app_category = nil
197
- project = Xcodeproj::Project.open("../#{ENV["PROJECT_XCODEPROJ"]}")
196
+ project = Xcodeproj::Project.open("../#{ENV.fetch('PROJECT_XCODEPROJ', nil)}")
198
197
  project.objects.each do |object|
199
198
  if object.isa == "XCBuildConfiguration" && object.name == "Release"
200
199
  app_category = object.build_settings["INFOPLIST_KEY_LSApplicationCategoryType"]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XcodeFastlane
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.1"
5
5
  end
@@ -4,13 +4,13 @@
4
4
  # For more information, check out the docs
5
5
  # https://docs.fastlane.tools/actions/deliver/
6
6
  app_review_information(
7
- first_name: ENV["FASTLANE_REVIEW_FIRSTNAME"],
8
- last_name: ENV["FASTLANE_REVIEW_LASTNAME"],
9
- phone_number: ENV["FASTLANE_REVIEW_PHONE"],
10
- email_address: ENV["FASTLANE_REVIEW_EMAIL"]
7
+ first_name: ENV.fetch("FASTLANE_REVIEW_FIRSTNAME", nil),
8
+ last_name: ENV.fetch("FASTLANE_REVIEW_LASTNAME", nil),
9
+ phone_number: ENV.fetch("FASTLANE_REVIEW_PHONE", nil),
10
+ email_address: ENV.fetch("FASTLANE_REVIEW_EMAIL", nil)
11
11
  )
12
- copyright("#{Time.now.year} #{ENV["FASTLANE_REVIEW_FIRSTNAME"]} #{ENV["FASTLANE_REVIEW_LASTNAME"]}")
12
+ copyright("#{Time.now.year} #{ENV.fetch('FASTLANE_REVIEW_FIRSTNAME', nil)} #{ENV.fetch('FASTLANE_REVIEW_LASTNAME', nil)}")
13
13
  languages(%w[en-US de-DE])
14
14
  precheck_default_rule_level(:error)
15
- precheck_include_in_app_purchases(:false)
15
+ precheck_include_in_app_purchases(false)
16
16
  username(ENV.fetch("FASTLANE_USER", nil))
@@ -28,7 +28,6 @@ languages([
28
28
  # remove the '#' to clear all previously generated screenshots before creating new ones
29
29
  clear_previous_screenshots(true)
30
30
 
31
- # Remove the '#' to set the status bar to 9:41 AM, and show full battery and reception. See also override_status_bar_arguments for custom options.
32
31
  override_status_bar(true)
33
32
  localize_simulator(true)
34
33
  # Arguments to pass to the app on launch. See https://docs.fastlane.tools/actions/snapshot/#launch-arguments
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcode_fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karsten Silkenbäumer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2024-05-21 00:00:00.000000000 Z
@@ -114,7 +114,7 @@ metadata:
114
114
  source_code_uri: https://github.com/kassi/xcode_fastlane
115
115
  changelog_uri: https://github.com/kassi/xcode_fastlane/CHANGELOG.md
116
116
  rubygems_mfa_required: 'true'
117
- post_install_message:
117
+ post_install_message:
118
118
  rdoc_options: []
119
119
  require_paths:
120
120
  - lib
@@ -129,8 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.5.10
133
- signing_key:
132
+ rubygems_version: 3.4.10
133
+ signing_key:
134
134
  specification_version: 4
135
135
  summary: Easy fastlane setup for xcode projects using Xcode Cloud builds.
136
136
  test_files: []