Skip to content

Commit

Permalink
Line/2.4.20211004.4
Browse files Browse the repository at this point in the history
  • Loading branch information
prod-applovin-deploy committed Mar 11, 2022
1 parent 57ba668 commit eaeb17c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Line/AppLovinMediationLineAdapter.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 = 'AppLovinMediationLineAdapter'
s.version = '2.4.20211004.3'
s.version = '2.4.20211004.4'
s.platform = :ios, '9.0'
s.summary = 'Line 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 Line/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 2.4.20211004.4
* Fix non-deterministic LINE media view behavior resulting from calling the getter more than once.

## 2.4.20211004.3
* Update open source versions to allow compilation with AppLovin SDK v11.0.0+.
* Fix UI thread warnings by running ad view and native ad creation and loads on main thread.
Expand Down
10 changes: 3 additions & 7 deletions Line/LineAdapter/ALLineMediationAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#import "ALLineMediationAdapter.h"
#import <FiveAd/FiveAd.h>

#define ADAPTER_VERSION @"2.4.20211004.3"
#define ADAPTER_VERSION @"2.4.20211004.4"

@interface ALLineMediationAdapterInterstitialAdDelegate : NSObject<FADLoadDelegate, FADAdViewEventListener>
@property (nonatomic, weak) ALLineMediationAdapter *parentAdapter;
Expand Down Expand Up @@ -987,9 +987,8 @@ - (BOOL)hasRequiredAssetsInAd:(FADNative *)nativeAd isTemplateAd:(BOOL)isTemplat
}
else
{
return [nativeAd.getAdTitle al_isValidString]
&& [nativeAd.getButtonText al_isValidString]
&& nativeAd.getAdMainView;
// LINE's SDK will non-deterministically improperly size their media view if its getter is called more than once, so we can't check its validity.
return [nativeAd.getAdTitle al_isValidString] && [nativeAd.getButtonText al_isValidString];
}
}

Expand Down Expand Up @@ -1055,9 +1054,6 @@ - (void)prepareViewForInteraction:(MANativeAdView *)maxNativeAdView
dispatchOnMainQueue(^{

[nativeAd registerViewForInteraction: maxNativeAdView withInformationIconView: maxNativeAdView.iconImageView withClickableViews: clickableViews];

// LINE media view can sometimes go outside the bounds of the view, so set the content mode to be safe.
self.mediaView.contentMode = UIViewContentModeScaleAspectFit;
});
}

Expand Down

0 comments on commit eaeb17c

Please sign in to comment.