This is done by mapping AGP's AndroidSourceSet to newly added BazelSourceSet. During mapping, existence of the directories are checked for.
After this source, Gradle like variant declaration can be closely mimicked as below and resources, manifest and assets will be merged before actual build begins.
This PR implements support for
resource_sets
API introduced in https://github.com/grab/grab-bazel-common/pull/165.This is done by mapping AGP's
AndroidSourceSet
to newly addedBazelSourceSet
. During mapping, existence of the directories are checked for.After this source, Gradle like variant declaration can be closely mimicked as below and resources, manifest and assets will be merged before actual build begins.