[TIMOB-25053] iOS: Add a property to get the CFBundleVersion
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | ios |
Reporter | Luc-Edmond Gaspard |
Assignee | Unknown |
Created | 2017-07-03T16:17:46.000+0000 |
Updated | 2018-02-28T19:55:21.000+0000 |
Description
It would be useful to have a property that returns the CFBundleVersion. Sort of like Ti.App.Android.appVersionCode does for Android.
When you specify 1.0.0.3 in your
<version />
inside tiapp.xml, doesn't that already give the correct value withTi.App.getVersion()
. The discrepancy betweenCFBundleShortVersionString
andCFBundleVersion
should only be thatCFBundleVersion
is contains the full version (e.g. 1.0.0.3) andCFBundleShortVersionString
the readable version (e.g. 1.0.0). During build, when specifying 1.0.0.3 for example,Ti.App.getVersion()
will give you that value I guess. Can you try it out and provide feedback?I'm using a custom CFBundleVersion, that is not in the x.y.z format.