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

Upgrade Dagger #212

Merged
merged 2 commits into from
Feb 26, 2021
Merged

Upgrade Dagger #212

merged 2 commits into from
Feb 26, 2021

Conversation

vRallev
Copy link
Collaborator

@vRallev vRallev commented Feb 26, 2021

And add a test case for an assisted injection scenario that previously failed.


@Module
object DaggerModule1 {
@Provides @Named("") fun provideService(): AssistedService = AssistedService(5, "Hello")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That provider method previously triggered an error in Dagger. Without the qualifier the same error happens. Anvil never had this restriction ¯\(ツ)

google/dagger#2370

@@ -5,7 +5,7 @@ ext {
daggerVersion = '2.33'
espressoVersion = '3.2.0'
kotlinVersion = project.hasProperty('square.kotlinVersion') ?
project.getProperty('square.kotlinVersion') : '1.4.30'
project.getProperty('square.kotlinVersion') : '1.4.31'

Choose a reason for hiding this comment

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

nit: commit message says this updates dagger but this commit only updates the version of kotlin.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's actually a 2nd commit that I squeezed in 🙈

@vRallev vRallev merged commit afce457 into main Feb 26, 2021
@vRallev vRallev deleted the ralf/dagger branch February 26, 2021 20:23
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.

None yet

3 participants