Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Application/DevLogCore/Sources/ActivityKind.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public enum ActivityKind: String, Hashable, Sendable {
public enum ActivityKind: String, Hashable {
case created
case completed
case deleted
Expand Down
2 changes: 1 addition & 1 deletion Application/DevLogCore/Sources/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import os.log

public final class Logger: Sendable {
public final class Logger {
private let subsystem: String
private let category: String
private let osLog: OSLog
Expand Down
6 changes: 3 additions & 3 deletions Application/DevLogCore/Sources/TodayDisplayOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

import Foundation

public struct TodayDisplayOptions: Equatable, Sendable {
public enum DueDateVisibility: String, CaseIterable, Equatable, Sendable {
public struct TodayDisplayOptions: Equatable {
public enum DueDateVisibility: String, CaseIterable, Equatable {
case all
case withDueDateOnly
case withoutDueDateOnly
}

public enum FocusVisibility: String, CaseIterable, Equatable, Sendable {
public enum FocusVisibility: String, CaseIterable, Equatable {
case all
case focusedOnly
}
Expand Down
2 changes: 1 addition & 1 deletion Application/DevLogCore/Sources/WidgetTodoSnapshot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public struct WidgetTodoSnapshot: Equatable, Sendable {
public struct WidgetTodoSnapshot: Equatable {
public let id: String
public let number: Int?
public let title: String
Expand Down
2 changes: 1 addition & 1 deletion Application/DevLogData/Sources/Protocol/AuthService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Combine
import Foundation

public protocol AuthService: Sendable {
public protocol AuthService {
var uid: String? { get }
var providerIDs: [String] { get }
var currentUserEmail: String? { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public protocol AuthenticationService: Sendable {
public protocol AuthenticationService {
func signIn() async throws -> AuthDataResponse
func signOut(_ uid: String) async throws
func deleteAuth(_ uid: String) async throws
Expand Down
2 changes: 1 addition & 1 deletion Application/DevLogData/Sources/Protocol/UserService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public protocol UserService: Sendable {
public protocol UserService {
func upsertUser(_ response: AuthDataResponse) async throws
func fetchUserProfile() async throws -> UserProfileResponse
func upsertStatusMessage(_ message: String) async throws
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public protocol WebPageImageStore: Sendable {
public protocol WebPageImageStore {
func cachedImageURL(for url: URL) async throws -> URL
func saveImage(_ data: Data, for url: URL) async throws -> URL
func dirSizeInBytes() async -> Int64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import DevLogCore

public protocol WidgetSnapshotPreferenceStore: Sendable {
public protocol WidgetSnapshotPreferenceStore {
func heatmapActivityTypes() -> [String]
func setHeatmapActivityTypes(_ activityTypes: [String])
func selectedActivityKinds() -> Set<ActivityKind>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import DevLogCore

public protocol WidgetSnapshotUpdater: Sendable {
public protocol WidgetSnapshotUpdater {
func updateTodaySnapshot(
todos: [WidgetTodoSnapshot],
now: Date
Expand Down
2 changes: 1 addition & 1 deletion Application/DevLogDomain/Sources/Entity/AuthProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public enum AuthProvider: String, CaseIterable {
public enum AuthProvider: String, CaseIterable, Sendable {
case apple = "apple.com"
case google = "google.com"
case github = "github.com"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public protocol AuthenticationRepository: Sendable {
public protocol AuthenticationRepository {
func signIn(_ provider: AuthProvider) async throws
func signOut() async throws
func restore() -> Bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
// Created by 최윤진 on 11/2/25.
//

public protocol SignInUseCase: Sendable {
public protocol SignInUseCase {
func execute(_ provider: AuthProvider) async throws
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import FirebaseFirestore
import FirebaseFunctions
import FirebaseMessaging

struct FirebaseDependency<Value>: @unchecked Sendable {
struct FirebaseDependency<Value> {
private let value: Value

init(value: Value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import UIKit
import DevLogData

final class TopViewControllerProvider: Sendable {
final class TopViewControllerProvider {
@MainActor
func topViewController() -> UIViewController? {
guard let keyWindow = keyWindow() else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ final class AuthServiceImpl: AuthService {

}

private final class AuthStatePublisher: @unchecked Sendable {
private final class AuthStatePublisher {
private let logger: Logger
private let subject: CurrentValueSubject<Bool, Never>
private let lock = NSLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ final class AppleAuthenticationServiceImpl: AuthenticationService {
}
}

private final class AppleSignInSession: @unchecked Sendable {
private final class AppleSignInSession {
@MainActor
private var delegate: AppleSignInDelegate?
@MainActor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final class WebPageImageStoreImpl: WebPageImageStore {
}

private extension WebPageImageStoreImpl {
func perform<T: Sendable>(_ operation: @escaping @Sendable () throws -> T) async throws -> T {
func perform<T>(_ operation: @escaping () throws -> T) async throws -> T {
Comment thread
opficdev marked this conversation as resolved.
Outdated
try await withCheckedThrowingContinuation { continuation in
queue.async {
do {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

struct UserDefaultsDependency: @unchecked Sendable {
struct UserDefaultsDependency {
private let value: UserDefaults

init(value: UserDefaults) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import ComposableArchitecture
import DevLogDomain
@preconcurrency import DevLogDomain
import Foundation

@Reducer
Expand All @@ -20,20 +20,20 @@ struct LoginFeature {
var alertMessage = ""
}

enum Action {
enum Action: Sendable {
case setAlert(Bool, AlertType? = nil)
case tapSignInButton(AuthProvider)
case signInSucceeded
case signInFailed(AlertType)
case signInCancelled
}

enum AlertType: Equatable {
enum AlertType: Equatable, Sendable {
case emailUnavailable
case error
}

@Dependency(\.signInUseCase) var signInUseCase
@Dependency(SignInUseCaseDependency.self) var signInUseCase

var body: some ReducerOf<Self> {
Reduce { state, action in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

struct UserDefaultsDependency: @unchecked Sendable {
struct UserDefaultsDependency {
private let value: UserDefaults

init(value: UserDefaults) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public final class WidgetSharedDefaultsStore: Sendable {
public final class WidgetSharedDefaultsStore {
private let userDefaults: UserDefaultsDependency

public init(userDefaults: UserDefaults = UserDefaults(suiteName: WidgetAppGroup.identifier) ?? .standard) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public final class WidgetSnapshotStore: Sendable {
public final class WidgetSnapshotStore {
private let store: WidgetSharedDefaultsStore
private let encoder = JSONEncoder()
private let decoder = JSONDecoder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import Foundation
import DevLogCore

public struct HeatmapWidgetSnapshotFactory: Sendable {
fileprivate struct DailyCounts: Sendable {
public struct HeatmapWidgetSnapshotFactory {
fileprivate struct DailyCounts {
var createdCount = 0
var completedCount = 0
var deletedCount = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
import Foundation
import DevLogCore

public struct TodayWidgetSnapshotFactory: Sendable {
private enum SectionCategory: String, CaseIterable, Sendable {
public struct TodayWidgetSnapshotFactory {
private enum SectionCategory: String, CaseIterable {
case focused
case overdue
case dueSoon
case later
case unscheduled
}

private struct SectionCollection: Sendable {
private struct SectionCollection {
var focused = [TodayWidgetTodoItem]()
var overdue = [TodayWidgetTodoItem]()
var dueSoon = [TodayWidgetTodoItem]()
Expand All @@ -40,7 +40,7 @@ public struct TodayWidgetSnapshotFactory: Sendable {
}
}

private struct TodayWidgetTodoItem: Sendable {
private struct TodayWidgetTodoItem {
let id: String
let number: Int
let title: String
Expand Down