Skip to content

feat(v2.3): Part C — Settings IAP + HomeView 5th card + boot order - #84

Merged
wei18 merged 1 commit into
mainfrom
feat/v2.3-part-c-iap-boot
May 21, 2026
Merged

wei18 merged 1 commit into
mainfrom
feat/v2.3-part-c-iap-boot

Conversation

@wei18

@wei18 wei18 commented May 21, 2026

Copy link
Copy Markdown
Owner

v2.3.6 + v2.3.7 — final Sudoku v2 wiring before TestFlight.

Summary

Verification

  • swift build clean (both packages)
  • Filtered tests (Settings|HomeViewRemoveAds|BootOrder): 25/25 pass
  • 3 new snapshot baselines auto-recorded; 0 churn

§未決

  1. Toast surface (deferred to v2.4)
  2. purchaseUpdates() out-of-band refund subscription (deferred)
  3. removeAdsProductId duplicated SudokuUI↔IAPStoreKit2 (frozen MonetizationCore)
  4. iPad/macOS Settings snapshot coverage (iPhone-light only)

After this lands

  • v2.3 Phase complete
  • Next: v2.4 follow-up (privacy manifest test refinements, IAP product reg in ASC)
  • v2.5: TestFlight + real-device UMP/ATT verification

v2.3.6 — Settings IAP + HomeView Remove Ads card
- NEW SudokuUI/Components/MonetizationStateController.swift (~133 lines)
  @observable @mainactor shared controller. State: hasPurchasedRemoveAds,
  availableProducts, purchaseInFlight, restoreInFlight, latestMessage.
  bootstrap() reads from AdGateStateStore + IAPClient.availableProducts.
  purchaseRemoveAds() / restorePurchases() shared by Settings rows +
  HomeView 5th card. On success: AdGate.recordPurchase() so banner
  suppression aligns immediately.
- SettingsView: new Section with RemoveAdsRow (unpurchased only) +
  RestorePurchasesRow (always). Spinner during in-flight; Label result.
- HomeView: 5th RemoveAdsCard (unpurchased only), difficulty.medium clay
  accent (commerce intent per PR #78 tokens).
- RootView / RouteFactory threaded with monetizationController.

v2.3.7 — Boot order: UMP → ATT → AdMob init
- NEW AppMonetizationKit/AdsAdMob/MonetizationBootCoordinator.swift (~144
  lines): public actor + closure-based MonetizationBootBridges seam.
  Live wiring calls UMPConsentPresenter → ATTPresenter → adProvider
  sequentially; each step independent, throws never abort sequence.
- AppComposition.bootMonetization() with Telemetry fan-out logging.
- SudokuApp.swift root scene .task wires the boot.

Tests +22 (11 SettingsIAPRow + 4 HomeViewRemoveAdsCard + 7 BootOrder).
Filtered: 25/25 green. Build clean. 3 new snapshot baselines auto-recorded.

§未決 (impl-notes)
- Toast surface deferred (Form Label for now)
- purchaseUpdates() out-of-band refund subscription deferred
- removeAdsProductId duplicated SudokuUI↔IAPStoreKit2 (frozen MonetizationCore)
- iPad/macOS Settings snapshot coverage

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@wei18
wei18 merged commit ca1d08c into main May 21, 2026
@wei18
wei18 deleted the feat/v2.3-part-c-iap-boot branch May 21, 2026 17:49
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