-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] FCM을 이용한 푸시 알림 기능 재구현 #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e17d26b
0360e1b
a83000c
ef405ab
7c2dff6
431e1fd
538a9bd
bef5743
71db1c6
7e98b19
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -91,7 +91,8 @@ private extension SceneDelegate { | |||||||||||
| loginRepository: loginRepository, | ||||||||||||
| userSessionRepository: userSessionRepository | ||||||||||||
| ), | ||||||||||||
| updateUserSessionUseCase: FetchUserInformationUseCase(repository: userSessionRepository) | ||||||||||||
| updateUserSessionUseCase: FetchUserInformationUseCase(repository: userSessionRepository), | ||||||||||||
| userProfileUseCase: UserProfileUseCase(repository: ProfileRepositoryImpl()) | ||||||||||||
| ) | ||||||||||||
|
Comment on lines
+94
to
96
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chain
Consider either: - updateUserSessionUseCase: FetchUserInformationUseCase(repository: userSessionRepository),
+ fetchUserInformationUseCase: FetchUserInformationUseCase(repository: userSessionRepository),or injecting the real UpdateUserSessionUseCase if that is what the view-model needs. 🏁 Script executed: #!/bin/bash
set -e
# Search for any definition or usage of UpdateUserSessionUseCase
rg "UpdateUserSessionUseCase" -n .Length of output: 43 🏁 Script executed: #!/bin/bash
set -e
# Locate SceneDelegate.swift
scene_file=$(fd SceneDelegate.swift -t f)
echo "SceneDelegate file: $scene_file"
# Show lines 1-200 to inspect initializer context
sed -n '1,200p' "$scene_file"Length of output: 5767 🏁 Script executed: #!/bin/bash
set -e
# Locate LoginViewModel.swift
login_vm_file=$(fd LoginViewModel.swift -t f)
echo "LoginViewModel file: $login_vm_file"
# Show the initializer signature and surrounding context
sed -n '1,200p' "$login_vm_file"Length of output: 5948 🏁 Script executed: #!/bin/bash
set -e
# Find definition of FetchUserInformationUseCase
rg "struct FetchUserInformationUseCase" -n .
rg "class FetchUserInformationUseCase" -n .
# Show its file contents for context
file=$(rg "FetchUserInformationUseCase" -l . | head -n 1)
echo "File: $file"
sed -n '1,200p' "$file"
# Search for updateUserSession method within this file
rg "updateUserSession" -n "$file"Length of output: 55 🏁 Script executed: #!/bin/bash
set -e
# Case-insensitive search for FetchUserInformationUseCase
rg -i "FetchUserInformationUseCase" -n .Length of output: 5419 Rename The parameter label ( • SceneDelegate.swift (around lines 94–96): - updateUserSessionUseCase: FetchUserInformationUseCase(repository: userSessionRepository),
+ fetchUserInformationUseCase: FetchUserInformationUseCase(repository: userSessionRepository),• Presentation/Login/LoginViewModel.swift: - private let updateUserSessionUseCase: FetchUserInformationUseCase
+ private let fetchUserInformationUseCase: FetchUserInformationUseCase
init(
updateFCMTokenUseCase: UpdateFCMTokenUseCase,
fetchUserAuthUseCase: FetchUserAuthUseCase,
- updateUserSessionUseCase: FetchUserInformationUseCase,
+ fetchUserInformationUseCase: FetchUserInformationUseCase,
userProfileUseCase: UserProfileUseCase
) { … }
// Inside transform(...)
- self.updateUserSessionUseCase.updateUserSession(…)
+ self.fetchUserInformationUseCase.updateUserSession(…)Make sure to update all related call sites (AppDelegate, other ViewControllers/ViewModels) for consistency. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
| ) | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing mandatory imports cause compilation failure
UNUserNotificationCenter(and its delegate) andCombineare both referenced later in the file, but the headers are not imported:Without these, the file will not compile.
🤖 Prompt for AI Agents