[TIMOB-315] Android: Build Doesn't Handle Version for AndroidManifest.xml
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:52:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, defect |
Reporter | Don Thorp |
Assignee | Don Thorp |
Created | 2011-04-15T02:27:08.000+0000 |
Updated | 2011-04-17T01:52:41.000+0000 |
Description
The AndroidManifest.xml generator doesn't use the version from tiapp.xml for the string version. There currently doesn't exist a way to specify the integer version required by Android for the market in tiapp.xml.
The workaround is to use a custom android manifest for now.
i'm moving this to 1.5 so we can close this out but i think this is fixed?
We don't currently have a way for the developer to provide increment or set the versionCode. versionName should be what ever string they enter. Currently the only way to handle this is with a custom manifest file. Since we don't have project level settings yet.
android:versionCode="1" android:versionName="1"
#1594 accomplishes this for Titanium 1.5. Attributes put on the <android><manifest> element in tiapp.xml are carried over to the AndroidManifest.xml. So you could have, for example, the following in tiapp.xml:
Those android:versionXXX attributes will then find they're way on to the <manifest> in AndroidManifest.xml. (In this example, supports-screens and uses-sdk will also get set.)