Hi,
We are currently using Gradle in our project, but we need to speed up things, so we are thinking about switching to Buck. We have tried to set it up, but for some reason we cannot get the manifests to merge correctly. We have multiple flavors (free, paid) and build types (debug, release). We have one manifest file per flavor/build type, as some flavors have certain functionality we don't want to have under certain scenarios (no ads in the paid, no maps in free, etc).
Our approach is to use Buck just for speeding up developing time, which means we don't have to deal with build debug vs release issues, but flavors are still important. It seems one can only specify a manifest file when using the "android_binary" rule, but (please, correct me if I am wrong) this is only used for generating the final .apk file. The issue we are facing is that the manifest included in the final .apk file is missing all the other flavors' manifests used in the build (that is, they don't get merged), despite the dependencies between different modules are correctly established.
As an example, our app has a "shared" module, which has the core functions of the app (this module is used by all flavors). Then we have an "app" module, which contains different flavors (free, paid) and as many manifests as flavors. If we now wanted to build the free app (in Gradle this would result into merging main -top level boilerplate-, debug -debug stuff-, free, and core manifests, in that precise order), the manifest in the generated .apk would only have the contents of free's manifest, ignoring shared's manifest, though shared has been correctly added as a dependency.
What are we missing? How can we get Buck to merge all manifests correctly?
Thanks in advance.