incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Mueller <pmue...@gmail.com>
Subject Re: Callback version available in platform natives and JS
Date Thu, 17 Nov 2011 19:10:27 GMT
On Thu, Nov 17, 2011 at 13:05, Jesse MacFadyen <purplecabbage@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message