Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 5867587

Browse files
authored
Merge pull request #219 from wordpress-mobile/issue/218-remove-showGoogle
Remove segue `.showGoogle`
2 parents a6bfbe2 + 4b8f01e commit 5867587

File tree

7 files changed

+22
-19
lines changed

7 files changed

+22
-19
lines changed

WordPressAuthenticator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressAuthenticator"
3-
s.version = "1.12.0-beta.4"
3+
s.version = "1.12.0-beta.5"
44
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."
55

66
s.description = <<-DESC

WordPressAuthenticator/NUX/NUXViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ open class NUXViewController: UIViewController, NUXViewControllerBase, UIViewCon
2727
public enum SegueIdentifier: String {
2828
case showSignupMethod
2929
case showSigninV2
30-
case showGoogle
3130
case showURLUsernamePassword
3231
case showWPUsernamePassword
3332
case showSelfHostedLogin

WordPressAuthenticator/Signin/Login.storyboard

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
88
</dependencies>
99
<scenes>
10-
<!--googleSignup-->
11-
<scene sceneID="GBa-1v-wvb">
12-
<objects>
13-
<viewControllerPlaceholder storyboardIdentifier="Signup" storyboardName="Signup" referencedIdentifier="googleSignup" id="MEg-KS-Afs" sceneMemberID="viewController"/>
14-
<placeholder placeholderIdentifier="IBFirstResponder" id="bjg-XU-5Rh" userLabel="First Responder" sceneMemberID="firstResponder"/>
15-
</objects>
16-
<point key="canvasLocation" x="1384" y="-231"/>
17-
</scene>
1810
<!--Login Prologue Page View Controller-->
1911
<scene sceneID="Jbm-5H-sqY">
2012
<objects>
@@ -118,7 +110,6 @@
118110
<connections>
119111
<segue destination="IwV-3R-6dB" kind="presentation" identifier="showSignupMethod" id="gD5-d0-X3t"/>
120112
<segue destination="T5n-nb-cOW" kind="show" identifier="showSigninV2" id="nCA-u7-fKm"/>
121-
<segue destination="MEg-KS-Afs" kind="show" identifier="showGoogle" id="aSC-hU-lzE"/>
122113
<segue destination="hed-vB-osh" kind="presentation" identifier="showLoginMethod" id="N3P-wt-Rn3"/>
123114
<segue destination="anK-hg-K4j" kind="show" identifier="showSelfHostedLogin" id="Njv-lY-Lyi"/>
124115
<segue destination="lmD-c6-SLs" kind="show" identifier="showWPComLogin" id="UV4-XI-c0q"/>
@@ -366,7 +357,6 @@
366357
<segue destination="klu-4U-PyL" kind="show" identifier="showSignupEmail" id="dh4-9P-l8W"/>
367358
<segue destination="IwV-3R-6dB" kind="presentation" identifier="showSignupMethod" id="EmH-Av-vhT"/>
368359
<segue destination="T5n-nb-cOW" kind="show" identifier="showSigninV2" id="sIC-Hv-FJw"/>
369-
<segue destination="MEg-KS-Afs" kind="show" identifier="showGoogle" id="HMT-Z5-QHr"/>
370360
<segue destination="SZS-o3-1P7" kind="show" identifier="showURLUsernamePassword" id="4SK-mG-U33"/>
371361
</connections>
372362
</viewController>
@@ -1174,7 +1164,6 @@
11741164
<segue destination="SZS-o3-1P7" kind="show" identifier="showURLUsernamePassword" id="TkG-0R-c3i"/>
11751165
<segue destination="iMi-vX-AxR" kind="show" identifier="showWPUsernamePassword" id="dtm-iK-PLb"/>
11761166
<segue destination="hed-vB-osh" kind="presentation" identifier="showLoginMethod" id="5hL-j3-eMs"/>
1177-
<segue destination="MEg-KS-Afs" kind="show" identifier="showGoogle" id="pe1-D0-Mpg"/>
11781167
<segue destination="lmD-c6-SLs" kind="show" identifier="showWPComLogin" id="8p6-rS-9Ml"/>
11791168
</connections>
11801169
</viewController>
@@ -1462,11 +1451,10 @@
14621451
<segue reference="N3P-wt-Rn3"/>
14631452
<segue reference="Njv-lY-Lyi"/>
14641453
<segue reference="2Of-BA-xqb"/>
1465-
<segue reference="0ao-yi-yZI"/>
1454+
<segue reference="UV4-XI-c0q"/>
14661455
<segue reference="4SK-mG-U33"/>
14671456
<segue reference="nCA-u7-fKm"/>
14681457
<segue reference="swV-lc-6gI"/>
14691458
<segue reference="gD5-d0-X3t"/>
1470-
<segue reference="aSC-hU-lzE"/>
14711459
</inferredMetricsTieBreakers>
14721460
</document>

WordPressAuthenticator/Signin/LoginEmailViewController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,12 @@ open class LoginEmailViewController: LoginViewController, NUXKeyboardResponder {
398398
self?.performSegue(withIdentifier: .showSigninV2, sender: self)
399399
}
400400
vc.googleTapped = { [weak self] in
401-
self?.performSegue(withIdentifier: .showGoogle, sender: self)
401+
guard let toVC = SignupGoogleViewController.instantiate(from: .signup) else {
402+
DDLogError("Failed to navigate to SignupGoogleViewController")
403+
return
404+
}
405+
406+
self?.navigationController?.pushViewController(toVC, animated: true)
402407
}
403408
vc.modalPresentationStyle = .custom
404409
}

WordPressAuthenticator/Signin/LoginPrologueViewController.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,17 @@ class LoginPrologueViewController: LoginViewController {
4747
}
4848
else if let vc = segue.destination as? LoginPrologueSignupMethodViewController {
4949
vc.transitioningDelegate = self
50+
5051
vc.emailTapped = { [weak self] in
5152
self?.performSegue(withIdentifier: .showSigninV2, sender: self)
5253
}
5354
vc.googleTapped = { [weak self] in
54-
self?.performSegue(withIdentifier: .showGoogle, sender: self)
55+
guard let toVC = SignupGoogleViewController.instantiate(from: .signup) else {
56+
DDLogError("Failed to navigate to SignupGoogleViewController")
57+
return
58+
}
59+
60+
self?.navigationController?.pushViewController(toVC, animated: true)
5561
}
5662
vc.appleTapped = { [weak self] in
5763
self?.appleTapped()

WordPressAuthenticator/Signin/LoginSiteAddressViewController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,12 @@ class LoginSiteAddressViewController: LoginViewController, NUXKeyboardResponder
287287
self?.showWPUsernamePassword()
288288
}
289289
vc.googleTapped = { [weak self] in
290-
self?.performSegue(withIdentifier: .showGoogle, sender: self)
290+
guard let toVC = SignupGoogleViewController.instantiate(from: .signup) else {
291+
DDLogError("Failed to navigate to SignupGoogleViewController")
292+
return
293+
}
294+
295+
self?.navigationController?.pushViewController(toVC, animated: true)
291296
}
292297
vc.appleTapped = { [weak self] in
293298
self?.appleTapped()

WordPressAuthenticator/Signup/Signup.storyboard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
<!--Signup Google View Controller-->
138138
<scene sceneID="WBb-bn-nnr">
139139
<objects>
140-
<viewController storyboardIdentifier="googleSignup" id="cgk-WR-8PR" customClass="SignupGoogleViewController" customModule="WordPressAuthenticator" sceneMemberID="viewController">
140+
<viewController storyboardIdentifier="SignupGoogleViewController" id="cgk-WR-8PR" customClass="SignupGoogleViewController" customModule="WordPressAuthenticator" sceneMemberID="viewController">
141141
<view key="view" contentMode="scaleToFill" id="3UA-HJ-Orw">
142142
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
143143
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>

0 commit comments

Comments
 (0)