OSDN Git Service

Make ApkBuilder create filenames supported by older rules.
authorXavier Ducrohet <xav@android.com>
Wed, 26 Aug 2009 03:01:56 +0000 (20:01 -0700)
committerXavier Ducrohet <xav@android.com>
Wed, 26 Aug 2009 21:58:56 +0000 (14:58 -0700)
commitf402eca6d9b587af0f3fe87ad74ab0e87fc040f1
tree641ce4ae7b3319fec073d8f9e155b73b040ad0a7
parent428b8475ead1e4575419064a722b8fcbbe2a640f
Make ApkBuilder create filenames supported by older rules.

'ant install' must know the debug apk filename so newer naming scheme breaks
on older rule files (1.5 and earlier).
The fix is to check for the presence of the property naming the debug,
signed, unaligned package. If the property is present, then we use
the new naming scheme ({base}[-{config}]-debug-unaligned.apk), else we use
the old one ({base}-[-{config}]-debug.apk).

Also merge the install/reinstall targets, since 'adb install -r <file>'
works even if the apk was not yet installed.

Change-Id: Id0670610a6539a3f48c955756955f950039c3cd0