I have an Android app published on the Android Market. I prepare the builds for release by simply typing ant release
. I have a keystore configured so that I can build the final signed, obfuscated, zipaligned market-ready APK in a single step. I have not modified any of the build.xml
files other than to point them to my keystore.
Now, I need to release the app on the Amazon store too. This requires me to produce an unsigned build. As part of the process of building the normal release build as described above, a MyApp-release-unsigned.apk
file is produced in the bin
directory. This looks promising, except the timestamp of this file is earlier than the -unaligned.apk
variant which is also produced. This suggests that the -unsigned.apk
has not been zipaligned and is therefore not ready for release.
What modifications do I need to make to the build process so I can produce an (unsigned, obfuscated, zipaligned) Amazon-ready APK with a single command?
You don't need to zipalign the package, because, according to this question, amazon will zipalign the package after they sign it.
And according to this page on the Android developer site, zip aligning of the unsigned package is useless, because the signing operation that amazon will do will de-align the package.