-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Dependency cleanup #8001
Dependency cleanup #8001
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,13 @@ plugins { | |
} | ||
|
||
dependencies { | ||
api(projects.app.core) | ||
|
||
implementation(projects.app.ui.legacy) | ||
implementation(projects.app.core) | ||
implementation(projects.core.ui.legacy.designsystem) | ||
implementation(projects.mail.common) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It feels like this should be tackled once we actually work on removing the dependency on |
||
|
||
implementation(libs.androidx.appcompat) | ||
implementation(libs.timber) | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,22 @@ plugins { | |
} | ||
|
||
dependencies { | ||
implementation(projects.app.ui.legacy) | ||
implementation(projects.app.core) | ||
api(projects.app.core) | ||
api(projects.app.ui.base) | ||
api(projects.app.ui.legacy) | ||
api(projects.mail.common) | ||
Comment on lines
+6
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This dramatically increases the API surface of the feature module. Why? |
||
|
||
implementation(libs.preferencex) | ||
api(libs.preferencex) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why make this particular library an API dependency? |
||
|
||
implementation(projects.core.ui.legacy.designsystem) | ||
|
||
implementation(libs.androidx.fragment) | ||
implementation(libs.androidx.lifecycle.viewmodel) | ||
implementation(libs.androidx.preference) | ||
implementation(libs.timber) | ||
|
||
testImplementation(libs.robolectric) | ||
testImplementation(libs.robolectric.shadows) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The API surface of |
||
} | ||
|
||
android { | ||
|
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 make
:app:core
part of:feature:widget:message-list
's API surface? Ideally a feature module would never make any of its dependencies part of its public API.