Skip to content

feat: Add typed qualifier to runtime path + custom qualifier to precompiled path#204

Merged
harrytmthy merged 1 commit into
mainfrom
feature/add-custom-qualifier
Apr 25, 2026
Merged

feat: Add typed qualifier to runtime path + custom qualifier to precompiled path#204
harrytmthy merged 1 commit into
mainfrom
feature/add-custom-qualifier

Conversation

@harrytmthy

Copy link
Copy Markdown
Owner

Summary

This PR adds custom qualifier annotation support to Stitch's precompiled path, including field injection, constructor injection, @Provides, @Binds, dependency resolution, and generated Injector.get(...) support.

Implementation Details

Qualifier resolution is now derived directly from each annotated symbol instead of relying on a predefined qualifier scan phase, which allows Stitch to recognize custom marker qualifiers annotated with @Qualifier, even when they come from other modules. This PR also adds validation to reject multiple qualifiers on the same symbol, introduces Qualifier.Custom in the KSP model, and updates generated injectors to resolve custom qualifiers through both named(...) and the new type-based typed(...) runtime qualifier. Together, these changes make common Dagger and Hilt qualifier patterns such as @Production and @Staging work end-to-end in Stitch's precompiled path.

Closes #203

@harrytmthy harrytmthy added this to the 1.0.0 milestone Apr 25, 2026
@harrytmthy harrytmthy self-assigned this Apr 25, 2026
@harrytmthy harrytmthy added the enhancement New feature or request label Apr 25, 2026
@harrytmthy
harrytmthy enabled auto-merge (squash) April 25, 2026 11:24
@harrytmthy harrytmthy changed the title feat: Add typed qualifier to runtime path + custom qualifier to preco… feat: Add typed qualifier to runtime path + custom qualifier to precompiled path Apr 25, 2026
@harrytmthy
harrytmthy merged commit a2bf224 into main Apr 25, 2026
1 check passed
@harrytmthy
harrytmthy deleted the feature/add-custom-qualifier branch April 25, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add custom qualifier annotation support to the precompiled path

1 participant