Skip to content

chore: zero out xcodebuild warnings (public import + redundant await) - #4

Merged
wei18 merged 1 commit into
mainfrom
chore/cleanup-public-imports
May 19, 2026
Merged

wei18 merged 1 commit into
mainfrom
chore/cleanup-public-imports

Conversation

@wei18

@wei18 wei18 commented May 19, 2026

Copy link
Copy Markdown
Owner

Summary

xcodebuild was reporting 11 warnings that swift build was silent on. They hid in plain sight because we'd only been running the SwiftPM build. Sweep brings the Xcode side to clean.

Changes

10 files, 11 line edits:

File Change
GameCenterClient/Leaderboard/Slice.swift public import Foundation → internal
GameCenterClient/Live/AuthDriver.swift public import Foundation → internal
GameCenterClient/Live/LiveGameCenterClient.swift public import Foundation → internal; drop redundant await on same-actor call
GameState/GameSessionError.swift public import SudokuEngine → internal
GameState/NotesGrid.swift public import SudokuEngine → internal
SudokuKitTesting/Persistence/FakeAccountProvider.swift public import Foundation → internal
SudokuKitTesting/Persistence/PuzzleFixtures.swift public import GameState → internal
SudokuUI/Practice/PracticeHubView.swift public import SudokuEngine → internal
SudokuUI/Theme/DefaultTheme.swift public import SwiftUI → internal
Telemetry/OSLogSink.swift public import os → internal

The downgrades are correct because the imported modules' types appear only in internal declarations or function bodies — not in any public API surface.

Verified

  • swift build clean
  • swift test: 319/319 pass (full suite, 0 regression)
  • xcodebuild iOS scheme: ** BUILD SUCCEEDED ** with 0 compiler warnings
    (only remaining stderr is appintentsmetadataprocessor noting no AppIntents.framework — informational, not addressable in source)

Side note (out of scope, deferred)

PracticeHubViewTests.overThresholdDrawShowsShimmer is timing-flaky — passed on second run with no source change. Out of scope for this sweep; deferred to a follow-up with a manual clock instead of wall-time threshold.

🤖 Generated with Claude Code

xcodebuild was warning on 10 'public import X was not used in public
declarations or inlinable code' under InternalImportsByDefault, plus
1 'no async operations occur within await expression'. swift build
didn't surface these (silent on the warning) so they hid in plain sight.

Changes (10 files):
- GameCenterClient/Leaderboard/Slice.swift           public import Foundation -> internal
- GameCenterClient/Live/AuthDriver.swift             public import Foundation -> internal
- GameCenterClient/Live/LiveGameCenterClient.swift   public import Foundation -> internal
                                                     drop redundant await on same-actor call
- GameState/GameSessionError.swift                   public import SudokuEngine -> internal
- GameState/NotesGrid.swift                          public import SudokuEngine -> internal
- SudokuKitTesting/Persistence/FakeAccountProvider   public import Foundation -> internal
- SudokuKitTesting/Persistence/PuzzleFixtures        public import GameState -> internal
- SudokuUI/Practice/PracticeHubView.swift            public import SudokuEngine -> internal
- SudokuUI/Theme/DefaultTheme.swift                  public import SwiftUI -> internal
- Telemetry/OSLogSink.swift                          public import os -> internal

Verified:
- swift build clean
- swift test: 319/319 pass (full suite, 0 regression)
- xcodebuild: ** BUILD SUCCEEDED ** with 0 compiler warnings
  (only remaining stderr line is appintentsmetadataprocessor noting
   AppIntents.framework is not linked — not addressable in source)

Side note: PracticeHubViewTests.overThresholdDrawShowsShimmer is
timing-flaky; passed on second run with no source change. Out of
scope here — deferred to follow-up with a manual clock instead of
wall-time threshold.
@wei18
wei18 merged commit 49d58bf into main May 19, 2026
@wei18
wei18 deleted the chore/cleanup-public-imports branch May 19, 2026 16:50
wei18 added a commit that referenced this pull request May 20, 2026
…42)

Option (a) chosen: commit-once-and-accept. Per impl-notes, the file is
already 2,686 lines (expanded JSON, Xcode-reformatted on prior build,
not yet committed). Committing as-is makes future Xcode reformats
idempotent → no more git diff noise after macOS builds.

§未決 (Leader to verify post-merge): one clean Xcode macOS build +
`git status` should show NO modification to this file. If it does,
escalate to Option (b) (lefthook normalizer).

Hit us twice before — PR #4 (zh-en flow cleanup) and PR #14 (ASCRegister
error context) both accidentally swept the reformatted file into their
commits.

impl-notes: meetings/2026-05-20_xcstrings-reformat-decision.impl-notes.md
wei18 added a commit that referenced this pull request May 22, 2026
…v var (#91) (#93)

Fixes #91. Build #4 failed:
  Configuration file not found at /Volumes/workspace/repository/Tuist/Signing.xcconfig

Tuist/Signing.xcconfig is gitignored (contains DEVELOPMENT_TEAM secret).
Xcode Cloud has no copy → tuist generate fatal lints.

Generate it from $SUDOKU_DEVELOPMENT_TEAM env var in ci_post_clone.sh,
BEFORE tuist install/generate. Consolidate cd to repo root (block #3
common prefix for both Signing + tuist).

Also update:
- Tuist/Signing.xcconfig.example: reference ci_post_clone.sh + the env var
- docs/v2/v2.5-readiness.md: pre-flight bullet for ASC env var setup

USER ACTION REQUIRED before next Xcode Cloud build:
  ASC → Apps → Sudoku → Xcode Cloud → Workflow → Environment Variables
  Add: SUDOKU_DEVELOPMENT_TEAM = <10-char team id>

Closes #91. bash -n OK.

Co-authored-by: Claude Opus 4.7 <[email protected]>
wei18 added a commit that referenced this pull request May 22, 2026
…adient (#94)

Brand audit S3 items (#81):

S3-A — light: removed 2 stacked shadow rects per design-system
  "no skeuomorphic shadows" contract

S3-B — both: thickened grid strokes for 60px legibility
  light: stroke-width 12 → 16
  dark:  stroke-width 14 → 18

S3-C — dark: flattened radialGradient to solid #2A3B5C per
  design-system flat-surfaces convention

PNG re-rasterized via qlmanage -t -s 1024. Dimensions 1024×1024 verified.
File sizes:
  AppIcon-Light.png: 22KB → 29KB (thicker strokes)
  AppIcon-Dark.png:  592KB → 33KB (gradient flattened, 18× smaller)

§未決 (impl-notes)
- 60px legibility eye-check on real device; if amber strokes still thin
  on navy, escalate dark to stroke-width 20 in follow-up

Closes #81 (S3 portion; S2 mostly resolved by #78 + accepted §未決 #4(a)).

Co-authored-by: Claude Opus 4.7 <[email protected]>
wei18 added a commit that referenced this pull request Jun 2, 2026
Phase 1: extract Settings monetization UI from SudokuUI into new
  AppMonetizationKit/MonetizationUI target. Replaces @Environment(\.theme)
  with tintColor: Color init params. ~50 LOC added, ~430 modified/moved.

Phase 2: extend ASCRegister with MS IAP product entry + xcstrings
  mirror. ~30 LOC.

Phase 3: wire MinesweeperAppComposition.Live with IAPStoreKit2 +
  AdGate + NoopAdProvider (real LiveAdMobBridge deferred to U15).
  MS SettingsView consumes extracted MonetizationUI. ~120 LOC.

Snapshot risk: LOW (1-pixel anti-aliasing class for 3 SudokuKit tests).

10 Open Questions for Leader; 9 pre-decided per mirror principle +
karpathy guidelines, awaiting user ack on the substantive ones (#3
mirror Sudoku $2.99, #4 mirror "Purchases" header).

Note: original proposal doc lost to worktree force-remove race;
content reconstructed from Developer subagent's return summary.

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

Marks #18 (board chrome vs row0 safe-area) pass: chrome bottom y=201 <
board row0 top y=218, no overlap, content below the Dynamic Island.
Annotates #4 (ResumePill clause) / #19 / #20 as blocked by the signed-out
simulator: latestInProgress() returns nil by #515 graceful-degrade design
when iCloud is signed out, so no ResumePill renders — these need an
iCloud-signed-in sim to verify. Now 21 pass / 0 fail / 22 pend.

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

After signing iCloud + Game Center into the sim, verified the previously
env-gated cases:
- pass: #34 background pause (#539 shipped — timer freezes), #38 ResumePill
  VoiceOver (single combined button), #40 ATT primer (sheet → system prompt →
  dismiss), #4 Leave (cover dismiss + ResumePill now appears with iCloud)
- fail: #19 resume restore → #544 (ResumePill opens an EMPTY board, moves +
  elapsed lost, subtitle always 0:00; Practice + Daily, 30s poll rules out
  read-timing)
- blocked by #544: #20 (resume clear), #12 (airplane autosave elapsed/restore)

New issue #544 (resume restores empty board). Now 27 pass / 2 fail / 15 pend.

Co-authored-by: Claude Opus 4.8 <[email protected]>
This was referenced Jul 9, 2026
@wei18 wei18 mentioned this pull request Jul 28, 2026
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