I went looking for an answer to this, but didn’t find any that were satisfying. I would really love to see a technique (that would be easy to maintain) that would allow me to specify different permissions for android builds because they are different on Google Play and Amazon due to licensing / DRM integration.
In particular, I don’t like requiring the INTERNET permission on children’s apps. It sets off an alarm for many people who are concerned that other content may be dynamically downloaded. In fact, Amazon warns users of that when viewing my app in the app store. However, the only reason it’s there at all is because it’s required for the Google Play licensing check integration. Amazon has their own DRM solution that does not require me to declare any permissions at all… they do it all on their side by wrapping the APK from what I understand.
So I went hunting for an easy way to do this in my Corona projects… I like to automate as much as possible so I don’t have to remember all these little details when I go into “production mode” on a project and start building and testing for release on the various platforms. I couldn’t find an easy way to do this.
Given that Corona supports special builds (and special tags like “android” in the build.settings)… it seems reasonable for me to be able to put special settings in there per build target type as well. Actually, in this case, it would also be convenient for the Google Play builds with licensing enabled to infer the permissions since it’s really only for that purpose.
Anyways… any ideas are welcome. Just please don’t suggest that I keep a bunch of copies and rename them before each build. That’s the obvious workaround… and the solution I hate the most.