Skip to content

PostReceiptDataOperation: add new testReceiptIdentifier parameter#2722

Merged
NachoSoto merged 7 commits into
update-load-shedder-snapshotfrom
integration-test-idfv
Jul 5, 2023
Merged

PostReceiptDataOperation: add new testReceiptIdentifier parameter#2722
NachoSoto merged 7 commits into
update-load-shedder-snapshotfrom
integration-test-idfv

Conversation

@NachoSoto

@NachoSoto NachoSoto commented Jun 27, 2023

Copy link
Copy Markdown
Contributor

This allows the backend to disambiguate receipts that are coming from different test invocations.

With SKTestSession receipts, the backend has limited information to disambiguate receipts coming from different tests. By adding a new UUID that we can re-generate in each test, we help the backend not mix receipts from separate tests.

Note that the value sent in X-Apple-Device-Identifier is unchanged (and verified with tests) because it's important that this is the real IDFV, since it's used to validate AppleReceipt.sha1Hash.

Depends on https://github.com/RevenueCat/khepri/pull/6183

@NachoSoto NachoSoto added the test label Jun 27, 2023
@NachoSoto NachoSoto requested review from a team and antoniobg June 27, 2023 19:22
@NachoSoto NachoSoto force-pushed the integration-test-idfv branch from e7a0c1f to 28effba Compare June 27, 2023 19:23
Base automatically changed from integration-tests-user-defaults-clearing to main June 27, 2023 20:11
@NachoSoto NachoSoto force-pushed the integration-test-idfv branch from ead9100 to b3e4114 Compare June 27, 2023 20:15
Comment thread Sources/Misc/DangerousSettings.swift Outdated
Comment thread Sources/Networking/CustomerAPI.swift Outdated
Comment thread Sources/Networking/Operations/PostReceiptDataOperation.swift Outdated
@NachoSoto NachoSoto force-pushed the integration-test-idfv branch 2 times, most recently from 67ed552 to 86d1160 Compare June 28, 2023 17:39
@NachoSoto NachoSoto changed the title PostReceiptDataOperation: add new overridable idfv parameter PostReceiptDataOperation: add new testReceiptIdentifier parameter Jun 28, 2023
@NachoSoto NachoSoto force-pushed the integration-test-idfv branch from 86d1160 to 2fc0b6a Compare June 28, 2023 17:42
@NachoSoto NachoSoto force-pushed the integration-test-idfv branch from 2fc0b6a to 901399f Compare June 28, 2023 17:46
case attributes
case aadAttributionToken
case presentedOfferingIdentifier
case testReceiptIdentifier = "receipt_id"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@antoniobg new parameter name. Does this look good?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It does!

@NachoSoto NachoSoto force-pushed the integration-test-idfv branch 2 times, most recently from 1daa39b to ab73061 Compare June 28, 2023 20:36
@NachoSoto

Copy link
Copy Markdown
Contributor Author

Bump @RevenueCat/coresdk

@NachoSoto NachoSoto force-pushed the integration-test-idfv branch from d93bb59 to e7fb8aa Compare July 5, 2023 16:26
@NachoSoto NachoSoto enabled auto-merge (squash) July 5, 2023 16:32
NachoSoto and others added 7 commits July 5, 2023 10:14
…2733)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.23.39.70.cyberlynk.net>
…2734)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.39.184.32.cyberlynk.net>
…2736)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.39.184.87.cyberlynk.net>
…2735)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.39.183.166.cyberlynk.net>
…2737)

Requested by @NachoSoto for
[integration-test-idfv](https://github.com/RevenueCat/purchases-ios/tree/integration-test-idfv)

Co-authored-by: Distiller <distiller@static.38.39.184.105.cyberlynk.net>
@NachoSoto NachoSoto force-pushed the integration-test-idfv branch from e7fb8aa to 159f1c3 Compare July 5, 2023 17:15
@NachoSoto NachoSoto changed the base branch from main to update-load-shedder-snapshot July 5, 2023 17:15
@NachoSoto NachoSoto merged this pull request into update-load-shedder-snapshot Jul 5, 2023
@NachoSoto NachoSoto deleted the integration-test-idfv branch July 5, 2023 17:15
@NachoSoto NachoSoto restored the integration-test-idfv branch July 5, 2023 17:18
@NachoSoto

Copy link
Copy Markdown
Contributor Author

I accidentally merged this in the wrong branch, so re-opened: #2749.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants