Skinning Android app with Maven build profiles

℡╲_俬逩灬. 提交于 2019-11-27 14:51:17

If you want to use different assets or resources for different buid profiles and if you even want to merge multiple such directories of each build differently, you can follow this great blog post:

https://ebuddytechblog.wordpress.com/2013/04/08/branded-android-builds-using-maven/

Based on the answer from yorkw, this solution works for me:

For each profile, resourceDirectory needs to be added into to the configuration of the android maven plugin.

For example:

<resourceDirectory>${project.basedir}/res-customer1</resourceDirectory> <resourceDirectory>${project.basedir}/res-customer2</resourceDirectory>

etc...

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