Skip to content

feat(ascregister): iap screenshots — upload IAP review screenshot via ASC API - #913

Merged
wei18 merged 1 commit into
mainfrom
feat/ascregister-iap-review-screenshots
Jul 20, 2026
Merged

wei18 merged 1 commit into
mainfrom
feat/ascregister-iap-review-screenshots

Conversation

@wei18

@wei18 wei18 commented Jul 20, 2026

Copy link
Copy Markdown
Owner

What

New ASCRegister iap screenshots --iap-id <id> --screenshot <png> --i-am-sure uploads 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 --strict 0 violations on all changed files
  • Endpoint shapes verified against Apple's ASC OpenAPI (aaronsky/asc-swift generated client), not just assumed
  • Verified live 2026-07-20 on both apps: reserve→PUT→commit → assetDeliveryState=COMPLETE, re-run correctly SKIPs on checksum match
  • Dual CR: APPROVE ×2 (one non-blocking cosmetic noted in commit)

Part of #911 (the ASC-side metadata gap; pricing + Ready-to-Submit remain owner web-UI steps).

🤖 Generated with Claude Code

… 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
wei18 enabled auto-merge (squash) July 20, 2026 08:37
@wei18
wei18 merged commit 08ff313 into main Jul 20, 2026
5 checks passed
@wei18
wei18 deleted the feat/ascregister-iap-review-screenshots branch July 20, 2026 08:38
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.

1 participant