Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
supporting variants (Flavor+buildTypes) in Grazel
With this PR grazel will create all bazel targets for all available build variants(including unit tests) in the application.
It supports flavored configurations like:
targets are created in BUILD.bazel file with the following naming convention
"target-name-flavor1-debug"
for example
sample-android-flavor1-debug
Resources are also managed based on the variant and will be added to their respective bazel targets.
Internal project dependencies are managed based on
for example in the following graph
A (with flavor [googleplay, hwi] ) -> B
if B is an android project it should have the respective flavors or at least the same build types, otherwise, the bazel target cannot be linked, and migration will fail. (if B is a java/Kotlin library it will be added as a dependency simply)
Known Issues:
At the moment load macros are unnecessarily repeated
external dependencies with flavor support with the usage of maven classifier is not supported yet
implementation "com.grab:library-name:version:classifier"