Skip to content

Commit

Permalink
made hilt generated class open
Browse files Browse the repository at this point in the history
  • Loading branch information
teogor committed Oct 27, 2022
1 parent 75ce54f commit c791c75
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 c791c75

Please sign in to comment.