Skip to content

feat(v2): AppMonetizationKit foundations — Phase v2.0 - #58

Merged
wei18 merged 1 commit into
mainfrom
feat/v2.0-monetization-kit-foundations
May 21, 2026
Merged

wei18 merged 1 commit into
mainfrom
feat/v2.0-monetization-kit-foundations

Conversation

@wei18

@wei18 wei18 commented May 21, 2026

Copy link
Copy Markdown
Owner

Phase v2.0 of docs/v2/plan.md — 5 steps in 1 PR.

Package skeleton + MonetizationCore protocols + Testing fakes + AdGate frequency logic. 36/36 tests, 0 warnings, Swift 6 strict.

§未決 (4 items in impl-notes): design.md §How.3 @mainactor contradiction; recordRefund() to v2.1; firstLaunchAt to v2.3; AdPresentationAnchor @unchecked invariant.

🤖 Claude Code

Phase v2.0 complete. AppMonetizationKit package with MonetizationCore
protocols + Testing fakes + AdGate frequency logic. 36 tests, 0 warnings,
Swift 6 strict.

- MonetizationCore (zero external dep): AdProvider / IAPClient protocols,
  AdGate actor with 7-day grace + 1/day max + dismissed-skip policy,
  AdGateState Codable, AdGateStateStore protocol, AdPresentationAnchor
  cross-platform wrapper.
- AdsAdMob + IAPStoreKit2: anchor-only (impl in v2.1 / v2.2).
- MonetizationTesting: scriptable Fake actors for all 3 protocols.

§未決 (4 follow-up items in impl-notes):
1. design.md §How.3 says @mainactor actor AdGate — Swift contradiction;
   impl dropped @mainactor.
2. recordRefund() deferred to v2.1 IAPPurchaseEvent.revoked handler.
3. firstLaunchAt seeding is LiveMonetizationStateStore's job (v2.3).
4. AdPresentationAnchor uses @unchecked Sendable; invariant documented.

File-level swiftlint disables added for test fixture files using short
locals + Package.swift trailing commas (same pattern as ASCRegister).

impl-notes: meetings/2026-05-21_v2.0-monetization-kit-foundations.impl-notes.md
@wei18
wei18 merged commit 544f32b into main May 21, 2026
@wei18
wei18 deleted the feat/v2.0-monetization-kit-foundations branch May 21, 2026 07:25
wei18 added a commit that referenced this pull request May 23, 2026
Tuist StoreKit (Project.swift): adds RunActionOptions.storeKitConfigurationPath
pointing at App/Resources/Sudoku.storekit. tuist generate now writes
StoreKitConfigurationFileReference into Sudoku.xcscheme — no manual Xcode
Scheme editor step per clone (task #58). Resolves v2.4-2.5-prep §未決 #1.

ASC App Privacy handoff (docs/v2/v2.5-readiness.md): research subagent
confirmed App Store Connect REST API has NO endpoint for the App Privacy
questionnaire. Fastlane workarounds require Apple-ID session cookies
(security downgrade vs .p8 JWT). Added manual handoff section with:
- ASC navigation path + URL pattern
- Field-by-field checklist matching PrivacyInfo.xcprivacy
- Re-trigger conditions
- Both en + zh-Hant ASC labels

References:
- meetings/2026-05-23_tuist-storekit-scheme.impl-notes.md
- meetings/2026-05-23_asc-app-privacy-api-research.impl-notes.md

Co-authored-by: Claude Opus 4.7 <[email protected]>
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