Tapjoy/12.11.1.2
This commit is contained in:
Родитель
5f50aae808
Коммит
225bdc3134
|
@ -2,7 +2,7 @@ Pod::Spec.new do |s|
|
|||
|
||||
s.authors = 'AppLovin Corporation'
|
||||
s.name = 'AppLovinMediationTapjoyAdapter'
|
||||
s.version = '12.11.1.1'
|
||||
s.version = '12.11.1.2'
|
||||
s.platform = :ios, '9.0'
|
||||
s.summary = 'Tapjoy 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,7 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 12.11.1.2
|
||||
* Remove `consentDialogState` guard.
|
||||
|
||||
## 12.11.1.1
|
||||
* Update to use `[MAAdapterError errorWithCode:errorString:thirdPartySdkErrorCode:thirdPartySdkErrorMessage:]` to avoid crashes with AppLovin SDK 11.4.1 and earlier.
|
||||
* Update to use `+[MAAdapterError errorWithCode:errorString:thirdPartySdkErrorCode:thirdPartySdkErrorMessage:]` to avoid crashes with AppLovin SDK 11.4.1 and earlier.
|
||||
|
||||
## 12.11.1.0
|
||||
* Certified with Tapjoy SDK 12.11.1.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ALTapjoyMediationAdapter : ALMediationAdapter<MAInterstitialAdapter, MARewardedAdapter, MASignalProvider>
|
||||
@interface ALTapjoyMediationAdapter : ALMediationAdapter <MAInterstitialAdapter, MARewardedAdapter, MASignalProvider>
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -9,26 +9,26 @@
|
|||
#import "ALTapjoyMediationAdapter.h"
|
||||
#import <Tapjoy/Tapjoy.h>
|
||||
|
||||
#define ADAPTER_VERSION @"12.11.1.1"
|
||||
#define ADAPTER_VERSION @"12.11.1.2"
|
||||
|
||||
@interface ALTapjoyMediationAdapterInterstitialDelegate : NSObject<TJPlacementDelegate, TJPlacementVideoDelegate>
|
||||
@interface ALTapjoyMediationAdapterInterstitialDelegate : NSObject <TJPlacementDelegate, TJPlacementVideoDelegate>
|
||||
@property (nonatomic, weak) ALTapjoyMediationAdapter *parentAdapter;
|
||||
@property (nonatomic, strong) id<MAInterstitialAdapterDelegate> delegate;
|
||||
- (instancetype)initWithParentAdapter:(ALTapjoyMediationAdapter *)parentAdapter andNotify:(id<MAInterstitialAdapterDelegate>)delegate;
|
||||
@end
|
||||
|
||||
@interface ALTapjoyMediationAdapterRewardedDelegate : NSObject<TJPlacementDelegate, TJPlacementVideoDelegate>
|
||||
@interface ALTapjoyMediationAdapterRewardedDelegate : NSObject <TJPlacementDelegate, TJPlacementVideoDelegate>
|
||||
@property (nonatomic, weak) ALTapjoyMediationAdapter *parentAdapter;
|
||||
@property (nonatomic, strong) id<MARewardedAdapterDelegate> delegate;
|
||||
@property (nonatomic, assign, getter=hasGrantedReward) BOOL grantedReward;
|
||||
- (instancetype)initWithParentAdapter:(ALTapjoyMediationAdapter *)parentAdapter andNotify:(id<MARewardedAdapterDelegate>)delegate;
|
||||
@end
|
||||
|
||||
@interface ALTapjoyMediationAdapter()
|
||||
@interface ALTapjoyMediationAdapter ()
|
||||
|
||||
// Initialization
|
||||
@property (nonatomic, copy, nullable) void(^oldCompletionHandler)(void);
|
||||
@property (nonatomic, copy, nullable) void(^completionHandler)(MAAdapterInitializationStatus, NSString * _Nullable);
|
||||
@property (nonatomic, copy, nullable) void(^completionHandler)(MAAdapterInitializationStatus, NSString *_Nullable);
|
||||
|
||||
// Interstitial
|
||||
@property (nonatomic, strong) TJPlacement *interstitialPlacement;
|
||||
|
@ -44,7 +44,7 @@
|
|||
|
||||
#pragma mark - MAAdapter Methods
|
||||
|
||||
- (void)initializeWithParameters:(id<MAAdapterInitializationParameters>)parameters completionHandler:(void (^)(MAAdapterInitializationStatus, NSString * _Nullable))completionHandler
|
||||
- (void)initializeWithParameters:(id<MAAdapterInitializationParameters>)parameters completionHandler:(void (^)(MAAdapterInitializationStatus, NSString *_Nullable))completionHandler
|
||||
{
|
||||
if ( ![Tapjoy isConnected] )
|
||||
{
|
||||
|
@ -281,19 +281,11 @@
|
|||
[tjPrivacyPolicy setBelowConsentAge: isAgeRestrictedUser.boolValue];
|
||||
}
|
||||
|
||||
if ( self.sdk.configuration.consentDialogState == ALConsentDialogStateApplies )
|
||||
{
|
||||
[tjPrivacyPolicy setSubjectToGDPR: YES];
|
||||
NSNumber *hasUserConsent = [self privacySettingForSelector: @selector(hasUserConsent) fromParameters: parameters];
|
||||
if ( hasUserConsent )
|
||||
{
|
||||
[tjPrivacyPolicy setUserConsent: hasUserConsent.boolValue ? @"1" : @"0"];
|
||||
}
|
||||
}
|
||||
else if ( self.sdk.configuration.consentDialogState == ALConsentDialogStateDoesNotApply )
|
||||
{
|
||||
[tjPrivacyPolicy setSubjectToGDPR: NO];
|
||||
}
|
||||
|
||||
if ( ALSdk.versionCode >= 61100 )
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче