[3/5] SPM: MainTimerViewModel追加・Xcodeアプリ/Widgetソースを更新#18
Open
stotic-dev wants to merge 11 commits into
Open
Conversation
- TimeWatcherCoreにTimeInterval拡張・Loggerを追加 - TimeWatcherFeatureモジュールを追加: - MainTimerView, TimerClockAnimationView - OpenUrlViewModel - FrameButtonStyle, ResourceAdapt (CustomColor/CustomImage typealiases) - TimeWatcherTestSupportモジュールを追加: - LiveActivityManagerMock (TimerLiveActivityStateベース) - TimeWatcherCoreTestsの雛形を追加 https://claude.ai/code/session_01QuAAadYpLRWRXW25J7R3vF
- MainTimerViewModelをTimeWatcherFeatureモジュールに追加 - ActivityKitを削除し、NullLiveActivityManagerをデフォルトDI値として使用 - LiveActivity操作をTimerLiveActivityState経由に変更 - LiveActivityManagerをTimeWatcherCoreに依存するよう更新 - TimerLiveActivityState→ContentState変換を担当 - TimeWatcherApp: LiveActivityManager(liveActivityMgr:)でViewModelを初期化 - Widget Intent: TimerControlable/LiveActivityManagingをCoreからimport - xcworkspaceにLocalPackageのFileRef追加 https://claude.ai/code/session_01QuAAadYpLRWRXW25J7R3vF
- project.pbxproj: LocalPackageのSPM参照を追加 - XCLocalSwiftPackageReference, XCSwiftPackageProductDependency追加 - app/widget/testターゲットにTimeWatcherCore/Feature/TestSupportを追加 - TestUtilities: @testable import TimeWatcher→import TimeWatcherCoreに変更 - OpenUrlViewModelTest: TimeWatcherFeatureからimportするよう更新 - TimerStartIntentTest/TimerStopIntentTest: - import TimeWatcherCore, TimeWatcherTestSupportに変更 - setupLiveActivityManagerMock簡略化 (ClosedRange<Date>検証→timeLapseString/timerStatus検証) https://claude.ai/code/session_01QuAAadYpLRWRXW25J7R3vF
- import TimeWatcherCore, TimeWatcherTestSupport, @testable import TimeWatcherFeatureに変更 - setupLiveActivityManagerMock大幅簡略化: - 旧: ClosedRange<Date>を構築してlowerBound/upperBoundを比較 - 新: timeLapseString/timerStatusのみを検証 - expectedTimeLapseComponent/MilliSecパラメータを削除 - needThrowStartのエラーをActivityAuthorizationError.unsupported→ LiveActivityRequestError.notFoundActivityに変更 https://claude.ai/code/session_01QuAAadYpLRWRXW25J7R3vF
[4/5] SPM: Xcodeプロジェクト設定とIntent/共通テストを更新
- LocalPackage/Sources/TimeWatcherCore/Domain/TimeWatcherWidgetAttributes.swift を新規作成 - #if os(iOS) でガードし macOS ビルドへの影響を回避 - TimeWatcherWidgetLiveActivity.swift から重複していた struct 定義を削除 - メインアプリターゲットが TimeWatcherCore 経由で参照できるようになりビルドエラーを解消 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
**/.build/ パターンを追加し、サブディレクトリ内の .build/ も無視されるよう対応 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
**/.DS_Store パターンを追加し、既存のトラッキングも解除 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
No description provided.