Skip to content

Commit

Permalink
IronSource - 7.1.0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dravyan committed Feb 23, 2021
1 parent 748090f commit e15ece0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
3 changes: 3 additions & 0 deletions IronSource/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Changelog
* 7.1.0.0.1
* Add support for `fullscreenAdAdapterAdWillDismiss` when a fullscreen creative is about to close. Publishers must use v5.16.1 of the MoPub SDK at the minimum.

* 7.1.0.0.0
* This version of the adapters has been certified with ironSource 7.1.0.0 and MoPub SDK 5.15.0.

Expand Down
2 changes: 1 addition & 1 deletion IronSource/IronSourceAdapterConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ + (void)updateInitializationParameters:(NSDictionary *)parameters {
#pragma mark - MPAdapterConfiguration

- (NSString *)adapterVersion {
return @"7.1.0.0.0";
return @"7.1.0.0.1";
}

- (NSString *)biddingToken {
Expand Down
8 changes: 2 additions & 6 deletions IronSource/IronSourceInterstitialCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,12 @@ - (void)interstitialDidClose:(NSString *)instanceId {
MPLogInfo(@"IronSource interstitial did close for instance %@ (current instance %@)",
instanceId, [self getAdNetworkId]);
MPLogAdEvent([MPLogEvent adWillDisappearForAdapter:NSStringFromClass(self.class)], instanceId);
[self.delegate fullscreenAdAdapterAdWillDismiss:self];
[self.delegate fullscreenAdAdapterAdWillDisappear:self];

MPLogAdEvent([MPLogEvent adDidDisappearForAdapter:NSStringFromClass(self.class)], instanceId);
[self.delegate fullscreenAdAdapterAdDidDisappear:self];

// Signal that the fullscreen ad is closing and the state should be reset.
// `fullscreenAdAdapterAdDidDismiss:` was introduced in MoPub SDK 5.15.0.
if ([self.delegate respondsToSelector:@selector(fullscreenAdAdapterAdDidDismiss:)]) {
[self.delegate fullscreenAdAdapterAdDidDismiss:self];
}
[self.delegate fullscreenAdAdapterAdDidDismiss:self];
}

/*!
Expand Down
8 changes: 2 additions & 6 deletions IronSource/IronSourceRewardedVideoCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,11 @@ - (void)rewardedVideoDidClose:(NSString *)instanceId {
MPLogInfo(@"IronSource RewardedVideo did close for instance %@ (current instance %@)",
instanceId, [self getAdNetworkId]);
MPLogAdEvent([MPLogEvent adWillDisappearForAdapter:NSStringFromClass(self.class)], instanceId);
[self.delegate fullscreenAdAdapterAdWillDismiss:self];
[self.delegate fullscreenAdAdapterAdWillDisappear:self];
MPLogAdEvent([MPLogEvent adDidDisappearForAdapter:NSStringFromClass(self.class)], instanceId);
[self.delegate fullscreenAdAdapterAdDidDisappear:self];

// Signal that the fullscreen ad is closing and the state should be reset.
// `fullscreenAdAdapterAdDidDismiss:` was introduced in MoPub SDK 5.15.0.
if ([self.delegate respondsToSelector:@selector(fullscreenAdAdapterAdDidDismiss:)]) {
[self.delegate fullscreenAdAdapterAdDidDismiss:self];
}
[self.delegate fullscreenAdAdapterAdDidDismiss:self];
}

- (void)rewardedVideoAdRewarded:(NSString *)instanceId {
Expand Down

0 comments on commit e15ece0

Please sign in to comment.