Skinning Android app with Maven build profiles

前端 未结 2 1374
逝去的感伤
逝去的感伤 2020-12-03 16:10

I\'ve got mavenized Android application and customer wants support for the skinning at build time.

For example: mvn clean install -P Developer, mvn clean install -P

2条回答
  •  生来不讨喜
    2020-12-03 16:28

    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:

    ${project.basedir}/res-customer1 ${project.basedir}/res-customer2

    etc...

提交回复
热议问题