From e59f132a0cf81b0e9ac705816a3c14997da32c6b Mon Sep 17 00:00:00 2001 From: AppLovin-Mobile-Engineering Date: Thu, 24 Oct 2024 14:33:04 -0700 Subject: [PATCH] Chartboost/9.8.0.0 --- ...AppLovinMediationChartboostAdapter.podspec | 4 ++-- Chartboost/CHANGELOG.md | 4 ++++ .../ALChartboostMediationAdapter.m | 19 +++++++------------ 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Chartboost/AppLovinMediationChartboostAdapter.podspec b/Chartboost/AppLovinMediationChartboostAdapter.podspec index 3140da0bb4..5f41fa84e4 100644 --- a/Chartboost/AppLovinMediationChartboostAdapter.podspec +++ b/Chartboost/AppLovinMediationChartboostAdapter.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| s.authors = 'AppLovin Corporation' s.name = 'AppLovinMediationChartboostAdapter' -s.version = '9.7.0.2' +s.version = '9.8.0.0' s.platform = :ios, '11.0' s.summary = 'Chartboost adapter used for mediation with the AppLovin MAX SDK' s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed" @@ -26,7 +26,7 @@ s.source = s.vendored_frameworks = "#{s.name}-#{s.version}/#{s.name}.xcframework" -s.dependency 'ChartboostSDK', '= 9.7.0' +s.dependency 'ChartboostSDK', '= 9.8.0' s.dependency 'AppLovinSDK', '>= 13.0.0' s.swift_version = '5.0' diff --git a/Chartboost/CHANGELOG.md b/Chartboost/CHANGELOG.md index 89fb997538..6d8a61425b 100644 --- a/Chartboost/CHANGELOG.md +++ b/Chartboost/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 9.8.0.0 +* Certified with Chartboost SDK 9.8.0. +* Simplified API calls by removing selector checks; direct API calls are now safe with the updated min SDK version. + ## 9.7.0.2 * Requires minimum AppLovin MAX SDK version be 13.0.0. * Removed COPPA support. diff --git a/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.m b/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.m index a49aec52f5..6825605229 100644 --- a/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.m +++ b/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.m @@ -9,7 +9,7 @@ #import "ALChartboostMediationAdapter.h" #import -#define ADAPTER_VERSION @"9.7.0.2" +#define ADAPTER_VERSION @"9.8.0.0" @interface ALChartboostInterstitialDelegate : NSObject @property (nonatomic, weak) ALChartboostMediationAdapter *parentAdapter; @@ -449,11 +449,9 @@ - (void)didCacheAd:(CHBCacheEvent *)event error:(CHBCacheError *)error { [self.parentAdapter log: @"Interstitial loaded: %@", event.ad.location]; - // Passing extra info such as creative id supported in 6.15.0+ - if ( ALSdk.versionCode >= 6150000 && [event.adID al_isValidString] ) + if ( [event.adID al_isValidString] ) { - [self.delegate performSelector: @selector(didLoadInterstitialAdWithExtraInfo:) - withObject: @{@"creative_id" : event.adID}]; + [self.delegate didLoadInterstitialAdWithExtraInfo: @{@"creative_id" : event.adID}]; } else { @@ -553,10 +551,9 @@ - (void)didCacheAd:(CHBCacheEvent *)event error:(CHBCacheError *)error [self.parentAdapter log: @"Rewarded loaded: %@", event.ad.location]; // Passing extra info such as creative id supported in 6.15.0+ - if ( ALSdk.versionCode >= 6150000 && [event.adID al_isValidString] ) + if ( [event.adID al_isValidString] ) { - [self.delegate performSelector: @selector(didLoadRewardedAdWithExtraInfo:) - withObject: @{@"creative_id" : event.adID}]; + [self.delegate didLoadRewardedAdWithExtraInfo: @{@"creative_id" : event.adID}]; } else { @@ -677,11 +674,9 @@ - (void)didCacheAd:(CHBCacheEvent *)event error:(CHBCacheError *)error CHBBanner *adView = (CHBBanner *) event.ad; // Passing extra info such as creative id supported in 6.15.0+ - if ( ALSdk.versionCode >= 6150000 && [event.adID al_isValidString] ) + if ( [event.adID al_isValidString] ) { - [self.delegate performSelector: @selector(didLoadAdForAdView:withExtraInfo:) - withObject: adView - withObject: @{@"creative_id" : event.adID}]; + [self.delegate didLoadAdForAdView: adView withExtraInfo:@{@"creative_id" : event.adID}]; } else {