screen-generator-plugin icon indicating copy to clipboard operation
screen-generator-plugin copied to clipboard

FeatureRequest: Optional files add with variables available in Code Template

Open DragunOleg opened this issue 3 years ago • 0 comments

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

  • optional file creation under checkbox scope (UseCase, Repo)
  • possibility to write something like this in Code Template
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

DragunOleg avatar Oct 05 '21 12:10 DragunOleg