Skip to content

Commit 7123fd5

Browse files
author
prod-applovin-deploy
committed
IronSource/7.2.1.0.1
1 parent 47760ad commit 7123fd5

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

IronSource/AppLovinMediationIronSourceAdapter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ s.authors =
55
'AppLovin Corporation' => '[email protected]'
66
}
77
s.name = 'AppLovinMediationIronSourceAdapter'
8-
s.version = '7.2.1.0.0'
8+
s.version = '7.2.1.0.1'
99
s.platform = :ios, '9.0'
1010
s.summary = 'IronSource adapter used for mediation with the AppLovin MAX SDK'
1111
s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed"

IronSource/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 7.2.1.0.1
4+
* Add support for passing in a presenting view controller.
5+
36
## 7.2.1.0.0
47
* Certified with IronSource SDK 7.2.1.0.
58

IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.m

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#import "ALIronSourceMediationAdapter.h"
99
#import <IronSource/IronSource.h>
1010

11-
#define ADAPTER_VERSION @"7.2.1.0.0"
11+
#define ADAPTER_VERSION @"7.2.1.0.1"
1212

1313
@interface ALIronSourceMediationAdapterRouter : ALMediationAdapterRouter<ISDemandOnlyInterstitialDelegate, ISDemandOnlyRewardedVideoDelegate, ISLogDelegate>
1414
@property (nonatomic, assign, getter=hasGrantedReward) BOOL grantedReward;
@@ -123,7 +123,17 @@ - (void)showInterstitialAdForParameters:(id<MAAdapterResponseParameters>)paramet
123123

124124
if ( [IronSource hasISDemandOnlyInterstitial: instanceID] )
125125
{
126-
[IronSource showISDemandOnlyInterstitial: [ALUtils topViewControllerFromKeyWindow] instanceId: instanceID];
126+
UIViewController *presentingViewController;
127+
if ( ALSdk.versionCode >= 11020199 )
128+
{
129+
presentingViewController = parameters.presentingViewController ?: [ALUtils topViewControllerFromKeyWindow];
130+
}
131+
else
132+
{
133+
presentingViewController = [ALUtils topViewControllerFromKeyWindow];
134+
}
135+
136+
[IronSource showISDemandOnlyInterstitial: presentingViewController instanceId: instanceID];
127137
}
128138
else
129139
{
@@ -171,7 +181,17 @@ - (void)showRewardedAdForParameters:(id<MAAdapterResponseParameters>)parameters
171181
// Configure reward from server.
172182
[self configureRewardForParameters: parameters];
173183

174-
[IronSource showISDemandOnlyRewardedVideo: [ALUtils topViewControllerFromKeyWindow] instanceId: instanceID];
184+
UIViewController *presentingViewController;
185+
if ( ALSdk.versionCode >= 11020199 )
186+
{
187+
presentingViewController = parameters.presentingViewController ?: [ALUtils topViewControllerFromKeyWindow];
188+
}
189+
else
190+
{
191+
presentingViewController = [ALUtils topViewControllerFromKeyWindow];
192+
}
193+
194+
[IronSource showISDemandOnlyRewardedVideo: presentingViewController instanceId: instanceID];
175195
}
176196
else
177197
{

0 commit comments

Comments
 (0)