1

I need to build the same application 5 times with 5 packages. I'm using , it's working, all the apps can be on one phone.

But I need to use C2D_MESSAGE permission I tried this answer

<uses-permission android:name="${xxx.package}.permission.C2D_MESSAGE" />

It's not working as the androidManifest is moved before the renameManifestPackage action. My app's not compiling, because the filtered manifest is use, and renameManifestPackage work for the other manifest.

Is there any way to modify androidManifest before renameManifestPackage, to set uses-permission ?

Community
  • 1
  • 1
Beuj
  • 602
  • 6
  • 20

1 Answers1

0

You can configure the location of the AndroidManifest.xml used the android-maven-plugin with this parameter : <androidManifestFile>

The default value is ${project.basedir}/AndroidManifest.xml , so if you change it so that it takes the filtered AndroidManifest.xml (somewhere under your target directory, it's difficult to say precisely where it will be without your pom.xml) instead of the one at project root: it will probably solve your problem.

ben75
  • 29,217
  • 10
  • 88
  • 134
  • I already done this, but the renameManifestPackage didn't work, the app couldn't compile because of a package name problem. – Beuj Oct 14 '13 at 15:18