-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
230 changed files
with
8,721 additions
and
3,907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Authorization/Authorization.xcodeproj.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
Authorization/Authorization/Presentation/AuthorizationAnalytics.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// AuthorizationAnalytics.swift | ||
// Authorization | ||
// | ||
// Created by Stepanok Ivan on 27.06.2023. | ||
// | ||
|
||
import Foundation | ||
|
||
public enum LoginMethod: String { | ||
case password = "Password" | ||
case facebook = "Facebook" | ||
case google = "Google" | ||
case microsoft = "Microsoft" | ||
} | ||
|
||
//sourcery: AutoMockable | ||
public protocol AuthorizationAnalytics { | ||
func setUserID(_ id: String) | ||
func userLogin(method: LoginMethod) | ||
func signUpClicked() | ||
func createAccountClicked() | ||
func registrationSuccess() | ||
func forgotPasswordClicked() | ||
func resetPasswordClicked(success: Bool) | ||
} | ||
|
||
#if DEBUG | ||
class AuthorizationAnalyticsMock: AuthorizationAnalytics { | ||
public func setUserID(_ id: String) {} | ||
public func userLogin(method: LoginMethod) {} | ||
public func signUpClicked() {} | ||
public func createAccountClicked() {} | ||
public func registrationSuccess() {} | ||
public func forgotPasswordClicked() {} | ||
public func resetPasswordClicked(success: Bool) {} | ||
} | ||
#endif |
Oops, something went wrong.