Skip to content

Conversation

@s9hn
Copy link
Member

@s9hn s9hn commented May 7, 2025

📌𝘐𝘴𝘴𝘶𝘦𝘴

📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯

  • Datastore 모듈을 구현했습니다.
  • Network 모듈과 마찬가지로, Datastore 구현체를 제공하고 LocalDataSource를 구현합니다.

💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴

공식문서의 권장에 따라 SharedPreference를 제거하고, 비동기적이며 일관된 트랜잭션이 가능한 Datastore로 마이그레이션 합니다.
간단히 키-쌍 값을 사용해 토큰을 관리하므로, Preferences Datastore 방식을 사용합니다.
유저 정보를 관리하는 Datastore를 추가할 경우, Proto Datastore를 사용하면 좋을 것 같습니다.
Datastore는 별도의 보안 로직이 없으므로, 추후 보안 모듈도 추가 구현 예정입니다.

@s9hn s9hn self-assigned this May 7, 2025
@s9hn s9hn added 🍯 [FEAT] 새로운 기능을 개발합니다. ⚖️ 재상 세훈 전지적 세훈 시점 🚧 [BUILD] 빌드 업무 수정, 패키지 매니저 수정합니다. labels May 7, 2025
@github-actions github-actions bot requested review from junseo511, m6z1 and yeonjeen May 7, 2025 08:41
@s9hn s9hn changed the title Feat/662 feat: Datastore 모듈 구현 May 7, 2025
Copy link
Member

@m6z1 m6z1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코멘트 확인부탁드려요 👍
고생하셨습니다

override suspend fun postLogin(
platform: AuthPlatform,
authToken: AuthToken,
) = when (platform) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c: 반환 타입 명시해주시면 좋을 것 같아요!

Comment on lines 16 to 21
fun toData(): AccountEntity =
AccountEntity(
authorization = authorization,
refreshToken = refreshToken,
isRegister = isRegister,
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a: 기존에는 mapper 를 따로 파일 분리했는데 dto 에서 매퍼를 만드신 이유가 있나욥

@s9hn s9hn merged commit 7f608e7 into feat/657 May 8, 2025
@m6z1 m6z1 deleted the feat/662 branch August 11, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚖️ 재상 세훈 전지적 세훈 시점 🚧 [BUILD] 빌드 업무 수정, 패키지 매니저 수정합니다. 🍯 [FEAT] 새로운 기능을 개발합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants