This commit is contained in:
jenkins 2023-01-10 17:35:26 -08:00
Родитель 5f50aae808
Коммит 225bdc3134
4 изменённых файлов: 15 добавлений и 20 удалений

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

@ -2,7 +2,7 @@ Pod::Spec.new do |s|
s.authors = 'AppLovin Corporation' s.authors = 'AppLovin Corporation'
s.name = 'AppLovinMediationTapjoyAdapter' s.name = 'AppLovinMediationTapjoyAdapter'
s.version = '12.11.1.1' s.version = '12.11.1.2'
s.platform = :ios, '9.0' s.platform = :ios, '9.0'
s.summary = 'Tapjoy adapter used for mediation with the AppLovin MAX SDK' 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" s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed"

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

@ -1,7 +1,10 @@
# Changelog # Changelog
## 12.11.1.2
* Remove `consentDialogState` guard.
## 12.11.1.1 ## 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 ## 12.11.1.0
* Certified with Tapjoy SDK 12.11.1. * Certified with Tapjoy SDK 12.11.1.

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

@ -10,7 +10,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface ALTapjoyMediationAdapter : ALMediationAdapter<MAInterstitialAdapter, MARewardedAdapter, MASignalProvider> @interface ALTapjoyMediationAdapter : ALMediationAdapter <MAInterstitialAdapter, MARewardedAdapter, MASignalProvider>
@end @end

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

@ -9,26 +9,26 @@
#import "ALTapjoyMediationAdapter.h" #import "ALTapjoyMediationAdapter.h"
#import <Tapjoy/Tapjoy.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, weak) ALTapjoyMediationAdapter *parentAdapter;
@property (nonatomic, strong) id<MAInterstitialAdapterDelegate> delegate; @property (nonatomic, strong) id<MAInterstitialAdapterDelegate> delegate;
- (instancetype)initWithParentAdapter:(ALTapjoyMediationAdapter *)parentAdapter andNotify:(id<MAInterstitialAdapterDelegate>)delegate; - (instancetype)initWithParentAdapter:(ALTapjoyMediationAdapter *)parentAdapter andNotify:(id<MAInterstitialAdapterDelegate>)delegate;
@end @end
@interface ALTapjoyMediationAdapterRewardedDelegate : NSObject<TJPlacementDelegate, TJPlacementVideoDelegate> @interface ALTapjoyMediationAdapterRewardedDelegate : NSObject <TJPlacementDelegate, TJPlacementVideoDelegate>
@property (nonatomic, weak) ALTapjoyMediationAdapter *parentAdapter; @property (nonatomic, weak) ALTapjoyMediationAdapter *parentAdapter;
@property (nonatomic, strong) id<MARewardedAdapterDelegate> delegate; @property (nonatomic, strong) id<MARewardedAdapterDelegate> delegate;
@property (nonatomic, assign, getter=hasGrantedReward) BOOL grantedReward; @property (nonatomic, assign, getter=hasGrantedReward) BOOL grantedReward;
- (instancetype)initWithParentAdapter:(ALTapjoyMediationAdapter *)parentAdapter andNotify:(id<MARewardedAdapterDelegate>)delegate; - (instancetype)initWithParentAdapter:(ALTapjoyMediationAdapter *)parentAdapter andNotify:(id<MARewardedAdapterDelegate>)delegate;
@end @end
@interface ALTapjoyMediationAdapter() @interface ALTapjoyMediationAdapter ()
// Initialization // Initialization
@property (nonatomic, copy, nullable) void(^oldCompletionHandler)(void); @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 // Interstitial
@property (nonatomic, strong) TJPlacement *interstitialPlacement; @property (nonatomic, strong) TJPlacement *interstitialPlacement;
@ -44,7 +44,7 @@
#pragma mark - MAAdapter Methods #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] ) if ( ![Tapjoy isConnected] )
{ {
@ -281,18 +281,10 @@
[tjPrivacyPolicy setBelowConsentAge: isAgeRestrictedUser.boolValue]; [tjPrivacyPolicy setBelowConsentAge: isAgeRestrictedUser.boolValue];
} }
if ( self.sdk.configuration.consentDialogState == ALConsentDialogStateApplies ) NSNumber *hasUserConsent = [self privacySettingForSelector: @selector(hasUserConsent) fromParameters: parameters];
if ( hasUserConsent )
{ {
[tjPrivacyPolicy setSubjectToGDPR: YES]; [tjPrivacyPolicy setUserConsent: hasUserConsent.boolValue ? @"1" : @"0"];
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 ) if ( ALSdk.versionCode >= 61100 )