-
Notifications
You must be signed in to change notification settings - Fork 54
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
Migrate Dependency Injection Framework from Hilt to Koin #237
base: kmp
Are you sure you want to change the base?
Conversation
listOf( | ||
mainViewModelModule, | ||
marketListFeatureModule, marketDetailFeatureModule, |
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.
Break it into two lines.
@@ -9,7 +9,7 @@ android { | |||
|
|||
dependencies { | |||
projects.apply { | |||
implementation(appWatch.ui) | |||
api(appWatch.ui) |
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.
Why do you make it api
rather than implementation
?
@@ -14,8 +15,8 @@ configurations.all { | |||
|
|||
dependencies { | |||
projects.apply { | |||
implementation(feature.marketlist) | |||
implementation(feature.marketdetail) | |||
api(feature.marketlist) |
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.
And Why api
?
@dagger.hilt.android.lifecycle.HiltViewModel *; | ||
} | ||
-keep,@dagger.hilt.InstallIn class * { *; } | ||
-keep class dagger.hilt.** { *; } | ||
-dontwarn dagger.internal.codegen.ComponentProcessor |
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.
Can we remove this line too?
|
||
modules( | ||
listOf( | ||
marketListFeatureModule, marketDetailFeatureModule, |
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.
Break this line into two lines
@@ -14,7 +14,7 @@ configurations.all { | |||
|
|||
dependencies { | |||
projects.apply { | |||
implementation(data.marketRepository) | |||
api(data.marketRepository) |
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.
Why api
?
MarketDetailViewModel( | ||
get(), get(), get(), get() | ||
) |
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.
Put it into one line.
@@ -14,7 +14,7 @@ configurations.all { | |||
|
|||
dependencies { | |||
projects.apply { | |||
implementation(data.marketRepository) | |||
api(data.marketRepository) |
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.
Why api
?
MarketListViewModel( | ||
get(), get(), get(), get() | ||
) |
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.
Put it into one line
api(feature.marketlist) | ||
api(feature.marketdetail) |
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.
Why api
?
Description:
This Pull Request migrates the dependency injection framework used in the project from Hilt to Koin. The changes aim to simplify dependency management, improve modularity, and align with the team’s preferences or project goals.
Changes Made:
Next Steps: