Skip to content

cleanup(v2.5): apply deferred CR nits N2+N5+N6 from PR #143 (retry) - #148

Merged
wei18 merged 1 commit into
mainfrom
cleanup/v2.5.2-nits-n2-n5-n6
May 26, 2026
Merged

wei18 merged 1 commit into
mainfrom
cleanup/v2.5.2-nits-n2-n5-n6

Conversation

@wei18

@wei18 wei18 commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

Retry of CR nit cleanup from PR #143. Prior attempts hit worktree-wipe-before-commit footgun twice; this retry uses strict commit-IMMEDIATELY-after-edits discipline + Leader pushes the correct branch ref.

Nits applied

  • N2 — docs/v2/v2.5-readiness.md §v2.5.3 new paired-flip subsection (Info.plist + LiveAdMobBridge production ID swap as one atomic action)
  • N5 — inFlightDelegates.filter { ObjectIdentifier ... } → set.remove(_:) in LiveAdMobBridge.swift. `BannerLoadDelegate: NSObject` so identity hashing works.
  • N6 — audit grep regex updated for Swift 6 access-level imports: `^(internal |private |public |@_implementationOnly |@preconcurrency )*import GoogleMobileAds`. Count corrected 2 檔 → 1 檔 in plan.md (only LiveAdMobBridge has the directive).

3 files, +28/-10.

Validation

  • 8/8 BannerLoad tests pass
  • Audit: `rg '^(internal ...)*import GoogleMobileAds' Packages/` = exactly 1 line
  • Lefthook gitleaks + hygiene + swiftlint pass without `--no-verify` on final commit

Test plan

  • Confirm paired-flip checklist reads as intended
  • CI `swift test` (full suite) exit 0

🤖 Generated with Claude Code

Round-2 CR nits from PR #143:

- N2 (v2.5-readiness.md): split v2.5.3 into "Production AdMob ID paired flip"
  + "Submission steps" subsections; the paired flip checklist makes the
  asymmetric Info.plist / LiveAdMobBridge.swift swap impossible to forget.
- N5 (LiveAdMobBridge.swift): replace ObjectIdentifier-filter with
  set.remove(_:) — BannerLoadDelegate inherits NSObject so Set uses NSObject
  identity hashing (hash + isEqual:) directly. Cosmetic, behaviour-identical.
- N6 (plan.md + v2.5-readiness.md): tighten isolation-audit grep to
  '^(internal |private |public |@_implementationOnly |@preconcurrency )*import GoogleMobileAds'
  so it does not false-positive on doc comments mentioning the import. Also
  correct stale "2 檔" claims — AdMobBridge.swift is protocol-only and does
  not import the SDK; LiveAdMobBridge.swift is the single import site.
@wei18
wei18 merged commit d2c4dfe into main May 26, 2026
@wei18
wei18 deleted the cleanup/v2.5.2-nits-n2-n5-n6 branch May 26, 2026 10:15
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