Question

I have a android project that is customised for customers. So I have build 2 apk's The first is the common apk , which is the actual application that cannot start by itself, the second apk is client specific. This calls the first one passing the client name as the parameter so that the general apk can work according the client name passed.

This is turning out to be inefficient as the client number keeps growing. So I want to have a single apk, but build separately for different customers. I don't want to duplicate the project for each customer separately. How can we do this using maven?

From maven blogs,they don't recommend this. Any help much appreciated

Was it helpful?

Solution

Make a project for each client which only contains resources like names. Bundle your main application as source apk with the following plugin: ApkSourcesDependency

And finally use your main Application as dependency in your client pom. This can be generalized with a parent pom.

<dependency>
    <groupId>enter.groupid.here</groupId>
    <artifactId>myapp-common-stuff</artifactId>
    <type>apksources</type>
</dependency>

After that just build every client project

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top