Repository navigation
feat(ascregister): iap screenshots — upload IAP review screenshot via ASC API - #913
Merged
Merged
Conversation
… ASC API
Closes the last IAP-automation gap: the App Store Review Screenshot that
blocks an IAP from leaving "Missing Metadata" was the one remaining web-UI
step. New `ASCRegister iap screenshots --iap-id <id> --screenshot <png>
--i-am-sure` reserves→PUTs→commits to /v1/inAppPurchaseAppStoreReviewScreenshots,
reusing the appScreenshots upload primitives (UploadOperation.parse,
uploadPart, AssetChecksum) — no fork of the shipped metadata path.
Idempotent: GET /v2/inAppPurchases/{id}/appStoreReviewScreenshot → skip when
COMPLETE + checksum matches, evict-and-replace on drift, fresh upload
otherwise. WRITE gated behind --i-am-sure (dry-run issues only the GET).
Endpoint shapes verified against Apple's ASC OpenAPI (aaronsky/asc-swift
generated client). 9 offline URLProtocol-stub tests assert the full request
bodies + method sequences.
Verified live 2026-07-20 on both apps (Sudoku IAP + Minesweeper IAP):
reserve→PUT→commit → assetDeliveryState COMPLETE, re-run SKIPs on match.
Dual CR: APPROVE x2 (one cosmetic — empty-uploadOperations reuses
CLIError.invalidValue; left as-is, a can't-happen server anomaly).
asc-ops-handoff skill updated: IAP review screenshot moved from user-owned
to Leader-orderable; only price + Ready-to-Submit remain web-UI.
Co-Authored-By: Claude Fable 5 <[email protected]>
wei18
enabled auto-merge (squash)
July 20, 2026 08:37
This was referenced Jul 20, 2026
Closed
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
New
ASCRegister iap screenshots --iap-id <id> --screenshot <png> --i-am-sureuploads an IAP App Store Review Screenshot to App Store Connect (reserve→PUT→commit against/v1/inAppPurchaseAppStoreReviewScreenshots), reusing the existing appScreenshots upload primitives. Idempotent (GET → skip-if-matching / evict-and-replace-on-drift). Also updates the asc-ops-handoff skill to reflect that this closes the last IAP web-UI gap.Why
The review screenshot was the one metadata item blocking both Remove-Ads IAPs from leaving "Missing Metadata" (owner-reported, part of #911's ASC-side root cause). It was the last documented user-owned IAP step; the reserve→PUT→commit machinery already existed for app-listing screenshots, so this is a thin new endpoint on proven plumbing.
Verification
swift test --package-path Packages/ASCRegisterKit→ 169 pass (9 new offline URLProtocol-stub tests asserting full request bodies + method sequences)swiftlint --strict0 violations on all changed filesassetDeliveryState=COMPLETE, re-run correctly SKIPs on checksum matchPart of #911 (the ASC-side metadata gap; pricing + Ready-to-Submit remain owner web-UI steps).
🤖 Generated with Claude Code