A while ago, I wrote about how to build multiple versions of an Android app (like a free and a donate version). That was a long post. Compare it to this:
project = AndroidProject('AndroidManifest.xml', sdk_dir='/opt/android') for version in ('com.foo.app.free, 'com.foo.app.donate'): apk = project.build("%s.apk" % version, package_name=version) apk.sign('keystore', 'alias', 'name') apk.align()
The Github page has more usage samples.