-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Feature/craig/map auction variant #710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
28a0c70
285a38a
99ac807
441aa01
bbd3618
39b2bcf
802a495
e852ff7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,8 +64,14 @@ class PlayStoreAppReferrerStateListener @Inject constructor( | |
| initialisationStartTime = System.currentTimeMillis() | ||
|
|
||
| if (appReferrerDataStore.referrerCheckedPreviously) { | ||
| referralResult = loadPreviousReferrerData() | ||
| Timber.i("Already inspected this referrer data. Took ${System.currentTimeMillis() - initialisationStartTime}ms to load from disk") | ||
|
|
||
| referralResult = if (appReferrerDataStore.installedFromEuAuction) { | ||
| EuAuctionReferrerFound(fromCache = true) | ||
| } else { | ||
| loadPreviousReferrerData() | ||
| } | ||
|
|
||
| Timber.i("Already inspected this referrer data") | ||
| return | ||
| } | ||
|
|
||
|
|
@@ -87,7 +93,7 @@ class PlayStoreAppReferrerStateListener @Inject constructor( | |
| ReferrerNotFound(fromCache = true) | ||
| } else { | ||
| Timber.i("Already have referrer data from previous run - $suffix") | ||
| ReferrerFound(suffix, fromCache = true) | ||
| CampaignReferrerFound(suffix, fromCache = true) | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -155,11 +161,17 @@ class PlayStoreAppReferrerStateListener @Inject constructor( | |
| private fun referralResultReceived(result: ParsedReferrerResult) { | ||
| referralResult = result | ||
|
|
||
| if (result is ReferrerFound) { | ||
| variantManager.updateAppReferrerVariant(result.campaignSuffix) | ||
| appReferrerDataStore.campaignSuffix = result.campaignSuffix | ||
|
|
||
| when (result) { | ||
| is CampaignReferrerFound -> { | ||
| variantManager.updateAppReferrerVariant(result.campaignSuffix) | ||
| appReferrerDataStore.campaignSuffix = result.campaignSuffix | ||
| } | ||
| is EuAuctionReferrerFound -> { | ||
| variantManager.updateAppReferrerVariant(VariantManager.RESERVED_EU_AUCTION_VARIANT) | ||
CDRussell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| appReferrerDataStore.installedFromEuAuction = true | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it worth adding an
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did wonder about that, too, but decided not to since the |
||
| } | ||
|
|
||
| appReferrerDataStore.referrerCheckedPreviously = true | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.