Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
176 changes: 0 additions & 176 deletions DevLog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,13 @@
DFABA3B02E23526500FEFBDB /* FirebaseFirestore in Frameworks */ = {isa = PBXBuildFile; productRef = DFABA3AF2E23526500FEFBDB /* FirebaseFirestore */; };
DFABA3B22E23526500FEFBDB /* FirebaseFunctions in Frameworks */ = {isa = PBXBuildFile; productRef = DFABA3B12E23526500FEFBDB /* FirebaseFunctions */; };
DFABA3B42E23526500FEFBDB /* FirebaseMessaging in Frameworks */ = {isa = PBXBuildFile; productRef = DFABA3B32E23526500FEFBDB /* FirebaseMessaging */; };
DFD643A72EC787AB0073E133 /* firebase.json in Resources */ = {isa = PBXBuildFile; fileRef = DFD643A42EC787AB0073E133 /* firebase.json */; };
DFD643A92EC787AB0073E133 /* package.json in Resources */ = {isa = PBXBuildFile; fileRef = DFD643A02EC787AB0073E133 /* package.json */; };
DFD643AC2EC787AB0073E133 /* tsconfig.json in Resources */ = {isa = PBXBuildFile; fileRef = DFD643A22EC787AB0073E133 /* tsconfig.json */; };
DFD643AE2EC787AB0073E133 /* package-lock.json in Resources */ = {isa = PBXBuildFile; fileRef = DFD643A12EC787AB0073E133 /* package-lock.json */; };
DFD645402EC827A10073E133 /* .gitignore in Resources */ = {isa = PBXBuildFile; fileRef = DFD6453F2EC827A10073E133 /* .gitignore */; };
DFD74E2F2E423EA700613803 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = DFD74E2E2E423EA700613803 /* README.md */; };
DFF2DACE2EDC02AD00778738 /* OrderedCollections in Frameworks */ = {isa = PBXBuildFile; productRef = DFF2DACD2EDC02AD00778738 /* OrderedCollections */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
DF3416452E45F67C00F9312B /* DevLog_Unit.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DevLog_Unit.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
DFD48B002DC4D6E2005905C5 /* DevLog.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DevLog.app; sourceTree = BUILT_PRODUCTS_DIR; };
DFD643952EC787AB0073E133 /* apple.ts */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.typescript; path = apple.ts; sourceTree = "<group>"; };
DFD643962EC787AB0073E133 /* github.ts */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.typescript; path = github.ts; sourceTree = "<group>"; };
DFD643972EC787AB0073E133 /* google.ts */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.typescript; path = google.ts; sourceTree = "<group>"; };
DFD643992EC787AB0073E133 /* notification.ts */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.typescript; path = notification.ts; sourceTree = "<group>"; };
DFD6439A2EC787AB0073E133 /* schedule.ts */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.typescript; path = schedule.ts; sourceTree = "<group>"; };
DFD6439C2EC787AB0073E133 /* delete.ts */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.typescript; path = delete.ts; sourceTree = "<group>"; };
DFD6439E2EC787AB0073E133 /* index.ts */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.typescript; path = index.ts; sourceTree = "<group>"; };
DFD643A02EC787AB0073E133 /* package.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = package.json; sourceTree = "<group>"; };
DFD643A12EC787AB0073E133 /* package-lock.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = "package-lock.json"; sourceTree = "<group>"; };
DFD643A22EC787AB0073E133 /* tsconfig.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = tsconfig.json; sourceTree = "<group>"; };
DFD643A42EC787AB0073E133 /* firebase.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = firebase.json; sourceTree = "<group>"; };
DFD6453F2EC827A10073E133 /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitignore; sourceTree = "<group>"; };
DFD74E2E2E423EA700613803 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -54,11 +38,6 @@
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */

/* Begin PBXFileSystemSynchronizedRootGroup section */
DF3416462E45F67C00F9312B /* DevLog_Unit */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = DevLog_Unit;
sourceTree = "<group>";
};
DF8AB7982E938B0B00E50BBF /* DevLog */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
Expand All @@ -70,13 +49,6 @@
/* End PBXFileSystemSynchronizedRootGroup section */

/* Begin PBXFrameworksBuildPhase section */
DF3416422E45F67C00F9312B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
DFD48AFD2DC4D6E2005905C5 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -102,80 +74,19 @@
DFD6453F2EC827A10073E133 /* .gitignore */,
DF8AB7982E938B0B00E50BBF /* DevLog */,
DFD74E2E2E423EA700613803 /* README.md */,
DF3416462E45F67C00F9312B /* DevLog_Unit */,
DFE28EB62DCCF26300B28FE5 /* Frameworks */,
DFD48B012DC4D6E2005905C5 /* Products */,
DFD643A52EC787AB0073E133 /* Firebase */,
);
sourceTree = "<group>";
};
DFD48B012DC4D6E2005905C5 /* Products */ = {
isa = PBXGroup;
children = (
DFD48B002DC4D6E2005905C5 /* DevLog.app */,
DF3416452E45F67C00F9312B /* DevLog_Unit.xctest */,
);
name = Products;
sourceTree = "<group>";
};
DFD643982EC787AB0073E133 /* auth */ = {
isa = PBXGroup;
children = (
DFD643952EC787AB0073E133 /* apple.ts */,
DFD643962EC787AB0073E133 /* github.ts */,
DFD643972EC787AB0073E133 /* google.ts */,
);
path = auth;
sourceTree = "<group>";
};
DFD6439B2EC787AB0073E133 /* fcm */ = {
isa = PBXGroup;
children = (
DFD643992EC787AB0073E133 /* notification.ts */,
DFD6439A2EC787AB0073E133 /* schedule.ts */,
);
path = fcm;
sourceTree = "<group>";
};
DFD6439D2EC787AB0073E133 /* user */ = {
isa = PBXGroup;
children = (
DFD6439C2EC787AB0073E133 /* delete.ts */,
);
path = user;
sourceTree = "<group>";
};
DFD6439F2EC787AB0073E133 /* src */ = {
isa = PBXGroup;
children = (
DFD643982EC787AB0073E133 /* auth */,
DFD6439B2EC787AB0073E133 /* fcm */,
DFD6439D2EC787AB0073E133 /* user */,
DFD6439E2EC787AB0073E133 /* index.ts */,
);
path = src;
sourceTree = "<group>";
};
DFD643A32EC787AB0073E133 /* functions */ = {
isa = PBXGroup;
children = (
DFD6439F2EC787AB0073E133 /* src */,
DFD643A02EC787AB0073E133 /* package.json */,
DFD643A12EC787AB0073E133 /* package-lock.json */,
DFD643A22EC787AB0073E133 /* tsconfig.json */,
);
path = functions;
sourceTree = "<group>";
};
DFD643A52EC787AB0073E133 /* Firebase */ = {
isa = PBXGroup;
children = (
DFD643A32EC787AB0073E133 /* functions */,
DFD643A42EC787AB0073E133 /* firebase.json */,
);
path = Firebase;
sourceTree = "<group>";
};
DFE28EB62DCCF26300B28FE5 /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand All @@ -186,28 +97,6 @@
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
DF3416442E45F67C00F9312B /* DevLog_Unit */ = {
isa = PBXNativeTarget;
buildConfigurationList = DF34164B2E45F67C00F9312B /* Build configuration list for PBXNativeTarget "DevLog_Unit" */;
buildPhases = (
DF3416412E45F67C00F9312B /* Sources */,
DF3416422E45F67C00F9312B /* Frameworks */,
DF3416432E45F67C00F9312B /* Resources */,
);
buildRules = (
);
dependencies = (
);
fileSystemSynchronizedGroups = (
DF3416462E45F67C00F9312B /* DevLog_Unit */,
);
name = DevLog_Unit;
packageProductDependencies = (
);
productName = DevLog_Unit;
productReference = DF3416452E45F67C00F9312B /* DevLog_Unit.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
DFD48AFF2DC4D6E2005905C5 /* DevLog */ = {
isa = PBXNativeTarget;
buildConfigurationList = DFD48B112DC4D6E4005905C5 /* Build configuration list for PBXNativeTarget "DevLog" */;
Expand Down Expand Up @@ -250,9 +139,6 @@
LastSwiftUpdateCheck = 1640;
LastUpgradeCheck = 2600;
TargetAttributes = {
DF3416442E45F67C00F9312B = {
CreatedOnToolsVersion = 16.4;
};
DFD48AFF2DC4D6E2005905C5 = {
CreatedOnToolsVersion = 16.3;
};
Expand All @@ -279,42 +165,23 @@
projectRoot = "";
targets = (
DFD48AFF2DC4D6E2005905C5 /* DevLog */,
DF3416442E45F67C00F9312B /* DevLog_Unit */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
DF3416432E45F67C00F9312B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
DFD48AFE2DC4D6E2005905C5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DFD645402EC827A10073E133 /* .gitignore in Resources */,
DFD74E2F2E423EA700613803 /* README.md in Resources */,
DFD643A72EC787AB0073E133 /* firebase.json in Resources */,
DFD643A92EC787AB0073E133 /* package.json in Resources */,
DFD643AC2EC787AB0073E133 /* tsconfig.json in Resources */,
DFD643AE2EC787AB0073E133 /* package-lock.json in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
DF3416412E45F67C00F9312B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
DFD48AFC2DC4D6E2005905C5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -332,40 +199,6 @@
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
DF3416492E45F67C00F9312B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 15.5;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "opfic.DevLog-Unit";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
DF34164A2E45F67C00F9312B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 15.5;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "opfic.DevLog-Unit";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
};
name = Release;
};
DFD48B122DC4D6E4005905C5 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReferenceAnchor = DF8AB7982E938B0B00E50BBF /* DevLog */;
Expand Down Expand Up @@ -592,15 +425,6 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
DF34164B2E45F67C00F9312B /* Build configuration list for PBXNativeTarget "DevLog_Unit" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DF3416492E45F67C00F9312B /* Debug */,
DF34164A2E45F67C00F9312B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DFD48AFB2DC4D6E2005905C5 /* Build configuration list for PBXProject "DevLog" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand Down
1 change: 1 addition & 0 deletions DevLog/App/Assembler/Assembler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ protocol Assembler {

final class AppAssembler: Assembler {
private let assemblers: [Assembler] = [
PersistenceAssembler(),
InfraAssembler(),
DataAssembler(),
DomainAssembler()
Expand Down
4 changes: 4 additions & 0 deletions DevLog/App/Assembler/DomainAssembler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ private extension DomainAssembler {
container.register(DeleteTodoUseCase.self) {
DeleteTodoUseCaseImpl(container.resolve(TodoRepository.self))
}

container.register(UndoDeleteTodoUseCase.self) {
UndoDeleteTodoUseCaseImpl(container.resolve(TodoRepository.self))
}
}

func registerUserDataUseCases(_ container: DIContainer) {
Expand Down
7 changes: 0 additions & 7 deletions DevLog/App/Assembler/InfraAssembler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,5 @@ final class InfraAssembler: Assembler {
WebPageMetadataService()
}

container.register(UserDefaultsStore.self) {
UserDefaultsStore()
}

container.register(ThemeStore.self) {
ThemeStore()
}
}
}
18 changes: 18 additions & 0 deletions DevLog/App/Assembler/PersistenceAssembler.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// PersistenceAssembler.swift
// DevLog
//
// Created by opfic on 3/15/26.
//

final class PersistenceAssembler: Assembler {
func assemble(_ container: any DIContainer) {
container.register(UserDefaultsStore.self) {
UserDefaultsStore()
}

container.register(ThemeStore.self) {
ThemeStore()
}
}
}
4 changes: 4 additions & 0 deletions DevLog/Data/Repository/TodoRepositoryImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ final class TodoRepositoryImpl: TodoRepository {
func deleteTodo(_ todoId: String) async throws {
try await todoService.deleteTodo(todoId: todoId)
}

func undoDeleteTodo(_ todoId: String) async throws {
try await todoService.undoDeleteTodo(todoId: todoId)
}
}
1 change: 1 addition & 0 deletions DevLog/Domain/Protocol/TodoRepository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ protocol TodoRepository {
func fetchTodo(_ todoId: String) async throws -> Todo
func upsertTodo(_ todo: Todo) async throws
func deleteTodo(_ todoId: String) async throws
func undoDeleteTodo(_ todoId: String) async throws
}
10 changes: 10 additions & 0 deletions DevLog/Domain/UseCase/Todo/Delete/UndoDeleteTodoUseCase.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// UndoDeleteTodoUseCase.swift
// DevLog
//
// Created by opfic on 3/15/26.
//

protocol UndoDeleteTodoUseCase {
func execute(_ todoId: String) async throws
}
18 changes: 18 additions & 0 deletions DevLog/Domain/UseCase/Todo/Delete/UndoDeleteTodoUseCaseImpl.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// UndoDeleteTodoUseCaseImpl.swift
// DevLog
//
// Created by opfic on 3/15/26.
//

final class UndoDeleteTodoUseCaseImpl: UndoDeleteTodoUseCase {
private let repository: TodoRepository

init(_ repository: TodoRepository) {
self.repository = repository
}

func execute(_ todoId: String) async throws {
try await repository.undoDeleteTodo(todoId)
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// FirebaseAuthUser.swift
// FirebaseAuthUser+.swift
// DevLog
//
// Created by 최윤진 on 11/3/25.
Expand Down
14 changes: 14 additions & 0 deletions DevLog/Infra/Extension/FirebaseFunctions+.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// FirebaseFunctions+.swift
// DevLog
//
// Created by opfic on 3/16/26.
//

import FirebaseFunctions

extension Functions {
func httpsCallable(_ name: some RawRepresentable<String>) -> HTTPSCallable {
httpsCallable(name.rawValue)
}
}
Loading