Repository navigation
refactor(tuist): rename app dir to sudoku and project to game - #222
Merged
Merged
Conversation
Prep for hosting a second app (Minesweeper, planned in PR D / RFC
`meetings/2026-05-31_minesweeper-rfc.md`) as a sibling target under
the same Tuist project umbrella. The Sudoku TARGET keeps its name,
bundle id `com.wei18.sudoku`, and scheme; only the umbrella project
becomes `Game` and the app's source/resource dir becomes `Sudoku/`.
Path renames
------------
- App/ → Sudoku/ (all 11 contents move via git mv)
- Project.swift `App/X` paths → `Sudoku/X` (5 occurrences)
- license_plist.yml outputPath (App/Resources → Sudoku/Resources)
- .gitignore Settings.bundle entry (same rename)
Project rename
--------------
- `Project(name: "Sudoku")` → `Project(name: "Game")`
- Generated artifacts: Sudoku.xcodeproj → Game.xcodeproj, similarly .xcworkspace
- Heads-up: Xcode Cloud workflows in App Store Connect reference the
.xcworkspace path → needs user reconfig post-merge (user-owned).
- Local Xcode "Open Recent" entries break for everyone (acceptable).
Doc comment updates
-------------------
.mise.toml / ci_scripts/ci_post_clone.sh / Packages/SudokuKit/Package.swift
/ Packages/SudokuKit/Tests/AppCompositionTests/{L10nTests,PrivacyManifestTests}.swift
— all reference the path or generated artifact name.
LiveAdMobBridge.swift comments mentioning `App/Info.plist` are intentionally
NOT touched here (PR B deletes those lines as part of the Monetization
config refactor — resolving on rebase rather than touching the same lines
in two PRs).
Verification
------------
- `tuist generate --no-open` → produces `Game.xcodeproj` + `Game.xcworkspace`
- `tuist build Sudoku --platform iOS` → Build Succeeded
PR C of 4 (A: persistence config #219 ✓ ; B: monetization config #220 ⏳ ;
C: this; D: Minesweeper skeleton + new packages).
Co-Authored-By: Claude Opus 4.7 <[email protected]>
Three follow-ups to PR C's rename sweep flagged by Code Reviewer: 1. README.md L6/L28/L51 — three stale `App/` references in user-facing doc updated to `Sudoku/` + line 51 mentions Game umbrella for future Minesweeper sibling. 2. ci_scripts/ci_post_clone.sh L37 — workspace name reference `Sudoku.xcworkspace` → `Game.xcworkspace`. 3. Packages/SudokuKit/Package.swift L170 + L10nTests.swift / L10nCompletenessTests.swift / PrivacyManifestTests.swift comments — claim "via symlinks under Resources/" was stale; actual implementation uses literal copies (with `.xcstrings` → `.json` extension hack so the xcstrings compiler skips it). Corrected. Co-Authored-By: Claude Opus 4.7 <[email protected]>
4 of 5 tasks
wei18
added a commit
that referenced
this pull request
May 31, 2026
…ackages (#223) * feat(minesweeper): add app target skeleton + MinesweeperCoreKit/Kit packages Closes the 4-PR Minesweeper-prep arc (A: persistence config #219 ✓; B: monetization config #220 ✓; C: rename + project→Game #222 ✓; D: this). Adds a second app target `Minesweeper` (bundleId `com.wei18.minesweeper`) inside the existing Game project, plus two new local SwiftPM packages mirroring the Sudoku{CoreKit,Kit} shape: - `Packages/MinesweeperCoreKit/` — pure-Swift game core, single module `MinesweeperEngine` (placeholder `public struct`) + smoke test - `Packages/MinesweeperKit/` — UI + composition, modules `MinesweeperUI` (placeholder `MinesweeperRootView` "Hello, Minesweeper" screen) and `MinesweeperAppComposition` (`bootRootView()` factory) App target dir `Minesweeper/` mirrors `Sudoku/`: - `MinesweeperApp.swift` (@main → `MinesweeperAppComposition.bootRootView()`) - `Info.plist` (no AdMob keys yet) - `Minesweeper.entitlements` — separate iCloud container `iCloud.com.wei18.minesweeper`, app-sandbox, GameKit - `Assets.xcassets/` — placeholder (copied from Sudoku; flip when Minesweeper has its own AppIcon art) - `Resources/Localizable.xcstrings` — empty `en` catalog - `Resources/PrivacyInfo.xcprivacy` — copied verbatim from Sudoku (anticipates AdMob wiring; revisit when monetization actually lands) - `Minesweeper.xctestplan` — pointed at `MinesweeperEngineTests` only `Project.swift`: - Adds `minesweeperTarget` (same `appTargetSettings` icon-name override) - Adds `Packages/MinesweeperKit` to `packages:` - Adds Minesweeper scheme alongside the existing Sudoku scheme Module names (`MinesweeperEngine` / `MinesweeperUI` / `MinesweeperAppComposition`) are namespaced to avoid colliding with SudokuCoreKit's `GameState` and SudokuKit's `SudokuUI` / `AppComposition` in the same Xcode project's package graph. Verified -------- - `tuist generate --no-open` → produces `Game.xcworkspace` with both schemes - `tuist build Sudoku --platform iOS` → green (regression) - `tuist build Minesweeper --platform iOS` → green - `swift test --package-path Packages/MinesweeperCoreKit` → 1/1 pass Follow-ups (filed as separate work, NOT part of this skeleton) - Provision `iCloud.com.wei18.minesweeper` CloudKit container in Dashboard - Wire Minesweeper's own AdMob banner + IAP product IDs (consumes the PR B parameterization) - Wire `LivePersistence` with a `PrivateCKConfig.minesweeper` constant (consumes the PR A parameterization) - Replace placeholder MinesweeperEngine with real mine placement + flood-fill + win/lose detection - Replace placeholder AppIcon with Minesweeper art Co-Authored-By: Claude Opus 4.7 <[email protected]> * docs(minesweeper): address CR nits 1. PrivacyInfo.xcprivacy header — prepend Minesweeper PR D context note explaining the verbatim copy + flip condition (no XML change). 2. MinesweeperEngine.swift — drop unused `internal import Foundation`. 3. Project.swift header — generalize the bundle-id / deployment-target bullet to cover both Sudoku and Minesweeper targets. Co-Authored-By: Claude Opus 4.7 <[email protected]> --------- 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.
Summary
Context — RFC
PR C of 4 preparing the repo to host a second app (Minesweeper) alongside Sudoku in the same Tuist project. See `meetings/2026-05-31_minesweeper-rfc.md`.
Design
Verification
Review
Reviewed by Code Reviewer subagent: APPROVE_WITH_NITS → all 3 nits applied (README L6/L28/L51, ci_post_clone L37, "symlink → copy" wording across Package.swift + 3 test files).
🤖 Generated with Claude Code