Skip to content

Commit

Permalink
Smaato/21.7.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Jun 27, 2022
1 parent b98da71 commit f91f604
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Smaato/AppLovinMediationSmaatoAdapter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ s.authors =
'AppLovin Corporation' => '[email protected]'
}
s.name = 'AppLovinMediationSmaatoAdapter'
s.version = '21.7.6.0'
s.version = '21.7.6.1'
s.platform = :ios, '9.0'
s.summary = 'Smaato 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 Down
3 changes: 3 additions & 0 deletions Smaato/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 21.7.6.1
* Add support for returning the main image asset in `MANativeAd` for native ads.

## 21.7.6.0
* Certified with Smaato SDK 21.7.6.
* Distribute adapter as an XCFramework.
Expand Down
7 changes: 6 additions & 1 deletion Smaato/SmaatoAdapter/ALSmaatoMediationAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#import <SmaatoSDKNative/SmaatoSDKNative.h>
#import <SmaatoSDKInAppBidding/SmaatoSDKInAppBidding.h>

#define ADAPTER_VERSION @"21.7.6.0"
#define ADAPTER_VERSION @"21.7.6.1"

/**
* Router for interstitial/rewarded ad events.
Expand Down Expand Up @@ -862,6 +862,11 @@ - (void)nativeAd:(SMANativeAd *)nativeAd didLoadWithAdRenderer:(SMANativeAdRende
UIImageView *mediaImageView = [[UIImageView alloc] initWithImage: image.image];
mediaImageView.contentMode = UIViewContentModeScaleAspectFit;
builder.mediaView = mediaImageView;
if ( ALSdk.versionCode >= 11040299 )
{
MANativeAdImage *mainImage = [[MANativeAdImage alloc] initWithImage: image.image];
[builder performSelector: @selector(setMainImage:) withObject: mainImage];
}
}
}
}];
Expand Down

0 comments on commit f91f604

Please sign in to comment.