Skip to content

fix(adgate): remove 7-day grace period — banner always shows from first launch - #256

Merged
wei18 merged 3 commits into
mainfrom
fix/remove-7day-grace-period
Jun 2, 2026
Merged

wei18 merged 3 commits into
mainfrom
fix/remove-7day-grace-period

Conversation

@wei18

@wei18 wei18 commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

User spec change 2026-06-02: drop the original "first-7-days no ads" onboarding rule entirely. Banner shows from first launch; 1/day cap + dismissed-that-day skip + Remove Ads IAP override all unchanged.

What changed

Test plan

  • AdGateLogicTests 16/16 pass on branch
  • swift build clean
  • Privacy policy en + zh-Hant copy matches shipped behaviour

Closes #212 with policy inverted from the original ask.

🤖 Generated with Claude Code

…rst launch (#212)

User spec change 2026-06-02: drop the original "first-7-days no ads"
onboarding rule entirely. Banner appears from first launch, capped at
1/day with dismissed-that-day skip and Remove-Ads-IAP override
unchanged.

Code:
- AdGate.gracePeriodDays stays at 0 (was being restored to 7 per
  pre-change #212 spec — that ask is now withdrawn)
- shouldShowBanner() arithmetic branch retained as 0-valued knob so
  re-introducing a grace is one constant flip
- 4 disabled grace-boundary tests removed (no longer policy);
  bannerAlwaysVisibleAfterFirstLaunch smoke test added

Docs (user-facing):
- docs/privacy-policy.md — short notice + en + zh-Hant body updated to
  "Ads appear from first launch" (release-critical legal claim — was
  promising "first 7 days no ads"; would mismatch shipped behaviour)

Docs (internal):
- docs/v2/design.md — rule #6/#7, AdGateOutcome enum comment, the
  inline pseudo-code grace branch, wall-clock-bypass rationale, and
  the §決策 origin table all updated to reflect 0-grace policy
- docs/v2/plan.md — v2.5.2 phase description updated
- docs/v2/v2.5-readiness.md — manual-test checklist trimmed
  (T+0 should show banner; +8-days step removed)
- AdGate.swift inline comments

Tests: 16/16 AdGateLogicTests pass on this branch.

Closes #212 (with the policy spec inverted from the original ask).

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@wei18 wei18 changed the title spec(adgate): remove 7-day grace period — banner always shows from first launch fix(adgate): remove 7-day grace period — banner always shows from first launch Jun 2, 2026
wei18 and others added 2 commits June 2, 2026 18:48
… manifest URL

Pre-existing broken links surfaced by lychee on this PR because the
two files were modified for the gracePeriodDays spec change. None
of these breakages were introduced here; just cleaned up while in
the same diff.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@wei18
wei18 merged commit 1bfeac3 into main Jun 2, 2026
3 checks passed
@wei18
wei18 deleted the fix/remove-7day-grace-period branch June 2, 2026 10:49
wei18 added a commit that referenced this pull request Jun 3, 2026
…et injection

Captures 5 PRs merged today (#256 grace inversion / #257 .minesweeper CK
config / #258 multi-app IAP / #259 MS AppComposition wire / #263 U15
LiveAdMobAdProvider + banner + toast / #264 prod-ID comment scrub /
#265 AdMob secret injection PR1) plus 5 issues filed for follow-up
(#260 #261 #262 #266 #267).

Records decisions, rejected alternatives, Architect review hand-off,
and the spec inversion (7-day grace removed). Notes Iron Law violation
on skill writing + remediation via post-hoc CR.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
wei18 added a commit that referenced this pull request Jun 3, 2026
…ncy (#272)

* docs(v2): refresh v2.5-readiness for xcconfig injection + grace removal

Surfaced by docs-currency CR (2026-06-03). v2.5-readiness.md lagged two
shipped changes: #265 (AdMob build-time xcconfig injection — replaced the
LiveAdMobBridge fatalError Release branch that no longer exists) and #256
(gracePeriodDays = 0 — banner shows from first launch, no 7-day window,
including the App-Review-facing test path). Also notes the xcconfig +
Info.plist $() pattern in foundations.md §7.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* chore(telemetry): add swiftLanguageModes: [.v6] for manifest consistency

Surfaced by config CR: TelemetryKit was the only one of 9 package manifests
omitting `swiftLanguageModes: [.v6]`. Functionally near-equivalent under
swift-tools-version 6.2 (defaults to v6), but aligns with the other 8 so the
language mode is explicit everywhere. Build verified.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
wei18 added a commit that referenced this pull request Jun 3, 2026
…al (#273)

Surfaced by docs-currency CR (2026-06-03). v2.5-readiness.md lagged two
shipped changes: #265 (AdMob build-time xcconfig injection — replaced the
LiveAdMobBridge fatalError Release branch that no longer exists) and #256
(gracePeriodDays = 0 — banner shows from first launch, no 7-day window,
including the App-Review-facing test path). Also notes the xcconfig +
Info.plist $() pattern in foundations.md §7.

Co-authored-by: Claude Opus 4.8 <[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.

RELEASE BLOCKER: restore AdGate.gracePeriodDays from 0 → 7 before v2.5 App Store submission

1 participant