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

Feat: [공통] get_it을 사용한 의존성 주입 환경 구축 #31 #32

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

Yellowtoast
Copy link
Contributor

@Yellowtoast Yellowtoast commented Dec 17, 2023

Description

get_it을 사용하여 의존성 주입 구조를 구축하였습니다.
의존성 주입을 위해 Riverpod의 provider를 사용할 수도 있으나,
목적에 맞게 툴을 분리하는 것이 추후 기능의 의존도를 낮출 수 있을 것이라고 판단하여 get_it을 사용하였습니다.

  • app_binding : 바인딩 수행을 위한 클래스
  • locator : 특정 인스턴스를 찾거나 해제하기 위함
  • feature_di_interface : feature에서 의존성 주입이 필요한 요소들을 정의하기 위한 interface

** pubspec.yaml 파일도 get_it 추가하면서 정리하였습니다 **

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@Yellowtoast Yellowtoast self-assigned this Dec 17, 2023
@Yellowtoast Yellowtoast linked an issue Dec 17, 2023 that may be closed by this pull request
@Yellowtoast Yellowtoast force-pushed the 31-공통-의존성-주입-환경-구축 branch from 88e1c84 to ffc5e9f Compare December 17, 2023 09:45
@Yellowtoast Yellowtoast changed the title Feat: [공통] get_it을 사용한 의존성 주입 환경 구축 Feat: [공통] get_it을 사용한 의존성 주입 환경 구축 #31 Dec 17, 2023
Copy link
Contributor

@jamesleetu jamesleetu left a comment

Choose a reason for hiding this comment

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

LGTM

@Yellowtoast Yellowtoast merged commit d7da3b4 into dev Dec 17, 2023
@Yellowtoast Yellowtoast deleted the 31-공통-의존성-주입-환경-구축 branch December 17, 2023 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[공통] 의존성 주입 환경 구축
2 participants