Skip to content

Conversation

@baracudda
Copy link

When dealing with flavors inside libraries, sub-libraries, and using one library vs another one, things in Gradle get pretty complex fast. Struggled with it for several days until we chanced upon your example code and used it to expand it to suit our needs. Figured a pull request to show you what we came up with that worked is "thank you" for inspiring us to reach new heights. :)

Basically, there is two flavors, "dev" and "prod" which will load up MyLib using those flavors which will then either load up SubLib1 or SubLib2, depending on the flavor. Two more flavors were added to mimic an application where the app is basically a shell and a library contains most of the app code, named AppAsLib here in the example. So "applibdev" and "applibprod" will load up AppLib which loads MyLib and then SubLib1 or SubLib2 depending on the dev/prod flavor.

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

Successfully merging this pull request may close these issues.

1 participant