[Android] Combine projects from multiple repos and build 1 application


I have my Android project divided into 4 different repositories on GitHub. I am not sure how I set up .yml file so that it combines code from all 4 repo and then builds an application.

App structure,

repo1: Project A (Application layer) (Project A depends on Project B)
repo2: Project B (Project B depends on Project C)
repo3: Project C (Project C depends on Project D)
repo4: Project D

Thanks so much!