-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update Anvil and contribute multibindings for workers #1155
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
Conversation
| implementation AndroidX.room.rxJava2 | ||
| kapt AndroidX.room.compiler | ||
| testImplementation AndroidX.room.testing | ||
| androidTestImplementation AndroidX.room.testing |
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.
We have room entities here but we don't need to have the room annotation processor here. We just need access to the annotations. The app module will take care of the code generation.
This should also improve build times a bit
| version.com.nhaarman.mockitokotlin2..mockito-kotlin=2.1.0 | ||
| version.google.android.material=1.2.1 | ||
| version.google.dagger=2.27 | ||
| version.google.dagger=2.32 |
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.
Updated dagger to have the same version than anvil 2.2.0.
| id 'com.android.library' | ||
| id 'kotlin-android' | ||
| id 'kotlin-kapt' | ||
| id 'com.squareup.anvil' |
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.
kapt is not needed here. it should improve a bit build times
malmstein
left a comment
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.
Updates and fresh installs working as expected, 💯 for removing code. Great stuff @aitorvs
Task/Issue URL: https://app.asana.com/0/414730916066338/1200105747936521/f
Tech Design URL:
CC:
Description:
This PR updates anvil to version 2.2.0. Anvil now provides a new handy annotation
ContributesMultibindingthat allow us to contribute dependencies into sets, like we do for eg. workers or view model factories.Using that annotation allow us to remove a bunch of boilerplate code.
In this PR we:
Steps to test this PR:
Internal references:
Software Engineering Expectations
Technical Design Template