Skip to content
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

How to auto add manifest when creating a set of Activity files #1

Open
Jiang00 opened this issue Dec 8, 2020 · 1 comment
Open

Comments

@Jiang00
Copy link

Jiang00 commented Dec 8, 2020

How to auto add manifest when creating a set of Activity files

@steewsc
Copy link
Owner

steewsc commented Dec 21, 2020

How to auto add manifest when creating a set of Activity files
@Jiang00

Please checkout the latest commit (fbd8fbe)
I had to add wizard-template.jar from AS plugins (it's in AS-installation-dir/plugins/android/lib/) to have their extensions available.
Check generateManifest in https://github.com/steewsc/template/blob/main/src/main/kotlin/other/mviSetup/mviSetupRecipe.kt#L36
It will generate new manifest (with activity) to merge it with existing.

I'm still looking for a way without wizard-template.jar because it makes it hang when you invoke the wizard.
You can go through the jar source and just extract the part for generating manifest and then remove jar from deps (that should make it faster)
Source (the one I found):
https://android.googlesource.com/platform/tools/base/+/refs/heads/studio-master-dev/wizard/template-impl/src/com/android/tools/idea/wizard/template/impl?autodive=0%2F%2F%2F%2F&fbclid=IwAR31Nz7layKWFaR7RH8WAmI67gqf82e30r1ebgoqmrpXZVkaO9eweBCsrtw

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

No branches or pull requests

2 participants