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

Add support for Hilt AssistedInject #271

Merged
merged 4 commits into from Dec 24, 2023

Conversation

ghostbear
Copy link
Contributor

@ghostbear ghostbear commented Dec 9, 2023

The latest Dagger/Hilt version added support for AssistedInject with HiltViewModel.

Add support for using @AssistedInject with @HiltViewModel. (google/dagger@8327177).

https://github.com/google/dagger/releases/tag/dagger-2.49

And this PR adds that functionality to Voyager.

@DevNatan DevNatan added enhancement New feature or request di: hilt "Hilt" dependency injection issue labels Dec 10, 2023
ghostbear and others added 2 commits December 10, 2023 08:48
Co-authored-by: Natan Vieira <natanvnascimento@gmail.com>
@DevNatan
Copy link
Collaborator

DevNatan commented Dec 10, 2023

LGTM just wait @DevSrSouza or @adrielcafe approval 👍🏽

@DevSrSouza
Copy link
Collaborator

Thanks for the contribution and sample code!

Can you annotate the function with @Experimental for now? we should soon work to try to merge all Hilt functions into one, but for now we can provide this as experimental (ABI only)

@DevSrSouza DevSrSouza merged commit fdc4b99 into adrielcafe:main Dec 24, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
di: hilt "Hilt" dependency injection issue enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants