Skip to content

Commit

Permalink
Yandex/7.6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AppLovin-Mobile-Engineering committed Oct 23, 2024
1 parent 94aa10e commit 8d70928
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
3 changes: 3 additions & 0 deletions Yandex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 7.6.0.1
* Add support for loading rewarded ads and configuring bidder token requests without `Activity` context.

## 7.6.0.0
* Certified with Yandex SDK 7.6.0.

Expand Down
2 changes: 1 addition & 1 deletion Yandex/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ afterEvaluate {
apply(plugin = "adapter-publish")
}

val libraryVersionName by extra("7.6.0.0")
val libraryVersionName by extra("7.6.0.1")

android.defaultConfig.minSdk = 21
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public void collectSignal(final MaxAdapterSignalCollectionParameters parameters,

updatePrivacySettings( parameters );

BidderTokenRequestConfiguration bidderTokenRequest = createBidderTokenRequestConfiguration( activity, parameters.getAdFormat() );
BidderTokenRequestConfiguration bidderTokenRequest = createBidderTokenRequestConfiguration( getContext( activity ), parameters.getAdFormat() );

BidderTokenLoader.loadBidderToken( getContext( activity ), bidderTokenRequest, new BidderTokenLoadListener()
{
Expand Down Expand Up @@ -325,7 +325,7 @@ public void loadRewardedAd(final MaxAdapterResponseParameters parameters, @Nulla
@Override
public void run()
{
RewardedAdLoader rewardedAdLoader = new RewardedAdLoader( activity );
RewardedAdLoader rewardedAdLoader = new RewardedAdLoader( getContext( activity ) );
rewardedAdListener = new RewardedAdListener( parameters, listener );
rewardedAdLoader.setAdLoadListener( rewardedAdListener );
rewardedAdLoader.loadAd( createAdRequestConfiguration( placementId, parameters ) );
Expand Down Expand Up @@ -940,14 +940,14 @@ public boolean prepareForInteraction(final List<View> clickableViews, final View
maxNativeAdView.addView( nativeAdView );

final NativeAdViewBinder binder = new NativeAdViewBinder.Builder( nativeAdView )
.setIconView( maxNativeAdView.getIconImageView() )
.setTitleView( maxNativeAdView.getTitleTextView() )
.setDomainView( maxNativeAdView.getAdvertiserTextView() )
.setBodyView( maxNativeAdView.getBodyTextView() )
.setMediaView( (MediaView) getMediaView() )
.setFeedbackView( (ImageView) getOptionsView() )
.setCallToActionView( maxNativeAdView.getCallToActionButton() )
.build();
.setIconView( maxNativeAdView.getIconImageView() )
.setTitleView( maxNativeAdView.getTitleTextView() )
.setDomainView( maxNativeAdView.getAdvertiserTextView() )
.setBodyView( maxNativeAdView.getBodyTextView() )
.setMediaView( (MediaView) getMediaView() )
.setFeedbackView( (ImageView) getOptionsView() )
.setCallToActionView( maxNativeAdView.getCallToActionButton() )
.build();

try
{
Expand Down Expand Up @@ -984,8 +984,8 @@ public boolean prepareForInteraction(final List<View> clickableViews, final View
else
{
nativeAdView.measure(
View.MeasureSpec.makeMeasureSpec( mediaViewContainer.getWidth(), View.MeasureSpec.EXACTLY ),
View.MeasureSpec.makeMeasureSpec( mediaViewContainer.getHeight(), View.MeasureSpec.EXACTLY ) );
View.MeasureSpec.makeMeasureSpec( mediaViewContainer.getWidth(), View.MeasureSpec.EXACTLY ),
View.MeasureSpec.makeMeasureSpec( mediaViewContainer.getHeight(), View.MeasureSpec.EXACTLY ) );
nativeAdView.layout( 0, 0, mediaViewContainer.getWidth(), mediaViewContainer.getHeight() );
mediaViewContainer.addView( nativeAdView );
}
Expand Down

0 comments on commit 8d70928

Please sign in to comment.