Skip to content

chore(ci): integrate LicensePlist for Settings.bundle Acknowledgements - #153

Merged
wei18 merged 2 commits into
mainfrom
feat/licenseplist-settings-bundle
May 26, 2026
Merged

wei18 merged 2 commits into
mainfrom
feat/licenseplist-settings-bundle

Conversation

@wei18

@wei18 wei18 commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

Implements user-locked design 2026-05-26 for LicensePlist integration:

  • Output target: Settings.bundle ONLY (iOS standard; appears in Settings.app → Sudoku → Acknowledgements)
  • CI strategy: Generated files `.gitignore`'d; `ci_post_clone.sh` regenerates on every Xcode Cloud build; `license_plist.yml` is source of truth
  • No SwiftUI — no AcknowledgementsView, no SettingsView changes, no snapshot regen

7 files (+121/-1):

  • `.gitignore` — exclude generated `App/Resources/Settings.bundle/`
  • `.mise.toml` — pin `ubi:mono0926/LicensePlist` 3.27.9 with `exe = "license-plist"` override (binary name ≠ repo name)
  • `Project.swift` — Tuist Resources entry via `.glob(pattern: …/**)` (tolerates empty match on fresh clones)
  • `ci_scripts/ci_post_clone.sh` — one-line `license-plist` invocation after `tuist generate`
  • `docs/foundations.md §4` — cross-ref + local-dev expectation note
  • `license_plist.yml` — config: `options:` block + camelCase keys per upstream README
  • `meetings/2026-05-26_licenseplist-settings-bundle.impl-notes.md` — design pivot trace

Code Reviewer verdict: APPROVE-WITH-NITS

0 must-fix. 3 nits, 2 applied inline:

  • ✅ N1 docs/foundations.md §4 — added "本機 dev 不自動重生" sentence
  • ✅ N2 .mise.toml — pin `latest` → `3.27.9` (CI reproducibility)
  • ⏭️ N3 schema URL pinning — optional cosmetic, skipped

CR praise

  • Impl-notes is the gold standard (v1→v2 pivot table, hyphen-vs-camelCase trap, ubi `exe=` rationale, `.glob` design)
  • `.glob(pattern: …/**)` over string literal prevents tuist crash on fresh clones
  • Surgical scope, no collateral edits

v2.5★ ship requirement

This closes the `docs/foundations.md §Backlog` LicensePlist entry — needed before v2 ships to App Store (third-party SDK license disclosure per Apple guidelines).

Closes

Test plan

  • CI: Xcode Cloud next build runs `ci_post_clone.sh` → Settings.bundle gets generated
  • After merge: TestFlight build inspect Settings.app → Sudoku → Acknowledgements page populated
  • Future SPM dep bump → CI auto-regen → no manual step needed

🤖 Generated with Claude Code

wei18 and others added 2 commits May 26, 2026 14:39
Generates the iOS Settings.app Acknowledgements page from the SwiftPM
dep graph (AdMob + UMP via AppMonetizationKit) via LicensePlist invoked
from `ci_scripts/ci_post_clone.sh`. Settings.bundle output is
`.gitignore`'d; `license_plist.yml` is the source of truth (regenerated
on every Xcode Cloud build).

Files:
- `.mise.toml` — pin `ubi:mono0926/LicensePlist` (with `exe` override
  because the tarball binary is lowercase-hyphen `license-plist`)
- `license_plist.yml` — `options:` block, camelCase keys per upstream
  README; scans both Packages/*/Package.swift
- `ci_scripts/ci_post_clone.sh` — append `license-plist` step 3.3
  after `tuist generate`, before xcodebuild bundles resources
- `Project.swift` — `.glob(pattern: …/Settings.bundle/**)` in App
  target resources (glob tolerates missing dir on dev machines)
- `.gitignore` — exclude `App/Resources/Settings.bundle/`
- `docs/foundations.md §4` — document the CI invocation path

Supersedes the SwiftUI in-app approach drafted on
`wip/licenseplist-preflight-v1` (per user pivot 2026-05-26).

Co-Authored-By: Claude Opus 4.7 <[email protected]>
… gap

Inline-applied from CR review:

- N1: docs/foundations.md §4 — add one sentence clarifying that the
  Settings.bundle is NOT regenerated on local dev (`.glob` tolerates
  the empty match so App still builds; if dev wants to verify
  Acknowledgements page, run the mise exec command manually).
  Prevents "missing on my machine" confusion for future contributors.
- N2: .mise.toml — pin LicensePlist `latest` → `3.27.9` (the version
  Leader pre-flight verified). Aligns with other mise pins
  (gitleaks 8.30.1, tuist 4, xcbeautify 2) — CI reproducibility
  invariant.

Nit 3 (schema URL pinning) intentionally skipped — optional cosmetic.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@wei18
wei18 merged commit 641d4ad into main May 26, 2026
1 of 2 checks passed
@wei18
wei18 deleted the feat/licenseplist-settings-bundle branch May 26, 2026 08:24
wei18 added a commit that referenced this pull request May 26, 2026
…og+draft) (#174)

Per user decision: 「目前有的全部 backlog 轉成 github issues (state draft) &
related labels, 以後就用這方式記錄」.

§Backlog is now an index table with two halves:
- Active backlog → GH issues #166–#173 (labels: backlog + draft +
  ci/modules/testing/documentation/devx topics)
- Resolved/cancelled/superseded history (LicensePlist done #153,
  skills-gap done #152, swiftformat CANCELLED, Telemetry/GC/Persistence
  PARTIAL (Telemetry done #161, Stage 3 in-session), GH Actions umbrella
  superseded by Phase 1 + #156/#157/#158)

Going forward: `gh issue create --label "backlog,draft,<topic>"`. Title
holds the short subject; body keeps the Date / description / Trigger /
代價 structure.

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