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

Assemble only affected Apps in multimodle project #195

Closed
wartingep opened this issue Jan 18, 2023 · 1 comment
Closed

Assemble only affected Apps in multimodle project #195

wartingep opened this issue Jan 18, 2023 · 1 comment

Comments

@wartingep
Copy link

On our gradle project we have several apps and lots of modules. Is there any way to only assemble the APKs of affected apps?

@joshafeinberg
Copy link
Member

Yes, you can use AffectedModuleDetector.isProjectAffected(subproject) to create a custom task and use that to decide if your project should build. So you could see AffectedModuleDetector.isProjectAffected("app1") and AffectedModuleDetector.isProjectAffected("app2") and if only the first one returns true then you can build app2 only

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