Skip to content

Commit 5e0e67c

Browse files
committed
Merge branch 'release/3.2.2'
2 parents a64f00d + 5cd01de commit 5e0e67c

12 files changed

+136
-102
lines changed

.rubocop.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ inherit_mode:
44

55
AllCops:
66
Exclude:
7-
- 'Carthage/**/*'
8-
- 'Demo/Carthage/**/*'
97
- 'vendor/**/*'
108
Include:
119
- 'fastlane/Pluginfile'
10+
NewCops: enable
1211

1312
# this would cause errors with long lanes
1413
Metrics/BlockLength:
1514
Enabled: true
16-
ExcludedMethods: ['platform', 'for_platform']
15+
IgnoredMethods: ['platform', 'for_platform']
1716

1817
# Lane description and gem lines can be long
1918
Layout/LineLength:

.swiftlint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
disabled_rules:
2+
- identifier_name
3+
- statement_position
4+
- todo
5+
6+
line_length: 300
7+
8+
trailing_whitespace:
9+
ignores_empty_lines: true
10+
severity: warning
11+
12+
nesting:
13+
type_level: 2
14+
15+
excluded:
16+
- .build
17+
- vendor

Demo/Demo.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Version information
2-
MARKETING_VERSION = 3.2.1
2+
MARKETING_VERSION = 3.2.2
33

44
// Deployment targets
55
IPHONEOS_DEPLOYMENT_TARGET = 12.0

Gemfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ source 'https://rubygems.org'
88

99
gem 'fastlane'
1010
gem 'xcode-install'
11-
12-
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
13-
eval_gemfile(plugins_path) if File.exist?(plugins_path)

Gemfile.lock

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (3.0.3)
4+
CFPropertyList (3.0.5)
5+
rexml
56
addressable (2.8.0)
67
public_suffix (>= 2.0.2, < 5.0)
78
artifactory (3.0.15)
89
atomos (0.1.3)
910
aws-eventstream (1.2.0)
10-
aws-partitions (1.502.0)
11-
aws-sdk-core (3.121.0)
11+
aws-partitions (1.554.0)
12+
aws-sdk-core (3.126.0)
1213
aws-eventstream (~> 1, >= 1.0.2)
13-
aws-partitions (~> 1, >= 1.239.0)
14+
aws-partitions (~> 1, >= 1.525.0)
1415
aws-sigv4 (~> 1.1)
1516
jmespath (~> 1.0)
16-
aws-sdk-kms (1.48.0)
17-
aws-sdk-core (~> 3, >= 3.120.0)
17+
aws-sdk-kms (1.54.0)
18+
aws-sdk-core (~> 3, >= 3.126.0)
1819
aws-sigv4 (~> 1.1)
19-
aws-sdk-s3 (1.103.0)
20-
aws-sdk-core (~> 3, >= 3.120.0)
20+
aws-sdk-s3 (1.112.0)
21+
aws-sdk-core (~> 3, >= 3.126.0)
2122
aws-sdk-kms (~> 1)
2223
aws-sigv4 (~> 1.4)
2324
aws-sigv4 (1.4.0)
@@ -34,18 +35,19 @@ GEM
3435
domain_name (0.5.20190701)
3536
unf (>= 0.0.5, < 1.0.0)
3637
dotenv (2.7.6)
37-
emoji_regex (3.2.2)
38-
excon (0.85.0)
39-
faraday (1.7.2)
38+
emoji_regex (3.2.3)
39+
excon (0.91.0)
40+
faraday (1.9.3)
4041
faraday-em_http (~> 1.0)
4142
faraday-em_synchrony (~> 1.0)
4243
faraday-excon (~> 1.1)
43-
faraday-httpclient (~> 1.0.1)
44+
faraday-httpclient (~> 1.0)
45+
faraday-multipart (~> 1.0)
4446
faraday-net_http (~> 1.0)
45-
faraday-net_http_persistent (~> 1.1)
47+
faraday-net_http_persistent (~> 1.0)
4648
faraday-patron (~> 1.0)
4749
faraday-rack (~> 1.0)
48-
multipart-post (>= 1.2, < 3)
50+
faraday-retry (~> 1.0)
4951
ruby2_keywords (>= 0.0.4)
5052
faraday-cookie_jar (0.0.7)
5153
faraday (>= 0.8.0)
@@ -54,14 +56,17 @@ GEM
5456
faraday-em_synchrony (1.0.0)
5557
faraday-excon (1.1.0)
5658
faraday-httpclient (1.0.1)
59+
faraday-multipart (1.0.3)
60+
multipart-post (>= 1.2, < 3)
5761
faraday-net_http (1.0.1)
5862
faraday-net_http_persistent (1.2.0)
5963
faraday-patron (1.0.0)
6064
faraday-rack (1.0.0)
61-
faraday_middleware (1.1.0)
65+
faraday-retry (1.0.3)
66+
faraday_middleware (1.2.0)
6267
faraday (~> 1.0)
63-
fastimage (2.2.5)
64-
fastlane (2.194.0)
68+
fastimage (2.2.6)
69+
fastlane (2.204.3)
6570
CFPropertyList (>= 2.3, < 4.0.0)
6671
addressable (>= 2.8, < 3.0.0)
6772
artifactory (~> 3.0)
@@ -100,12 +105,10 @@ GEM
100105
xcodeproj (>= 1.13.0, < 2.0.0)
101106
xcpretty (~> 0.3.0)
102107
xcpretty-travis-formatter (>= 0.0.3)
103-
fastlane-plugin-trainer (0.4.1)
104-
trainer (>= 0.7.0)
105108
gh_inspector (1.1.3)
106-
google-apis-androidpublisher_v3 (0.11.0)
109+
google-apis-androidpublisher_v3 (0.16.0)
107110
google-apis-core (>= 0.4, < 2.a)
108-
google-apis-core (0.4.1)
111+
google-apis-core (0.4.2)
109112
addressable (~> 2.5, >= 2.5.1)
110113
googleauth (>= 0.16.2, < 2.a)
111114
httpclient (>= 2.8.1, < 3.a)
@@ -114,49 +117,49 @@ GEM
114117
retriable (>= 2.0, < 4.a)
115118
rexml
116119
webrick
117-
google-apis-iamcredentials_v1 (0.7.0)
120+
google-apis-iamcredentials_v1 (0.10.0)
118121
google-apis-core (>= 0.4, < 2.a)
119-
google-apis-playcustomapp_v1 (0.5.0)
122+
google-apis-playcustomapp_v1 (0.7.0)
120123
google-apis-core (>= 0.4, < 2.a)
121-
google-apis-storage_v1 (0.6.0)
124+
google-apis-storage_v1 (0.11.0)
122125
google-apis-core (>= 0.4, < 2.a)
123126
google-cloud-core (1.6.0)
124127
google-cloud-env (~> 1.0)
125128
google-cloud-errors (~> 1.0)
126129
google-cloud-env (1.5.0)
127130
faraday (>= 0.17.3, < 2.0)
128-
google-cloud-errors (1.1.0)
129-
google-cloud-storage (1.34.1)
130-
addressable (~> 2.5)
131+
google-cloud-errors (1.2.0)
132+
google-cloud-storage (1.36.1)
133+
addressable (~> 2.8)
131134
digest-crc (~> 0.4)
132135
google-apis-iamcredentials_v1 (~> 0.1)
133136
google-apis-storage_v1 (~> 0.1)
134137
google-cloud-core (~> 1.6)
135138
googleauth (>= 0.16.2, < 2.a)
136139
mini_mime (~> 1.0)
137-
googleauth (0.17.1)
140+
googleauth (1.1.1)
138141
faraday (>= 0.17.3, < 2.0)
139142
jwt (>= 1.4, < 3.0)
140143
memoist (~> 0.16)
141144
multi_json (~> 1.11)
142145
os (>= 0.9, < 2.0)
143-
signet (~> 0.15)
146+
signet (>= 0.16, < 2.a)
144147
highline (2.0.3)
145148
http-cookie (1.0.4)
146149
domain_name (~> 0.5)
147150
httpclient (2.8.3)
148-
jmespath (1.4.0)
149-
json (2.5.1)
150-
jwt (2.2.3)
151+
jmespath (1.6.0)
152+
json (2.6.1)
153+
jwt (2.3.0)
151154
memoist (0.16.2)
152155
mini_magick (4.11.0)
153-
mini_mime (1.1.1)
156+
mini_mime (1.1.2)
154157
multi_json (1.15.0)
155158
multipart-post (2.0.0)
156159
nanaimo (0.3.0)
157160
naturally (2.2.1)
158161
optparse (0.1.1)
159-
os (1.1.1)
162+
os (1.1.4)
160163
plist (3.6.0)
161164
public_suffix (4.0.6)
162165
rake (13.0.6)
@@ -181,10 +184,7 @@ GEM
181184
terminal-notifier (2.0.0)
182185
terminal-table (1.8.0)
183186
unicode-display_width (~> 1.1, >= 1.1.1)
184-
trailblazer-option (0.1.1)
185-
trainer (0.9.1)
186-
fastlane (>= 2.25.0)
187-
plist (>= 3.1.0, < 4.0.0)
187+
trailblazer-option (0.1.2)
188188
tty-cursor (0.7.1)
189189
tty-screen (0.8.1)
190190
tty-spinner (0.9.3)
@@ -216,7 +216,6 @@ PLATFORMS
216216

217217
DEPENDENCIES
218218
fastlane
219-
fastlane-plugin-trainer
220219
xcode-install
221220

222221
BUNDLED WITH

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import PackageDescription
44

55
struct ProjectSettings {
6-
static let marketingVersion: String = "3.2.1"
6+
static let marketingVersion: String = "3.2.2"
77
}
88

99
let package = Package(

Sources/SRGIdentity/SRGIdentityLoginViewController~tvos.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ - (void)viewDidDisappear:(BOOL)animated
9393
- (void)loadCredentialsStackViewInView:(UIView *)view
9494
{
9595
UIStackView *credentialsStackView = [[UIStackView alloc] init];
96-
credentialsStackView.translatesAutoresizingMaskIntoConstraints = NO;
9796
credentialsStackView.axis = UILayoutConstraintAxisVertical;
9897
credentialsStackView.alignment = UIStackViewAlignmentCenter;
9998
credentialsStackView.distribution = UIStackViewDistributionFill;
10099
credentialsStackView.spacing = 40.f;
101100
[view addSubview:credentialsStackView];
102101

102+
credentialsStackView.translatesAutoresizingMaskIntoConstraints = NO;
103103
[NSLayoutConstraint activateConstraints:@[
104104
[credentialsStackView.centerXAnchor constraintEqualToAnchor:view.centerXAnchor],
105105
[credentialsStackView.centerYAnchor constraintEqualToAnchor:view.centerYAnchor],
@@ -125,10 +125,10 @@ - (void)loadFixedSpacerWithHeight:(CGFloat)height inStackView:(UIStackView *)sta
125125
{
126126
// Zero height, but adds two stack spacing contributions and thus some spacing
127127
UIView *spacerView = [[UIView alloc] init];
128-
spacerView.translatesAutoresizingMaskIntoConstraints = NO;
129128
spacerView.backgroundColor = UIColor.clearColor;
130129
[stackView addArrangedSubview:spacerView];
131130

131+
spacerView.translatesAutoresizingMaskIntoConstraints = NO;
132132
[NSLayoutConstraint activateConstraints:@[
133133
[spacerView.widthAnchor constraintEqualToAnchor:stackView.widthAnchor],
134134
[spacerView.heightAnchor constraintEqualToConstant:height]
@@ -138,7 +138,6 @@ - (void)loadFixedSpacerWithHeight:(CGFloat)height inStackView:(UIStackView *)sta
138138
- (void)loadEmailAddressTextFieldInStackView:(UIStackView *)stackView
139139
{
140140
UITextField *emailAddressTextField = [[UITextField alloc] init];
141-
emailAddressTextField.translatesAutoresizingMaskIntoConstraints = NO;
142141
emailAddressTextField.text = self.emailAddress;
143142
emailAddressTextField.placeholder = SRGIdentityLocalizedString(@"Email address", @"Email address text field placeholder on Apple TV");
144143
emailAddressTextField.font = [SRGFont fontWithStyle:SRGFontStyleButton];
@@ -148,6 +147,7 @@ - (void)loadEmailAddressTextFieldInStackView:(UIStackView *)stackView
148147
[stackView addArrangedSubview:emailAddressTextField];
149148
self.emailAddressTextField = emailAddressTextField;
150149

150+
emailAddressTextField.translatesAutoresizingMaskIntoConstraints = NO;
151151
[NSLayoutConstraint activateConstraints:@[
152152
[emailAddressTextField.widthAnchor constraintEqualToAnchor:stackView.widthAnchor],
153153
[emailAddressTextField.heightAnchor constraintEqualToConstant:70.f]
@@ -157,7 +157,6 @@ - (void)loadEmailAddressTextFieldInStackView:(UIStackView *)stackView
157157
- (void)loadPasswordTextFieldInStackView:(UIStackView *)stackView
158158
{
159159
UITextField *passwordTextField = [[UITextField alloc] init];
160-
passwordTextField.translatesAutoresizingMaskIntoConstraints = NO;
161160
passwordTextField.delegate = self;
162161
passwordTextField.placeholder = SRGIdentityLocalizedString(@"Password", @"Password text field placeholder on Apple TV");
163162
passwordTextField.font = [SRGFont fontWithStyle:SRGFontStyleButton];
@@ -167,6 +166,7 @@ - (void)loadPasswordTextFieldInStackView:(UIStackView *)stackView
167166
[stackView addArrangedSubview:passwordTextField];
168167
self.passwordTextField = passwordTextField;
169168

169+
passwordTextField.translatesAutoresizingMaskIntoConstraints = NO;
170170
[NSLayoutConstraint activateConstraints:@[
171171
[passwordTextField.widthAnchor constraintEqualToAnchor:stackView.widthAnchor],
172172
[passwordTextField.heightAnchor constraintEqualToConstant:70.f]
@@ -186,12 +186,12 @@ - (void)loadLoginButtonInStackView:(UIStackView *)stackView
186186
- (void)loadInstructionsStackViewInView:(UIView *)view
187187
{
188188
UIStackView *instructionsStackView = [[UIStackView alloc] init];
189-
instructionsStackView.translatesAutoresizingMaskIntoConstraints = NO;
190189
instructionsStackView.axis = UILayoutConstraintAxisVertical;
191190
instructionsStackView.alignment = UIStackViewAlignmentFill;
192191
instructionsStackView.distribution = UIStackViewDistributionFill;
193192
[view addSubview:instructionsStackView];
194193

194+
instructionsStackView.translatesAutoresizingMaskIntoConstraints = NO;
195195
[NSLayoutConstraint activateConstraints:@[
196196
[instructionsStackView.centerXAnchor constraintEqualToAnchor:view.centerXAnchor],
197197
[instructionsStackView.bottomAnchor constraintEqualToAnchor:view.bottomAnchor constant:-38.f],

Sources/SRGIdentity/SRGIdentityModalTransition~ios.m

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ - (void)setupTransition:(id<UIViewControllerContextTransitioning>)transitionCont
5656

5757
UIView *containerView = [transitionContext containerView];
5858

59-
UIView *dimmingView = [[UIView alloc] initWithFrame:containerView.bounds];
60-
dimmingView.frame = containerView.bounds;
61-
dimmingView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
59+
UIView *dimmingView = [[UIView alloc] init];
6260
dimmingView.backgroundColor = [UIColor colorWithWhite:0.f alpha:0.3f];
6361
self.dimmingView = dimmingView;
6462

@@ -78,6 +76,14 @@ - (void)setupTransition:(id<UIViewControllerContextTransitioning>)transitionCont
7876
[containerView insertSubview:toView atIndex:0];
7977
}
8078

79+
dimmingView.translatesAutoresizingMaskIntoConstraints = NO;
80+
[NSLayoutConstraint activateConstraints:@[
81+
[dimmingView.topAnchor constraintEqualToAnchor:containerView.topAnchor],
82+
[dimmingView.bottomAnchor constraintEqualToAnchor:containerView.bottomAnchor],
83+
[dimmingView.leadingAnchor constraintEqualToAnchor:containerView.leadingAnchor],
84+
[dimmingView.trailingAnchor constraintEqualToAnchor:containerView.trailingAnchor]
85+
]];
86+
8187
[self updateTransition:transitionContext withProgress:0.f];
8288
}
8389

Sources/SRGIdentity/SRGIdentityWebViewController~ios.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ - (void)viewWillLayoutSubviews
116116

117117
- (void)layoutWebViewInView:(UIView *)view
118118
{
119-
WKWebView *webView = [[WKWebView alloc] initWithFrame:view.bounds];
119+
WKWebView *webView = [[WKWebView alloc] init];
120120
webView.backgroundColor = UIColor.clearColor;
121-
webView.translatesAutoresizingMaskIntoConstraints = NO;
122121
webView.navigationDelegate = self;
123122
webView.scrollView.delegate = self;
124123
[view addSubview:webView];
125124
self.webView = webView;
126125

126+
webView.translatesAutoresizingMaskIntoConstraints = NO;
127127
[NSLayoutConstraint activateConstraints:@[
128128
[webView.leadingAnchor constraintEqualToAnchor:view.safeAreaLayoutGuide.leadingAnchor],
129129
[webView.trailingAnchor constraintEqualToAnchor:view.safeAreaLayoutGuide.trailingAnchor],
@@ -135,10 +135,10 @@ - (void)layoutWebViewInView:(UIView *)view
135135
- (void)layoutProgressViewInView:(UIView *)view
136136
{
137137
UIProgressView *progressView = [[UIProgressView alloc] init];
138-
progressView.translatesAutoresizingMaskIntoConstraints = NO;
139138
[view addSubview:progressView];
140139
self.progressView = progressView;
141140

141+
progressView.translatesAutoresizingMaskIntoConstraints = NO;
142142
[NSLayoutConstraint activateConstraints:@[
143143
[progressView.topAnchor constraintEqualToAnchor:view.safeAreaLayoutGuide.topAnchor],
144144
[progressView.leadingAnchor constraintEqualToAnchor:view.leadingAnchor],
@@ -149,12 +149,12 @@ - (void)layoutProgressViewInView:(UIView *)view
149149
- (void)layoutErrorLabelInView:(UIView *)view
150150
{
151151
UILabel *errorLabel = [[UILabel alloc] init];
152-
errorLabel.translatesAutoresizingMaskIntoConstraints = NO;
153152
errorLabel.font = [UIFont systemFontOfSize:20.f];
154153
errorLabel.textColor = UIColor.grayColor;
155154
[view addSubview:errorLabel];
156155
self.errorLabel = errorLabel;
157156

157+
errorLabel.translatesAutoresizingMaskIntoConstraints = NO;
158158
[NSLayoutConstraint activateConstraints:@[
159159
[errorLabel.centerYAnchor constraintEqualToAnchor:view.safeAreaLayoutGuide.centerYAnchor],
160160
[errorLabel.leadingAnchor constraintEqualToAnchor:view.safeAreaLayoutGuide.leadingAnchor constant:40.f],

0 commit comments

Comments
 (0)