Variable package name with Maven Android Plugin

前端 未结 1 1831
一向
一向 2020-12-17 17:32

I\'m using the Maven Android Plugin to build my application.

Actually, I\'m building 3 \"branded\" versions of the same app (the app icon, colors, etc... change, bu

相关标签:
1条回答
  • 2020-12-17 18:24

    After further research, it appears to be fairly easy !

    You just need to add <renameManifestPackage> in the configuration of the Maven Android Plugin. Seems to work starting at version > 2.9.0 :

    <plugin>
        <groupId>com.jayway.maven.plugins.android.generation2</groupId>
        <artifactId>maven-android-plugin</artifactId>
        <version>2.9.0-beta-5</version>
        <configuration>
            ...
            <renameManifestPackage>${manifest_package}</renameManifestPackage>
        </configuration>
    </plugin>
    
    0 讨论(0)
提交回复
热议问题