Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
revert last change;
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbodman committed Oct 20, 2017
1 parent b86b47b commit c51db82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
8 changes: 1 addition & 7 deletions src/android/IronSourceAdsPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,14 @@ else if (action.equals("hasInterstitial")) {
return true;
}

else if(action.equals("showInterstitial")){
else if (action.equals("showInterstitial")) {
this.showInterstitialAction(args, callbackContext);
return true;
}

return false;
}


/**--------------------------------------------------------------- */

public void initialize(CordovaInterface cordova, CordovaWebView webView) {
Expand Down Expand Up @@ -394,7 +393,6 @@ public void run() {
});
}


@Override
public void onInterstitialAdReady() {
this.emitWindowEvent(EVENT_INTERSTITIAL_LOADED);
Expand Down Expand Up @@ -503,7 +501,6 @@ public void onOfferwallClosed() {
this.emitWindowEvent(EVENT_OFFERWALL_CLOSED);
}


/**----------------------- BANNER --------------------------- */

private void showBannerAction(JSONArray args, final CallbackContext callbackContext) {
Expand Down Expand Up @@ -575,8 +572,6 @@ public void onBannerAdLeftApplication() {

}



/**
* Destroys IronSource Banner and removes it from the container
*/
Expand All @@ -590,5 +585,4 @@ private void hideBannerAction(JSONArray args, final CallbackContext callbackCont
callbackContext.success();
}


}
9 changes: 1 addition & 8 deletions src/ios/IronSourceAdsPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c51db82

Please sign in to comment.