HaxeExtension / extension-iap

Support for In-App Purchase
Other
70 stars 46 forks source link

Added Blackberry In-App purchase #25

Closed DanielUranga closed 9 years ago

DanielUranga commented 9 years ago

Also I converted IAP.hx so it containts a typedef that redirects to specific implementations depending on the platform, like:

#if ios
typedef IAP = extension.iap.ios.IAP;
#elseif android
typedef IAP = extension.iap.android.IAP;
#elseif blackberry
typedef IAP = extension.iap.blackberry.IAP;
#else

This allows to avoid one gigantic IAP.hx file containing lots of conditional code for every platform (specially since there's the Blackberry code now too).