This commit is contained in:
prod-applovin-deploy 2022-03-07 13:02:20 -08:00
Родитель a0ceb32ad4
Коммит 2b7f55992b
3 изменённых файлов: 30 добавлений и 8 удалений

Просмотреть файл

@ -5,10 +5,10 @@ s.authors =
'AppLovin Corporation' => 'devsupport@applovin.com'
}
s.name = 'AppLovinMediationChartboostAdapter'
s.version = '8.5.0.2'
s.version = '8.5.0.3'
s.platform = :ios, '9.0'
s.summary = 'Chartboost adapter used for mediation with the AppLovin MAX SDK'
s.homepage = 'https://github.com/CocoaPods/Specs/search?o=desc&q=AppLovinMediationChartboostAdapter&s=indexed'
s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed"
s.license =
{
:type => 'Commercial License',
@ -23,11 +23,11 @@ LICENSE
s.source =
{
:http => 'https://artifacts.applovin.com/ios/com/applovin/mediation/chartboost-adapter/AppLovinMediationChartboostAdapter-8.5.0.2.zip',
:http => "https://artifacts.applovin.com/ios/com/applovin/mediation/chartboost-adapter/#{s.name}-#{s.version}.zip",
:type => 'zip'
}
s.vendored_frameworks = 'AppLovinMediationChartboostAdapter-8.5.0.2/AppLovinMediationChartboostAdapter.framework'
s.vendored_frameworks = "#{s.name}-#{s.version}/#{s.name}.framework"
s.dependency 'ChartboostSDK', '= 8.5.0.1'
s.dependency 'AppLovinSDK'

Просмотреть файл

@ -1,7 +1,8 @@
# Changelog
## x.x.x.x
## 8.5.0.3
* Update open source versions to allow compilation with AppLovin SDK v11.0.0+.
* Add support for passing in a presenting view controller.
## 8.5.0.2
* Certified with Chartboost SDK 8.5.0.1.

Просмотреть файл

@ -10,7 +10,7 @@
#import <Chartboost/Chartboost.h>
#import <Chartboost/Chartboost+Mediation.h>
#define ADAPTER_VERSION @"8.5.0.2"
#define ADAPTER_VERSION @"8.5.0.3"
@interface ALChartboostInterstitialDelegate : NSObject<CHBInterstitialDelegate>
@property (nonatomic, weak) ALChartboostMediationAdapter *parentAdapter;
@ -154,7 +154,17 @@ static MAAdapterInitializationStatus ALChartboostInitializationStatus = NSIntege
if ( [self.interstitialAd isCached] )
{
[self.interstitialAd showFromViewController: [ALUtils topViewControllerFromKeyWindow]];
UIViewController *presentingViewController;
if ( ALSdk.versionCode >= 11020199 )
{
presentingViewController = parameters.presentingViewController ?: [ALUtils topViewControllerFromKeyWindow];
}
else
{
presentingViewController = [ALUtils topViewControllerFromKeyWindow];
}
[self.interstitialAd showFromViewController: presentingViewController];
}
else
{
@ -186,7 +196,18 @@ static MAAdapterInitializationStatus ALChartboostInitializationStatus = NSIntege
{
// Configure reward from server.
[self configureRewardForParameters: parameters];
[self.rewardedAd showFromViewController: [ALUtils topViewControllerFromKeyWindow]];
UIViewController *presentingViewController;
if ( ALSdk.versionCode >= 11020199 )
{
presentingViewController = parameters.presentingViewController ?: [ALUtils topViewControllerFromKeyWindow];
}
else
{
presentingViewController = [ALUtils topViewControllerFromKeyWindow];
}
[self.rewardedAd showFromViewController: presentingViewController];
}
else
{