gmatyszczak / screen-generator-plugin

Apache License 2.0
147 stars 28 forks source link

FeatureRequest: Optional files add with variables available in Code Template #20

Open DragunOleg opened 3 years ago

DragunOleg commented 3 years ago

Amazing job done here! Thanks alot from my team for this plugin. Working great already, but with this feature implemented it is going to be godlike one!

Right now i have 6 files for MVP, 7 for MVP+UseCase, 9 for MVP+UseCase+Repo with some difference inside them based on their number. So the only solution now is 3 category with copypaste for each file. Any edit in presenter = do it in 3 places instead of one.

It would be so nice to have possibility to add custom checkbox for

class %UseCaseName% @Inject constructor(
  backgroundContext: BackgroundContext,
<#if createRepositoryCheckbox>
  private val repo%RepoName%: %RepoName%Repository
</#if>
):...

What is working for me now is 3 category with copypaste for each template-change image