Skip to content

Support for creating sample content in the New Project Wizard (AS) #2975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pq opened this issue Dec 18, 2018 · 9 comments
Closed

Support for creating sample content in the New Project Wizard (AS) #2975

pq opened this issue Dec 18, 2018 · 9 comments

Comments

@pq
Copy link
Contributor

pq commented Dec 18, 2018

Sub-task from #2968 and the corollary in Android Studio to IDEA support in #2974.

The Android Studio project creation flow provides a few places to add hooks.

Candidate places:

1. project configuration (first page)

screen shot 2018-12-18 at 5 38 34 am

2. project configuration (second page)

screen shot 2018-12-18 at 5 38 46 am

@stevemessick: thoughts?

@stevemessick
Copy link
Member

stevemessick commented Dec 18, 2018

Do you want to allow for samples using the package template? That form of the wizard currently has only one page.

Also, for apps and plugins, the option to generate kotlin/swift is on the second page. You'd need to make the sample dependent on the language, I'd think.

@pq
Copy link
Contributor Author

pq commented Dec 19, 2018

Do you want to allow for samples using the package template?

I think we want to limit this to applications. (At least to start?)

@stevemessick
Copy link
Member

That would cover the greatest number of users, I suppose. But I'd prefer to see samples for all project types, especially plugins. The thing is, I don't know what the future of Module and Application are, in light of add2app. One of them may be going away.

@pq
Copy link
Contributor Author

pq commented Dec 19, 2018

If we did support sample templates in package projects, would the content need to be any different? (I guess I imagined it might but maybe that was over-thinking.)

@stevemessick
Copy link
Member

stevemessick commented Dec 19, 2018 via email

@pq
Copy link
Contributor Author

pq commented Dec 19, 2018

I imagined that too.

/cc @gspencergoog who surely knows more...

@gspencergoog
Copy link

There are currently only samples for applications. The Module type has been merged into the app type anyhow, for add2app. An app is now basically a module that has has its hidden directories instantiated.

We could make samples for plugins, but there's a bit of work we'd have to do to make new templates for them.

@terrylucas
Copy link
Contributor

Another user #3131 suggested a more useful sample, instead of our default calculator class, would be a subclass widget or some other fluttery thing - seem more useful than Calculator.

@stevemessick
Copy link
Member

Fixed with #3134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants