diff --git a/src/android/IronSourceAdsPlugin.java b/src/android/IronSourceAdsPlugin.java index d22c4ab..eb7c7a6 100644 --- a/src/android/IronSourceAdsPlugin.java +++ b/src/android/IronSourceAdsPlugin.java @@ -126,7 +126,7 @@ else if (action.equals("hasInterstitial")) { return true; } - else if(action.equals("showInterstitial")){ + else if (action.equals("showInterstitial")) { this.showInterstitialAction(args, callbackContext); return true; } @@ -134,7 +134,6 @@ else if(action.equals("showInterstitial")){ return false; } - /**--------------------------------------------------------------- */ public void initialize(CordovaInterface cordova, CordovaWebView webView) { @@ -394,7 +393,6 @@ public void run() { }); } - @Override public void onInterstitialAdReady() { this.emitWindowEvent(EVENT_INTERSTITIAL_LOADED); @@ -503,7 +501,6 @@ public void onOfferwallClosed() { this.emitWindowEvent(EVENT_OFFERWALL_CLOSED); } - /**----------------------- BANNER --------------------------- */ private void showBannerAction(JSONArray args, final CallbackContext callbackContext) { @@ -575,8 +572,6 @@ public void onBannerAdLeftApplication() { } - - /** * Destroys IronSource Banner and removes it from the container */ @@ -590,5 +585,4 @@ private void hideBannerAction(JSONArray args, final CallbackContext callbackCont callbackContext.success(); } - } diff --git a/src/ios/IronSourceAdsPlugin.m b/src/ios/IronSourceAdsPlugin.m index b3469e0..9e4f3ef 100644 --- a/src/ios/IronSourceAdsPlugin.m +++ b/src/ios/IronSourceAdsPlugin.m @@ -333,14 +333,7 @@ - (void)didFailToReceiveOfferwallCreditsWithError:(NSError *)error - (BOOL)didReceiveOfferwallCredits:(NSDictionary *)creditInfo { NSLog(@"%s", __PRETTY_FUNCTION__); - - NSDictionary *data = @{ - @"credits":@(creditInfo.credits), - @"totalCredits":@(creditInfo.totalCredits), - @"totalCreditsFlag":@(creditInfo.totalCreditsFlag) - }; - - [self emitWindowEvent:EVENT_OFFERWALL_CREDITED withData:data]; + [self emitWindowEvent:EVENT_OFFERWALL_CREDITED withData:creditInfo]; return YES; }