Skip to content

chore: group app targets under App/ + co-locate license_plist configs - #393

Merged
wei18 merged 1 commit into
mainfrom
chore/reorg-app-dirs-under-app
Jun 8, 2026
Merged

wei18 merged 1 commit into
mainfrom
chore/reorg-app-dirs-under-app

Conversation

@wei18

@wei18 wei18 commented Jun 8, 2026

Copy link
Copy Markdown
Owner

What

Tidies the repo root by grouping the two thin app-target dirs and their LicensePlist configs under a single App/:

Sudoku/                        → App/Sudoku/
Minesweeper/                   → App/Minesweeper/
license_plist.yml              → App/Sudoku/license_plist.yml
license_plist.minesweeper.yml  → App/Minesweeper/license_plist.yml

All moves via git mv (history preserved).

Path couplings updated (all traced)

  • Project.swift — sources / infoPlist / entitlements / resources globs / xctestplan / storekit paths re-prefixed with App/.
  • license_plist.yml outputPath (Settings.bundle landing path) + comments.
  • .gitignore Settings.bundle deny lines.
  • ci_scripts/ci_post_clone.sh + mise-tasks/gen/acknowledgements --config-path.

Left at root (deliberate)

  • secrets/ — its .gitignore secrets/** deny-all is a secret-leak guardrail; moving risks un-ignoring the ASC .p8. Many $REPO_ROOT/secrets/.env refs. High risk, no benefit.
  • cloudkit/ — 2-file dir; not worth churning the ck task + docs.

Verification

  • tuist generate resolves all paths.
  • xcodebuild build-for-testing -scheme Sudoku → TEST BUILD SUCCEEDED (app compiles from App/Sudoku/ + the .xctestplan's container:Packages/... targets resolve). Minesweeper is the symmetric mirror, paths validated by tuist generate.
  • Game.xcodeproj/workspace are generated + gitignored → no project file committed; contributors regenerate via tuist generate.

🤖 Generated with Claude Code

Tidy the repo root: the two thin app-target dirs and their LicensePlist
configs were scattered at the top level. Move them under a single App/:

  Sudoku/                    → App/Sudoku/
  Minesweeper/               → App/Minesweeper/
  license_plist.yml          → App/Sudoku/license_plist.yml
  license_plist.minesweeper.yml → App/Minesweeper/license_plist.yml

All moves via `git mv` (history preserved). Updated every path coupling:
- Project.swift: sources / infoPlist / entitlements / resources globs /
  xctestplan / storekit paths re-prefixed with App/.
- license_plist.yml `outputPath` (Settings.bundle landing path) + comments.
- .gitignore Settings.bundle deny lines.
- ci_scripts/ci_post_clone.sh + mise-tasks/gen/acknowledgements --config-path.

secrets/ and cloudkit/ deliberately left at root (security guardrail /
low-value churn respectively).

Verified: `tuist generate` resolves all paths; `xcodebuild build-for-testing
-scheme Sudoku` succeeds (app compiles from App/Sudoku/ + the .xctestplan's
container:Packages/ targets resolve). Game.xcodeproj/workspace are generated
(gitignored) so no project file is committed.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@wei18
wei18 merged commit f728a1c into main Jun 8, 2026
3 checks passed
@wei18
wei18 deleted the chore/reorg-app-dirs-under-app branch June 8, 2026 09:37
wei18 added a commit that referenced this pull request Jun 9, 2026
…eeper.storekit (#433) (#437)

Two MS build-parity gaps.

Part A — tf:upload now regenerates the Acknowledgements Settings.bundle.
mise-tasks/tf/upload archived locally but never ran gen:acknowledgements, so the
gitignored Settings.bundle (normally regenerated by Xcode Cloud's
ci_post_clone.sh) was absent at archive time → installed builds showed an empty
iOS Settings → Acknowledgements page. The script now runs the three phases in
the order both LicensePlist and Tuist require: tuist install (resolve) →
gen:acknowledgements (populate bundle from the resolved SwiftPM graph) → tuist
generate (re-glob the now-populated bundle) → archive.

While fixing this, found a latent regression from #393: when the license_plist
configs were co-located under App/<App>/, their outputPath stayed
`App/<App>/Resources/Settings.bundle` but LicensePlist resolves outputPath
relative to the config file's own directory, so the bundle was written to
`App/<App>/App/<App>/Resources/Settings.bundle` — a path Tuist's resource glob
never sees. Corrected both configs to the config-dir-relative
`Resources/Settings.bundle`.

Part B — added App/Minesweeper/Resources/Minesweeper.storekit (mirrors
Sudoku.storekit; productID com.wei18.minesweeper.iap.remove_ads, Remove Ads,
2.99) and wired it into the Minesweeper scheme's runAction options via
storeKitConfigurationPath, so Simulator/Xcode IAP testing finds the product.
Simulator-only; the TestFlight "product not found" is a separate ASC-data issue
(#432).

Verification:
- mise run tf:upload minesweeper ios --archive-only → archived
  Minesweeper.app/Settings.bundle/com.mono0926.LicensePlist.plist lists 7 real
  entries (GoogleMobileAds 13.4.0, GoogleUserMessagingPlatform 3.1.0, Yams,
  swift-syntax, swift-snapshot-testing, swift-custom-dump, xctest-dynamic-overlay)
  + matching child-pane plists — not empty.
- mise exec -- tuist generate --no-open succeeds (new .storekit path resolves).
- mise run scan:l10n PASS.

Co-authored-by: Claude Opus 4.8 <[email protected]>
wei18 added a commit that referenced this pull request Jul 28, 2026
… order (#934) (#958)

* chore(upkeep): fix skill counts, prototype tags, noop spelling, plist order (#934)

Five surgically-scoped fixes from the #934 upkeep triage (all verified
against main @ 972d7a7):

1. CLAUDE.md §Where truth lives claimed 9 project-bound skills; actual
   flat-skill count under .claude/skills/ (excluding the apple-dev-skills
   submodule) is 8 — screen-contract-spec's master copy moved out to the
   design-app playbook on 2026-07-21 (6e5b1a2).
2. Same stale "9" count in docs/superpowers/specs/2026-06-24-apple-dev-skills
   -shared-plugin-design.md (AS-BUILT NOTE, architecture diagram, §5 header)
   — corrected to 8, with a new dated UPDATE note (mirroring the doc's own
   2026-07-13 correction convention) explaining the reversion without
   erasing the historical 07-13 record.
3. Both app-flow prototypes still labeled the board->completion transition
   "push .completion". Shipped reality (#667/#669 Sudoku, #388/#386 MS):
   completion mounts as an in-board overlay, not a stack push; the pushed
   .completion route serves only the daily re-view. Re-tagged the S09/M14
   edges and Sudoku's untagged S09 node + prose (which also referenced a
   nonexistent "retry" completion variant); MS's edge now uses the same
   kind:'state' (overlay, no push) treatment already used for its sibling
   M11->M12 lose-overlay edge.
4. Packages/TelemetryKit/Sources/Telemetry/NoOpTrackingSink.swift was the
   sole "NoOp" (capital O) type in a codebase that otherwise spells this
   pattern "Noop" (NoopErrorReporter and 6 other sibling placeholder types
   repo-wide). Renamed type + file to NoopTrackingSink; updated its test
   file and the GameAppKit call site.
5. App/Sudoku/Info.plist and App/Minesweeper/Info.plist had
   NSUserTrackingUsageDescription at different positions in an otherwise
   identical key sequence. Reordered Minesweeper's copy (the one that broke
   the shared LS*/NSGameKit*/NSUserTracking* block ordering, present since
   the two Info.plists first diverged pre-#393) to match Sudoku's.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs(designs): finish the S09 as-built sync + rename the foundations example (#934)

CR round 1 on PR #958:

- sudoku-app-flow.prototype.html: the sentence item 3 edited still claimed a
  leaderboard slice with sign-in/loading variants — all deleted by #698
  (CompletionView is hero + time + mistakes + Close only). Prose and the S09
  phone-label now say so.
- foundations.md: the TelemetrySink code example renamed to NoopTrackingSink to
  match the item-4 rename (a current-API example, unlike the frozen v1 docs
  which keep the old spelling as history).

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

* docs(designs): drop the stale .loaded(slice) source note on S09 (#934)

Acceptance caught the phone-source annotation two lines below the corrected
S09 label still citing the #698-deleted CompletionState machinery.

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

---------

Co-authored-by: Claude Fable 5 <[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