Skip to content

Commit e02bfbd

Browse files
committed
불필요 코드 제거
1 parent bbbb64c commit e02bfbd

File tree

5 files changed

+3
-76
lines changed

5 files changed

+3
-76
lines changed

Projects/Feature/LAPomodoroFeature/Sources/LockScreen/TimerLockScreenCore.swift

+2-14
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ struct TimerLockScreenCore {
2323
}
2424
}
2525

26-
enum Action {
27-
case stateUpdated(PomodoroActivityAttributes.ContentState)
28-
case updateTime
29-
}
26+
enum Action {}
3027

3128
@Dependency(\.suspendingClock) var continuousClock
3229

@@ -37,15 +34,6 @@ struct TimerLockScreenCore {
3734
}
3835

3936
private func core(state: inout State, action: Action) -> EffectOf<Self> {
40-
switch action {
41-
case let .stateUpdated(contentState):
42-
state.contentState = contentState
43-
return .run { send in await send(.updateTime) }
44-
45-
case .updateTime:
46-
// guard let contentState = state.contentState else { return .none }
47-
// state.timerText = timeDifferenceBetween(Date.now, contentState.goalDatetime)
48-
return .none
49-
}
37+
return .none
5038
}
5139
}

Projects/Feature/LAPomodoroFeature/Sources/PomodoroLiveActivityWidget.swift

+1-8
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ import DesignSystem
1515
import ComposableArchitecture
1616

1717
public struct PomodoroLiveActivityWidget: Widget {
18-
@Bindable var store: StoreOf<PomodoroLiveActivityWidgetCore>
19-
20-
public init() {
21-
store = .init(
22-
initialState: PomodoroLiveActivityWidgetCore.State(),
23-
reducer: { PomodoroLiveActivityWidgetCore() }
24-
)
25-
}
18+
public init() {}
2619

2720
public var body: some WidgetConfiguration {
2821
ActivityConfiguration(for: PomodoroActivityAttributes.self) { context in

Projects/Feature/LAPomodoroFeature/Sources/PomodoroLiveActivityWidgetCore.swift

-41
This file was deleted.

Tuist/ProjectDescriptionHelpers/Entitlements.swift

-7
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ extension Entitlements {
1919

2020
public static var widgetExtension: Entitlements {
2121
return .dictionary([:])
22-
// "com.apple.security.application-groups": [
23-
// AppEnv.Kimcaddie.appGroupId
24-
// ],
25-
// "keychain-access-groups": [
26-
// AppEnv.Kimcaddie.keychainAccessGroupId
27-
// ]
28-
// ])
2922
}
3023
}
3124
}

Tuist/ProjectDescriptionHelpers/InfoPlist/InfoPlist+Mohanyang.swift

-6
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ extension InfoPlist {
8787

8888
public static var widgetExtension: InfoPlist {
8989
return .extendingDefault(with: [
90-
// MARK: - Keychain Access Group ID
91-
// "KeychainAccessGroupId": AppEnv.Kimcaddie.keychainAccessGroupId,
92-
93-
// MARK: - App Group ID
94-
// "AppGroupId": AppEnv.Kimcaddie.appGroupId,
95-
9690
"CFBundleDisplayName": "$(APP_NAME)",
9791
"CFBundleShortVersionString": "$(MARKETING_VERSION)",
9892
"CFBundleVersion": "$(CURRENT_PROJECT_VERSION)",

0 commit comments

Comments
 (0)