Line/2.4.20211028.1
This commit is contained in:
Родитель
d7750e547c
Коммит
f790e9b6c0
|
@ -5,7 +5,7 @@ s.authors =
|
|||
'AppLovin Corporation' => 'devsupport@applovin.com'
|
||||
}
|
||||
s.name = 'AppLovinMediationLineAdapter'
|
||||
s.version = '2.4.20211028.0'
|
||||
s.version = '2.4.20211028.1'
|
||||
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.20211028.1
|
||||
* Remove check for manual native ad assets.
|
||||
|
||||
## 2.4.20211028.0
|
||||
* Certified with Line SDK 2.4.20211028.
|
||||
* Update open source versions to allow compilation with AppLovin SDK v11.0.0+.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#import "ALLineMediationAdapter.h"
|
||||
#import <FiveAd/FiveAd.h>
|
||||
|
||||
#define ADAPTER_VERSION @"2.4.20211028.0"
|
||||
#define ADAPTER_VERSION @"2.4.20211028.1"
|
||||
|
||||
@interface ALLineMediationAdapterInterstitialAdDelegate : NSObject<FADLoadDelegate, FADAdViewEventListener>
|
||||
@property (nonatomic, weak) ALLineMediationAdapter *parentAdapter;
|
||||
|
@ -853,7 +853,7 @@ static ALAtomicBoolean *ALLineInitialized;
|
|||
|
||||
NSString *templateName = [self.serverParameters al_stringForKey: @"template" defaultValue: @""];
|
||||
BOOL isTemplateAd = [templateName al_isValidString];
|
||||
if ( ![self hasRequiredAssetsInAd: loadedNativeAd isTemplateAd: isTemplateAd] )
|
||||
if ( isTemplateAd && ![loadedNativeAd.getAdTitle al_isValidString] )
|
||||
{
|
||||
[self.parentAdapter e: @"Native ad (%@) does not have required assets.", loadedNativeAd];
|
||||
[self.delegate didFailToLoadNativeAdWithError: [MAAdapterError errorWithCode: -5400 errorString: @"Missing Native Ad Assets"]];
|
||||
|
@ -958,19 +958,6 @@ static ALAtomicBoolean *ALLineInitialized;
|
|||
[self.parentAdapter log: @"Native ad did recover for slot id: %@...", ad.slotId];
|
||||
}
|
||||
|
||||
- (BOOL)hasRequiredAssetsInAd:(FADNative *)nativeAd isTemplateAd:(BOOL)isTemplateAd
|
||||
{
|
||||
if ( isTemplateAd )
|
||||
{
|
||||
return [nativeAd.getAdTitle al_isValidString];
|
||||
}
|
||||
else
|
||||
{
|
||||
// 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];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation MALineNativeAd
|
||||
|
|
Загрузка…
Ссылка в новой задаче