Skip to content

Commit

Permalink
Merge pull request #65 from zeoflow/bug/hilt
Browse files Browse the repository at this point in the history
Made hilt generated class open
  • Loading branch information
teogor authored Oct 27, 2022
2 parents 75ce54f + c791c75 commit a1af0ef
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ class EntityBuilder(
)

val typeSpec = TypeSpec.classBuilder(className())
.addModifiers(KModifier.PUBLIC)
.addKdoc("Code generated by Memo's Compiler. @see [link](https://github.com/zeoflow/memo)\n\n")
if (entityData.isHilt) {
typeSpec.addModifiers(KModifier.OPEN,KModifier.PUBLIC)
} else {
typeSpec.addModifiers(KModifier.PUBLIC)
}
typeSpec.addKdoc("Code generated by Memo's Compiler. @see [link](https://github.com/zeoflow/memo)\n\n")
.addKdoc("Code generated based on the [${entityData.entityName}]")

if (entityData.isHilt) {
Expand Down

0 comments on commit a1af0ef

Please sign in to comment.