-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from wordpress-mobile/merge/uls-changes
Merge Unified Login & Signup changes from WPAndroid
- Loading branch information
Showing
65 changed files
with
1,727 additions
and
970 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
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
54 changes: 0 additions & 54 deletions
54
WordPressLoginFlow/src/main/java/org/wordpress/android/login/LoginAnalyticsListener.java
This file was deleted.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
WordPressLoginFlow/src/main/java/org/wordpress/android/login/LoginAnalyticsListener.kt
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,80 @@ | ||
package org.wordpress.android.login | ||
|
||
import java.util.Locale | ||
|
||
interface LoginAnalyticsListener { | ||
fun trackAnalyticsSignIn(isWpcomLogin: Boolean) | ||
fun trackCreatedAccount(username: String?, email: String?, source: CreatedAccountSource) | ||
fun trackEmailFormViewed() | ||
fun trackInsertedInvalidUrl() | ||
fun trackLoginAccessed() | ||
fun trackLoginAutofillCredentialsFilled() | ||
fun trackLoginAutofillCredentialsUpdated() | ||
fun trackLoginFailed(errorContext: String?, errorType: String?, errorDescription: String?) | ||
fun trackLoginForgotPasswordClicked() | ||
fun trackLoginMagicLinkExited() | ||
fun trackLoginMagicLinkOpened() | ||
fun trackLoginMagicLinkOpenEmailClientClicked() | ||
fun trackLoginMagicLinkSucceeded() | ||
fun trackLoginSocial2faNeeded() | ||
fun trackLoginSocialSuccess() | ||
fun trackMagicLinkFailed(properties: Map<String, *>) | ||
fun trackSignupMagicLinkOpenEmailClientViewed() | ||
fun trackLoginMagicLinkOpenEmailClientViewed() | ||
fun trackMagicLinkRequested() | ||
fun trackMagicLinkRequestFormViewed() | ||
fun trackPasswordFormViewed() | ||
fun trackSignupCanceled() | ||
fun trackSignupEmailButtonTapped() | ||
fun trackSignupEmailToLogin() | ||
fun trackSignupGoogleButtonTapped() | ||
fun trackSignupMagicLinkFailed() | ||
fun trackSignupMagicLinkOpened() | ||
fun trackSignupMagicLinkOpenEmailClientClicked() | ||
fun trackSignupMagicLinkSent() | ||
fun trackSignupMagicLinkSucceeded() | ||
fun trackSignupSocialAccountsNeedConnecting() | ||
fun trackSignupSocialButtonFailure() | ||
fun trackSignupSocialToLogin() | ||
fun trackSignupTermsOfServiceTapped() | ||
fun trackSocialButtonStart() | ||
fun trackSocialAccountsNeedConnecting() | ||
fun trackSocialButtonClick() | ||
fun trackSocialButtonFailure() | ||
fun trackSocialConnectFailure() | ||
fun trackSocialConnectSuccess() | ||
fun trackSocialErrorUnknownUser() | ||
fun trackSocialFailure(errorContext: String?, errorType: String?, errorDescription: String?) | ||
fun trackTwoFactorFormViewed() | ||
fun trackUrlFormViewed() | ||
fun trackUrlHelpScreenViewed() | ||
fun trackUsernamePasswordFormViewed() | ||
fun trackWpComBackgroundServiceUpdate(properties: Map<String, *>) | ||
fun trackConnectedSiteInfoRequested(url: String?) | ||
fun trackConnectedSiteInfoFailed(url: String?, errorContext: String?, errorType: String?, errorDescription: String?) | ||
fun trackConnectedSiteInfoSucceeded(properties: Map<String, *>) | ||
fun trackFailure(message: String?) | ||
fun trackSendCodeWithTextClicked() | ||
fun trackSubmit2faCodeClicked() | ||
fun trackSubmitClicked() | ||
fun trackRequestMagicLinkClick() | ||
fun trackLoginWithPasswordClick() | ||
fun trackShowHelpClick() | ||
fun trackDismissDialog() | ||
fun trackSelectEmailField() | ||
fun trackPickEmailFromHint() | ||
fun trackShowEmailHints() | ||
fun emailFormScreenResumed() | ||
fun trackEmailSignupConfirmationViewed() | ||
fun trackSocialSignupConfirmationViewed() | ||
fun trackCreateAccountClick() | ||
|
||
enum class CreatedAccountSource { | ||
EMAIL, | ||
GOOGLE; | ||
|
||
fun asPropertyMap() = hashMapOf<String, Any>( | ||
"source" to name.toLowerCase(Locale.ROOT) | ||
) | ||
} | ||
} |
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
Oops, something went wrong.