This commit is contained in:
prod-applovin-deploy 2022-03-10 17:46:01 -08:00
Родитель 57ba6683f9
Коммит eaeb17c95b
3 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -5,7 +5,7 @@ s.authors =
'AppLovin Corporation' => 'devsupport@applovin.com'
}
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"

Просмотреть файл

@ -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.

Просмотреть файл

@ -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;
@ -987,9 +987,8 @@ static ALAtomicBoolean *ALLineInitialized;
}
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];
}
}
@ -1055,9 +1054,6 @@ static ALAtomicBoolean *ALLineInitialized;
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;
});
}