Skip to content
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

Remove usage of adServicesToken in syncPurchases #4257

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

MarkVillacampa
Copy link
Member

@MarkVillacampa MarkVillacampa commented Sep 10, 2024

Checklist

  • If applicable, unit tests
  • If applicable, create follow-up issues for purchases-android and hybrids

Motivation

The AdServicesToken wasn't being sent to the the post receipt endpoint when syncing purchases, but was marking it as synced, so better to remove it altogether.

Description

Removed usage of adServicesToken in syncPurchases.

The diff is a mess even in split mode. The changes are the same in the syncPurchasesSK1 and syncPurchasesSK2 methods:

  • The following line was removed:
self.attribution.unsyncedAdServicesToken { adServicesToken in
  • The adServicesToken parameter was changed to nil:
adServicesToken: nil

@MarkVillacampa MarkVillacampa added the pr:fix A bug fix label Sep 10, 2024
Copy link
Contributor

@jamesrb1 jamesrb1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiding the whitespace makes the diff very clean. Looks good to me.

image

@MarkVillacampa MarkVillacampa merged commit 659b5de into main Sep 11, 2024
5 checks passed
@MarkVillacampa MarkVillacampa deleted the remove-adservicestoken branch September 11, 2024 09:59
This was referenced Sep 11, 2024
nyeu pushed a commit that referenced this pull request Oct 2, 2024
### Checklist
- [ ] If applicable, unit tests
- [ ] If applicable, create follow-up issues for `purchases-android` and
hybrids

### Motivation
The AdServicesToken wasn't being sent to the the post receipt endpoint
when syncing purchases, but was marking it as synced, so better to
remove it altogether.

### Description
Removed usage of adServicesToken in syncPurchases.

The diff is a mess even in split mode. The changes are the same in the
`syncPurchasesSK1` and `syncPurchasesSK2` methods:

- The following line was removed:

```
self.attribution.unsyncedAdServicesToken { adServicesToken in
```

- The `adServicesToken` parameter was changed to nil:

```
adServicesToken: nil
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants