For #defines perhaps we can take a cue on how Apple does it. In Xcode
--> File --> Open Quickly... --> type in "Availability.h".
http://www.opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/Availability.h
http://www.opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/Availabili
On Thu, Nov 17, 2011 at 14:17, Shazron wrote:
> For iOS, there is a version method available in native code as well:
>
> https://github.com/callback/callback-ios/blob/master/PhoneGapLib/Classes/PhoneGapDelegate.m#L149-170
>
> Only a runtime approach - so from a plugin, you would call:
> NSString*
For iOS, there is a version method available in native code as well:
https://github.com/callback/callback-ios/blob/master/PhoneGapLib/Classes/PhoneGapDelegate.m#L149-170
Only a runtime approach - so from a plugin, you would call:
NSString* pgVersion = [PhoneGapDelegate phoneGapVersion];
There are
On Thu, Nov 17, 2011 at 13:05, Jesse MacFadyen 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".
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
For build-time I like the #define approach, but this can vary by platform.
Cheers,
Jesse
Sent from my iPhone5
On 2011-11-17, at 9:44 AM, Patrick Mueller
With the change of the JSON code from PhoneGap 1.1 to 1.2, I had a
potential issue that could perhaps had been avoided if I knew what version
of PhoneGap I was using, as a C preproccessor define, in my native code.
Specifically, I had used the SBJSON include (whatever name that was) in the
Barcode