jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

Support for aapt --rename-manifest-package #191

Open migo opened 11 years ago

migo commented 11 years ago

Hi,

I'm trying to create two versions of my android app. That means that I have to have two different package names in the AndroidManifest file.

An easy solution to this problem would be to use aapt --rename-manifest-package, as described here: http://www.piwai.info/renaming-android-manifest-package/

I think aaptGenerateTask in AndroidBase.scala would have to be changed to support this package name parameter.

appamatto commented 11 years ago

That's a good idea, I did this with --custom-package which is less useful because it doesn't resolve the .Foo class names.

migo commented 11 years ago

Hi Matthew,

is the --custom-package option already possible with android-plugin? It does not seem to be. Do you have some code that could be adapted to --rename-manifest-package?