HaxeExtension / extension-iap

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

Event [IAPEvent.PURCHASE_SUCCESS] does not dispatch when switching to Gradle 5.6.3 #59

Closed hoangdung-qbt closed 4 years ago

hoangdung-qbt commented 4 years ago
if (!IAP.available){
    return;
}

IAP.addEventListener(IAPEvent.PURCHASE_SUCCESS, onSuccess);         
IAP.initialize(androidLicenseKey);
function onSuccess(e:IAPEvent):Void{
  IAP.consume(e.purchase);
}

It used to work well while using gradle 2.1.0

hoangdung-qbt commented 4 years ago

<!--<haxeflag name="-dce full"/>--> It worked!