Repository navigation
feat(v2): PR #97 §未決 batch (wall-clock throttle / Fake fan-out / Anchor registry) - #108
Merged
Merged
Conversation
…or registry) 3 deferred items from PR #97 (AppMonetizationKit M+N polish): 1. AdGate.advanceWallClock throttled to ≤1×/6h New lastPersistedWallClock actor var separate from cache high-water mark — throttle gates writes, not cache motion. Tamper-guard remains precise (cache still advances every call). +2 tests. 2. FakeIAPClient.purchaseUpdates() multi-subscriber fan-out [UUID: AsyncStream.Continuation] broadcaster guarded by OSAllocatedUnfairLock. Each call allocates fresh stream + UUID-keyed continuation; onTermination removes entry on cancel/finish. Dropped the precondition-style single-subscriber guard. +2 tests. 3. AdPresentationAnchorRegistry (NEW MonetizationCore actor) register/unregister/resolve/liveEntryCount + WindowRef weak box for Sendable safety. Foundation-only public surface; AdsAdMob casts at call site to UIWindow/NSWindow. +6 tests. Leader-applied test fix: Registry tests originally compiled in isolation but subagent's later edits adjusted the API to accept WindowRef instead of raw AnyObject. Updated test call sites + cast syntax to match the shipped API. Verification: - swift test: 97/97 (was 87, +10: 2 throttle + 2 fake + 6 registry) - AppMonetizationKit isolation: still 1 import GoogleMobileAds hit - swift build clean Co-Authored-By: Claude Opus 4.7 <[email protected]>
wei18
added a commit
that referenced
this pull request
May 23, 2026
Resolves PR #103 §未決. AdMob SPM 11.13.0 → 13.4.0, UMP 2.x → 3.1.0. v13/v3 ship Swift-native API renamed to "comply with Apple's Swift design guidelines" (UMP 3.0.0 release notes). Revert PR #103's v11 ObjC bridge to native Swift: LiveAdMobBridge.swift: - GADMobileAds.sharedInstance() → MobileAds.shared - start completion signature matches v13 UMPConsentPresenter.swift: - UMPConsentInformation.sharedInstance → ConsentInformation.shared - UMPRequestParameters → RequestParameters - UMPConsentForm.loadAndPresentIfRequired → ConsentForm.loadAndPresentIfRequired Package.swift: from: 13.0.0 (mobile-ads), from: 3.0.0 (UMP) Verification: - AppMonetizationKit swift test: 97/97 (no regression vs PR #108) - iOS xcodebuild BUILD SUCCEEDED - macOS xcodebuild BUILD SUCCEEDED (NoopAdProvider path unaffected) - Isolation audit: 1 import GoogleMobileAds hit (LiveAdMobBridge.swift) - .package.resolved + Package.resolved updated to 13.4.0 + 3.1.0 v13 deployment-target floor is iOS 13; we're on iOS 26 far above min. Co-authored-by: Claude Opus 4.7 <[email protected]>
wei18
added a commit
that referenced
this pull request
May 25, 2026
… v2.5 user-owned) Plan.md was still tagged DRAFT/awaiting-v2.0-dispatch despite v2.0–v2.4 having fully shipped across ~15 PRs. Rewrite to align with code: - Add §Status snapshot table (phase × status × PR refs, 75 @test count) - Mark every step with [x]/[~]/[ ] + originating PR for traceability - Add §Phase v2.4★ to backfill audit/polish work shipped after original plan (#97 #101 #102 #103 #106 #108 #109) - Add steps v2.0.6 (anchor registry split) and v2.3.6.1 (MonetizationStateController + ToastController) - Correct existing step prose: StoreKitBridge symmetric split, RootView.init real 6-param signature with 4 optional slots, boot order via MonetizationBootCoordinator, AdMob isolation audit count = 2 files (protocol + live wrapper) - Shrink §v2.5 to phase summary; defer detailed checklist to v2.5-readiness.md (single source of truth) - Add §Decisions D-v2-01..06 capturing execution-phase decisions (AdMob v13/UMP v3, v11 ObjC API, macOS Noop, anchor registry, purchaseUpdates split, RootView optional slots) - Add §下一動作 explicit user-owned next steps 340 → 275 lines. Co-Authored-By: Claude Opus 4.7 <[email protected]>
4 tasks
wei18
added a commit
that referenced
this pull request
May 25, 2026
… v2.5 user-owned) (#130) Plan.md was still tagged DRAFT/awaiting-v2.0-dispatch despite v2.0–v2.4 having fully shipped across ~15 PRs. Rewrite to align with code: - Add §Status snapshot table (phase × status × PR refs, 75 @test count) - Mark every step with [x]/[~]/[ ] + originating PR for traceability - Add §Phase v2.4★ to backfill audit/polish work shipped after original plan (#97 #101 #102 #103 #106 #108 #109) - Add steps v2.0.6 (anchor registry split) and v2.3.6.1 (MonetizationStateController + ToastController) - Correct existing step prose: StoreKitBridge symmetric split, RootView.init real 6-param signature with 4 optional slots, boot order via MonetizationBootCoordinator, AdMob isolation audit count = 2 files (protocol + live wrapper) - Shrink §v2.5 to phase summary; defer detailed checklist to v2.5-readiness.md (single source of truth) - Add §Decisions D-v2-01..06 capturing execution-phase decisions (AdMob v13/UMP v3, v11 ObjC API, macOS Noop, anchor registry, purchaseUpdates split, RootView optional slots) - Add §下一動作 explicit user-owned next steps 340 → 275 lines. Co-authored-by: Claude Opus 4.7 <[email protected]>
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.
Resolves 3 deferred §未決 from PR #97. AdGate wall-clock writes throttled to 6h, FakeIAPClient multi-subscriber, AdPresentationAnchorRegistry actor. swift test 87→97 (+10).