-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added check for
generateCompanionExtensions
to ensure correct compo…
…nent creation calls (#21) kotlin-inject has a ksp flag: `me.tatarka.inject.generateCompanionExtensions` That can optionally use component companion objects to instantiate themselves instead of call off the component `KClass` like so: ```kotlin UserComponent.create(…) vs UserComponent::class.create(…) ``` This PR checks that flag and changes how we call component creation under the hood in generated code --------- Co-authored-by: Drew Heavner <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters