On Thu, Nov 17, 2011 at 13:05, Jesse MacFadyen <purplecabb...@gmail.com>wrote:

> Runtime js code can look at device.phonegap for the version.
>
> http://docs.phonegap.com/en/1.2.0/phonegap_device_device.md.html#device.phonegap


ah, didn't see that.  Not clear what's being returned here, presumably a
string like "1.2.0".  We may want to make it more elaborate, like
separating out major/minor/fix numbers or something, depending on what we
do in the native side.


> For build-time I like the #define approach, but this can vary by platform.
>

Right.  For Java-based platforms, presumably we'd have final static
Thing(s) with the version #'s; for C-based platforms, preprocessor defines
make more sense.  We can evaluate a couple of different styles of these if
we want to move forward on it.

-- 
Patrick Mueller
http://muellerware.org

Reply via email to