android-hilt icon indicating copy to clipboard operation
android-hilt copied to clipboard

KSP processor

Open sczerwinski opened this issue 3 years ago • 1 comments

Implement hilt-processor as KSP processor (either in the same library, or as a separate hilt-processor-ksp library).

The KSP processor should duplicate the functionality of the existing Kapt processor, but it should be managed by KSP instead.

Ticket for official KSP support for Hilt: https://issuetracker.google.com/issues/179057202

sczerwinski avatar Dec 24 '21 17:12 sczerwinski

This is also an opportunity to properly refactor existing Kapt processor.

EDIT: Both processors use completely different means of visiting code structure and code generation. No point in refactoring Kapt processor, which will be deprecated as soon as Hilt KSP processor is ready.

sczerwinski avatar Dec 24 '21 17:12 sczerwinski

Any reason you didn't implement it already? What are the current blockers to write a hilt extension using KSP?

Kshitij09-sc avatar Dec 01 '22 06:12 Kshitij09-sc

Thanks for your question, @Kshitij09-sc

The main reason is me working on other projects. KSP simply wasn't high enough priority, as kapt is still necessary for projects using Hilt anyway.

I'll try to spend some time on this issue as soon as I get a bit less busy elsewhere.

sczerwinski avatar Dec 02 '22 17:12 sczerwinski

v1.4.0 has been released.

sczerwinski avatar Apr 23 '23 16:04 sczerwinski