Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android ant build: debug and release targets

Tags:

android

ant

According to the 'help' target documentation:

  1. debug: builds the applications and signs it with a debug key
  2. release; builds the application: the generated APK file must be signed before it is published

Here is what I found, which is a bit different than what I expected:

debug: ignores keystore definitions in build.properties whether you specify them or not. Which kesystore file is it using? The same as Eclipse: the default debug.keystore file in your Documents and Settings?

It creates two files:

  1. -debug-unaligned.apk (signed, unaligned)
  2. -debug.apk (signed, aligned)

release: 'help' says it doesn't sign it. It creates these files:

  1. -unsigned.apk (unsigned, unaligned)

The next two are only if you have the values specified in build.properties:

  1. -unaligned.apk (signed, unaligned)
  2. -release.apk (signed, aligned)

Any helpful comments / verifications will be greatly appreciated.

like image 327
charlest Avatar asked Jun 10 '11 21:06

charlest


1 Answers

Which kesystore file is it using? The same as Eclipse: the default debug.keystore file in your Documents and Settings?

Yes.

like image 157
CommonsWare Avatar answered Oct 13 '22 00:10

CommonsWare