Gradle flavors vs. Git branching

旧巷老猫 提交于 2019-12-11 03:46:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!