-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Venmo with FPTI Analytics Events (#846)
* Replace Venmo analytics with FPTI events * Update unit tests * Add new unit tests * Fix unit tests * Convert VenmoAnalytics to class * Remove companion object * Add helper analtyics methods * Update app switch failure analytics * Remove extra analytics event
- Loading branch information
Showing
4 changed files
with
124 additions
and
110 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
Venmo/src/main/java/com/braintreepayments/api/VenmoAnalytics.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package com.braintreepayments.api | ||
|
||
internal enum class VenmoAnalytics(@JvmField val event: String) { | ||
internal object VenmoAnalytics { | ||
|
||
// Conversion Events | ||
TOKENIZE_STARTED("venmo:tokenize:started"), | ||
TOKENIZE_FAILED("venmo:tokenize:failed"), | ||
TOKENIZE_SUCCEEDED("venmo:tokenize:succeeded"), | ||
APP_SWITCH_CANCELED("venmo:tokenize:app-switch:canceled"), | ||
const val TOKENIZE_STARTED = "venmo:tokenize:started" | ||
const val TOKENIZE_FAILED = "venmo:tokenize:failed" | ||
const val TOKENIZE_SUCCEEDED = "venmo:tokenize:succeeded" | ||
const val APP_SWITCH_CANCELED = "venmo:tokenize:app-switch:canceled" | ||
|
||
// Additional Detail Events | ||
APP_SWITCH_SUCCEEDED("venmo:tokenize:app-switch:succeeded"), | ||
APP_SWITCH_FAILED("venmo:tokenize:app-switch:failed") | ||
const val APP_SWITCH_SUCCEEDED = "venmo:tokenize:app-switch:succeeded" | ||
const val APP_SWITCH_FAILED = "venmo:tokenize:app-switch:failed" | ||
} |
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
Oops, something went wrong.