-
Notifications
You must be signed in to change notification settings - Fork 0
[FEATURE] 친구 프로필 api 연동 #23
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
Merged
Merged
The head ref may contain hidden characters: "feat/#21-feat_\uCE5C\uAD6C_\uD504\uB85C\uD544_api_\uC5F0\uB3D9"
Conversation
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
UI Layer로 이동
- 로그인 화면 UI 구성 - 카카오 로그인 버튼 추가 - Near 로고 및 타이틀 이미지 추가 - 관련 문자열 리소스 추가 - 라이트/다크 모드에 따른 상태바 아이콘 색상 조정 - 현재는 라이트모드로 고정
- AuthRepository 및 AuthService 인터페이스 정의 - DataStore를 사용한 토큰 관리 및 AuthRepositoryImpl 구현 - 소셜 로그인 요청/응답 데이터 클래스(SocialLoginRequest, LoginResponse, LoginResult) 추가 - 로그인 관련 ProviderType enum 정의 - LoginViewModel에 소셜 로그인 로직 및 UI 상태 관리 추가 - DI 모듈(RepositoryModule, ServiceModule)에 관련 의존성 주입 설정
- `build.gradle.kts` 파일에 카카오 네이티브 앱 키 추가 - `NearApplication.kt` 파일에 카카오 SDK 초기화 코드 추가 - `LoginScreen.kt` 파일에 카카오 로그인 로직 구현 및 UI 연동 - `AndroidManifest.xml` 파일에 카카오 로그인 콜백을 위한 Activity 및 intent-filter 추가
- 카카오 SDK를 사용하여 카카오 로그인 기능 구현 - SocialLoginDataSource 인터페이스 및 KakaoDataSource 구현체 추가 - SocialLoginProcessor를 통해 소셜 로그인 방식 동적 선택 - AuthRepository에 performSocialLogin 메서드 추가하여 providerType에 따라 로그인 처리 분기 - LoginViewModel에서 performLogin 메서드를 통해 소셜 로그인 요청 - LoginScreen에 카카오 로그인 버튼 추가 및 로그인 로직 연동
DataStoreModule을 AuthRepositoryImpl에서 별도의 파일로 분리했습니다.
- DataStore를 사용한 토큰 저장 및 관리 클래스 (`TokenPreferences`) 추가 - 토큰 갱신 요청 및 응답 모델 (`TokenRefreshRequest`, `TokenRefreshResponse`) 추가 - `AuthRepository` 및 `AuthRepositoryImpl`에 토큰 갱신 로직 추가 - `TokenInterceptor`에서 Authorization 헤더를 동적으로 추가하고, 인증이 필요 없는 요청은 제외하도록 수정 - `LoginResponse` 모델에서 `refreshTokenInfo`를 `refreshToken`으로 변경 - `AuthService`에 토큰 갱신 API (`/auth/renew`) 인터페이스 추가
…o feat/#21-feat_친구_프로필_api_연동 # Conflicts: # Near/app/src/main/java/com/alarmy/near/presentation/feature/main/NearNavHost.kt # Near/app/src/main/res/values/strings.xml
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.
작업 내용
친구 프로필 API 및 데이터 연동
확인 방법
홈 -> 친구 클릭 -> 메뉴바 -> 수정
로직 흐름
FriendProfile,FriendProfileEditor -> FriendRepository -> FriendService
참고 사항
Type-safe Navigation에 타입 전달 커스텀이 필요해서, NavType 재선언해서 구현했습니다!
직렬화 비용 절감을 위해 parcelize 적용했어요!
관련 이슈