Skip to content

Commit

Permalink
Chartboost/9.8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AppLovin-Mobile-Engineering committed Oct 24, 2024
1 parent 063a1ac commit e59f132
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Chartboost/AppLovinMediationChartboostAdapter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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'

Expand Down
4 changes: 4 additions & 0 deletions Chartboost/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
19 changes: 7 additions & 12 deletions Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import "ALChartboostMediationAdapter.h"
#import <ChartboostSDK/ChartboostSDK.h>

#define ADAPTER_VERSION @"9.7.0.2"
#define ADAPTER_VERSION @"9.8.0.0"

@interface ALChartboostInterstitialDelegate : NSObject <CHBInterstitialDelegate>
@property (nonatomic, weak) ALChartboostMediationAdapter *parentAdapter;
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit e59f132

Please sign in to comment.