-
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.
Add app switch analytics calls for Venmo (#1218)
* WIP - Add app switch analytics calls for Venmo * refactoring * fix tests * Add url parameter for passing the appSwitchUrl for Venmo analytic events * Save Venmo URL to VenmoRepository and send value with Venmo analytic events * Venmo Analytics - add additional app switch and handle return events --------- Co-authored-by: Sai <[email protected]>
- Loading branch information
Showing
11 changed files
with
401 additions
and
156 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
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
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
22 changes: 22 additions & 0 deletions
22
Venmo/src/main/java/com/braintreepayments/api/venmo/VenmoRepository.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,22 @@ | ||
package com.braintreepayments.api.venmo | ||
|
||
import android.net.Uri | ||
|
||
/** | ||
* An internal, in memory repository that holds properties specific for the Venmo payment flow. | ||
*/ | ||
internal class VenmoRepository { | ||
|
||
/** | ||
* The Venmo URL that is used to load the CCT or app switch into the Venmo payment flow. | ||
*/ | ||
var venmoUrl: Uri? = null | ||
|
||
companion object { | ||
|
||
/** | ||
* Singleton instance of the VenmoRepository. | ||
*/ | ||
val instance: VenmoRepository by lazy { VenmoRepository() } | ||
} | ||
} |
Oops, something went wrong.