Skip to content
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

Retrofit 설정 #13

Merged
merged 6 commits into from
Jul 3, 2023
Merged

Retrofit 설정 #13

merged 6 commits into from
Jul 3, 2023

Conversation

laco-dev
Copy link
Contributor

Issue

Overview (Required)

  • data 모듈을 안드로이드 모듈로 변경
  • 네트워크 통신을 위한 Retrofit, OkhttpClient 기본 설정 추가
  • kotlin-serialization 플러그인 및 의존성 추가

@laco-dev laco-dev requested a review from wisemuji June 28, 2023 13:12
Comment on lines -2 to +3
id("droidknights.kotlin.library")
id("droidknights.kotlin.hilt")
id("droidknights.android.library")
id("droidknights.android.hilt")
Copy link
Member

Choose a reason for hiding this comment

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

왜 Diff로 잡혔을까요? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

네트워크 외에도 로컬 관련 로직이 포함될 것 같아서 kotlin --> android 모듈로 변경되었습니다.

@Provides
@Singleton
fun provideRetrofit(okHttpClient: OkHttpClient): Retrofit = Retrofit.Builder()
.baseUrl(BASE_URL)
Copy link
Member

Choose a reason for hiding this comment

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

Kotlinx serialization은 의존성만 추가하셨는데 ConverterFactory 등록도 같이 해주시면 어떨까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@laco-dev laco-dev requested a review from wisemuji June 30, 2023 13:20
@laco-dev
Copy link
Contributor Author

laco-dev commented Jul 3, 2023

@wisemuji
진행을 위해 병합 해두겠습니다.
추가적인 수정사항 필요하면 이슈 만들어 주세요.

@laco-dev laco-dev merged commit 5e8e669 into droidknights:main Jul 3, 2023
@wisemuji
Copy link
Member

wisemuji commented Jul 3, 2023

알림을 놓쳤네요 🥲 확인했습니다!

@laco-dev laco-dev added the enhancement New feature or request label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2023 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retrofit 설정
3 participants