问题
I am at a point where it'd be great to maintain a demo version, a dev version, and a stable version for my Android app. I'm still kind of new to Gradle and was wondering what are the advantages / disadvantages of using product flavors in Gradle vs just maintaining a separate branch altogether in Git?
After reading up on how to use product flavors, it feels like maintaining and building code from different branches is a neater solution, instead of having multiple flavors folders in my src directory. Am I wrong in thinking so? I just want to know if I'm doing this correctly.
Any help will be appreciated. Thanks!
来源:https://stackoverflow.com/questions/28169625/gradle-flavors-vs-git-branching