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

Commit 5ea0d99

Browse files
Stop passing Step and Flow as strings and use the actual type.
1 parent bce1cff commit 5ea0d99

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

WordPressAuthenticator/Authenticator/WordPressAuthenticatorDelegateProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public protocol WordPressAuthenticatorDelegate: AnyObject {
6868
/// - lastStep: Last `Step` tracked in `AuthenticatorAnalyticsTracker`
6969
/// - lastFlow: Last `Flow` tracked in `AuthenticatorAnalyticsTracker`
7070
///
71-
func presentSupport(from sourceViewController: UIViewController, sourceTag: WordPressSupportSourceTag, lastStep: String, lastFlow: String)
71+
func presentSupport(from sourceViewController: UIViewController, sourceTag: WordPressSupportSourceTag, lastStep: AuthenticatorAnalyticsTracker.Step, lastFlow: AuthenticatorAnalyticsTracker.Flow)
7272

7373
/// Indicates if the Login Epilogue should be displayed.
7474
///

WordPressAuthenticator/Extensions/FancyAlertViewController+LoginError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ extension FancyAlertViewController {
122122
}
123123

124124
let state = AuthenticatorAnalyticsTracker.shared.state
125-
authDelegate.presentSupport(from: sourceViewController, sourceTag: sourceTag, lastStep: state.lastStep.rawValue, lastFlow: state.lastFlow.rawValue)
125+
authDelegate.presentSupport(from: sourceViewController, sourceTag: sourceTag, lastStep: state.lastStep, lastFlow: state.lastFlow)
126126
}
127127
}
128128

WordPressAuthenticator/NUX/NUXViewControllerBase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,6 @@ extension NUXViewControllerBase where Self: UIViewController, Self: UIViewContro
320320
}
321321

322322
let state = AuthenticatorAnalyticsTracker.shared.state
323-
WordPressAuthenticator.shared.delegate?.presentSupport(from: navigationController, sourceTag: source, lastStep: state.lastStep.rawValue, lastFlow: state.lastFlow.rawValue)
323+
WordPressAuthenticator.shared.delegate?.presentSupport(from: navigationController, sourceTag: source, lastStep: state.lastStep, lastFlow: state.lastFlow)
324324
}
325325
}

0 commit comments

Comments
 (0)