Skip to content

Commit

Permalink
Update to 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 committed Feb 29, 2024
1 parent 3e6be80 commit f448dcd
Show file tree
Hide file tree
Showing 105 changed files with 15,385 additions and 378 deletions.
2 changes: 1 addition & 1 deletion plugins/2018.3326/android/corona.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dependencies {
implementation 'com.appodeal.ads.sdk.networks:applovin:3.1.3.1'
implementation 'com.appodeal.ads.sdk.networks:applovin:3.2.1.0'
}
Binary file modified plugins/2018.3326/iphone-sim/AppLovinSDK.framework/AppLovinSDK
Binary file not shown.
38 changes: 7 additions & 31 deletions plugins/2018.3326/iphone-sim/AppLovinSDK.framework/Headers/ALAd.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,16 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, copy, readonly, nullable) NSString *zoneIdentifier;

/**
* Whether or not the current ad is a video advertisement.
*/
@property (nonatomic, assign, readonly, getter=isVideoAd) BOOL videoAd;

/**
* Gets the ad value for a given key.
*
* @param key The key for which you want to retrieve the ad value.
*
* @return The arbitrary ad value corresponding to @c key, or @c nil if no such value exists for @c key.
*/
- (nullable NSString *)adValueForKey:(NSString *)key;

/**
* Gets the ad value for a given key, or a default value if no such value exists.
*
* @param key The key for which you want to retrieve the ad value.
* @param defaultValue The default value to return if the value of @c key does not exist or is @c nil.
*
* @return The arbitrary ad value corresponding to @c key, or the value of @c defaultValue if no such value exists for @c key.
*/
- (nullable NSString *)adValueForKey:(NSString *)key defaultValue:(nullable NSString *)defaultValue;

/**
* A unique ID that identifies this advertisement.
*
* If you need to report a broken ad to AppLovin support, please include this number’s @c longValue.
*/
@property (nonatomic, strong, readonly) NSNumber *adIdNumber;

- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;

@end

@interface ALAd (ALDeprecated)
@property (nonatomic, strong, readonly) NSNumber *adIdNumber __deprecated_msg("This API has been deprecated and will be removed in a future release.");
@property (nonatomic, assign, readonly, getter=isVideoAd) BOOL videoAd __deprecated_msg("This API has been deprecated and will be removed in a future release.");
- (nullable NSString *)adValueForKey:(NSString *)key __deprecated_msg("This API has been deprecated and will be removed in a future release.");
- (nullable NSString *)adValueForKey:(NSString *)key defaultValue:(nullable NSString *)defaultValue __deprecated_msg("This API has been deprecated and will be removed in a future release.");
@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@

NS_ASSUME_NONNULL_BEGIN

/**
* This protocol defines a listener for ad video playback events. Ads that do not contain videos will not trigger these callbacks.
*/
@protocol ALAdVideoPlaybackDelegate <NSObject>

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
* This interface represents a view-based ad — i.e. banner, MREC, or leader.
*/
@interface ALAdView : UIView

/**
* @name Ad Delegates
*/
Expand Down Expand Up @@ -72,6 +72,14 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, assign, getter=isAutoloadEnabled, setter=setAutoloadEnabled:) BOOL autoload;

/**
* Sets extra info to pass to the SDK.
*
* @param key Parameter key.
* @param value Parameter value.
*/
- (void)setExtraInfoForKey:(NSString *)key value:(nullable id)value;

/**
* @name Loading and Rendering Ads
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
//
// ALCMPError.h
// AppLovinSDK
//
// Created by Thomas So on 7/26/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, ALCMPErrorCode)
{
/**
* Indicates that an unspecified error has occurred.
*/
ALCMPErrorCodeUnspecified = -1,

/**
* Indicates that the CMP has not been integrated correctly.
*/
ALCMPErrorCodeIntegrationError = 1,

/**
* Indicates that the CMP form is unavailable.
*/
ALCMPErrorCodeFormUnavailable = 2,

/**
* Indicates that the CMP form is not required.
*/
ALCMPErrorCodeFormNotRequired = 3,
};

@interface ALCMPError : NSObject

/**
* The error code for this error.
*/
@property (nonatomic, assign, readonly) ALCMPErrorCode code;

/**
* The error message for this error.
*/
@property (nonatomic, copy, readonly) NSString *message;

/**
* The error code returned by the CMP.
*/
@property (nonatomic, assign, readonly) NSInteger cmpCode;

/**
* The error message returned by the CMP.
*/
@property (nonatomic, copy, readonly) NSString *cmpMessage;

- (instancetype)init NS_UNAVAILABLE;
- (instancetype)new NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//
// ALCMPService.h
// AppLovinSDK
//
// Created by Thomas So on 7/26/23.
//

#import <Foundation/Foundation.h>

@class ALCMPError;

NS_ASSUME_NONNULL_BEGIN

/**
* This class provides direct APIs for interfacing with the Google-certified CMP installed, if any.
*/
@interface ALCMPService : NSObject

/**
* @param error @c nil if the flow completed successfully. Otherwise, the error object contains more details about the reason for failure.
*/
typedef void (^ALCMPCompletionHandler) (ALCMPError *_Nullable error);

/**
* Shows the CMP flow to an existing user.
* Note that the user's current consent will be reset before the CMP alert is shown.
*
* @param completion The completion handler that will be called once the flow finishes showing.
*/
- (void)showCMPForExistingUserWithCompletion:(ALCMPCompletionHandler)completion;

/**
* @return @c YES if a supported CMP is integrated.
*/
- (BOOL)hasSupportedCMP;

- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ NS_ASSUME_NONNULL_BEGIN
* exchange for watching a video.
*/
@interface ALIncentivizedInterstitialAd : NSObject

#pragma mark - Ad Delegates

/**
* An object that conforms to the @c ALAdDisplayDelegate protocol. If you provide a value for @c adDisplayDelegate in your instance, the SDK will
* notify this delegate of ad show/hide events.
Expand Down Expand Up @@ -204,6 +204,14 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)showAd:(ALAd *)ad andNotify:(nullable id<ALAdRewardDelegate>)adRewardDelegate;

/**
* Sets extra info to pass to the SDK.
*
* @param key Parameter key.
* @param value Parameter value.
*/
- (void)setExtraInfoForKey:(NSString *)key value:(nullable id)value;

- (instancetype)init __attribute__((unavailable("Use initWithSdk:, initWithZoneIdentifier:, or [ALIncentivizedInterstitialAd shared] instead.")));
+ (instancetype)new NS_UNAVAILABLE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ NS_ASSUME_NONNULL_BEGIN
* This class displays full-screen ads to the user.
*/
@interface ALInterstitialAd : NSObject

#pragma mark - Ad Delegates

/**
* An object that conforms to the @c ALAdLoadDelegate protocol. If you provide a value for @c adLoadDelegate in your instance, the SDK will notify
* this delegate of ad load events.
Expand Down Expand Up @@ -68,6 +68,14 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)showAd:(ALAd *)ad;

/**
* Sets extra info to pass to the SDK.
*
* @param key Parameter key.
* @param value Parameter value.
*/
- (void)setExtraInfoForKey:(NSString *)key value:(nullable id)value;

#pragma mark - Initialization

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,18 @@ NS_INLINE void dispatchSyncOnMainQueue (dispatch_block_t __nonnull block)
}
}

NS_INLINE void dispatchOnGlobalQueueAfter (dispatch_queue_priority_t priority, double delay, dispatch_block_t __nonnull block)
{
dispatch_queue_t globalQueue = dispatch_get_global_queue(priority, 0);

if ( delay > 0 )
{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t) (delay * NSEC_PER_SEC)), globalQueue, block);
}
else
{
dispatch_async(globalQueue, block);
}
}

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ NS_ASSUME_NONNULL_BEGIN

- (void)log:(NSString *)format, ...;

// Helper methods for Swift, since variadic arguments are not supported/necessary
- (void)logDebug:(NSString *)message;
- (void)logInfo:(NSString *)message;
- (void)logWarn:(NSString *)message;
- (void)logError:(NSString *)message;
- (void)logUserError:(NSString *)message;

@end

@interface ALMediationAdapter (ALDeprecated)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
//

@class ALAdService;
@class ALCMPService;
@class ALEventService;
@class ALSdkConfiguration;
@class ALSdkSettings;
@class ALTargetingData;
@class ALUserSegment;
@class ALVariableService;
@class MAMediatedNetworkInfo;

NS_ASSUME_NONNULL_BEGIN
Expand Down Expand Up @@ -93,12 +93,11 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, strong, readonly) ALEventService *eventService;

/**
* Get an instance of the AppLovin variable service. This service is used to perform various A/B tests that you have set up on your AppLovin dashboard on your
* users.
* The CMP service, which provides direct APIs for interfacing with the Google-certified CMP installed, if any.
*
* @return Variable service. Guaranteed not to be @c NULL.
* @return CMP service. Guaranteed not to be @c NULL.
*/
@property (nonatomic, strong, readonly) ALVariableService *variableService;
@property (nonatomic, strong, readonly) ALCMPService *cmpService;

#pragma mark - MAX

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ NS_ASSUME_NONNULL_BEGIN
*/
@interface ALSdkConfiguration : NSObject

/**
* This enum represents the user's geography used to determine the type of consent flow shown to the user.
*/
typedef NS_ENUM(NSInteger, ALConsentFlowUserGeography)
{
/**
* User's geography is unknown.
*/
ALConsentFlowUserGeographyUnknown,

/**
* The user is in GDPR region.
*/
ALConsentFlowUserGeographyGDPR,

/**
* The user is in a non-GDPR region.
*/
ALConsentFlowUserGeographyOther
};

/**
* AppLovin SDK-defined app tracking transparency status values (extended to include "unavailable" state on iOS before iOS14).
*/
Expand Down Expand Up @@ -44,6 +65,12 @@ typedef NS_ENUM(NSInteger, ALAppTrackingTransparencyStatus)
ALAppTrackingTransparencyStatusAuthorized
};

/**
* Get the user's geography used to determine the type of consent flow shown to the user.
* If no such determination could be made, @c ALConsentFlowUserGeographyUnknown will be returned.
*/
@property (nonatomic, assign, readonly) ALConsentFlowUserGeography consentFlowUserGeography;

/**
* Gets the country code for this user. The value of this property will be an empty string if no country code is available for this user.
*
Expand Down Expand Up @@ -72,6 +99,19 @@ typedef NS_ENUM(NSInteger, ALAppTrackingTransparencyStatus)
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;

/**
* Whether or not test mode is enabled for this session.
*
* @return @c YES in one of the following cases:
* <ul>
* <li> 1. @code ALSdkSettings.testDeviceAdvertisingIdentifiers @endcode was set with current device's IDFA prior to SDK initialization.</li>
* <li> 2. Current device was registered as a test device through MAX dashboard -> MAX Test Devices prior to SDK initialization.</li>
* <li> 3. Test mode was manually enabled for this session through the Mediation Debugger during the last session.</li>
* <li> 4. Current device is a simulator.</li>
* </ul>
*/
@property (nonatomic, assign, readonly, getter=isTestModeEnabled) BOOL testModeEnabled;

@end

NS_ASSUME_NONNULL_END
Expand Down
Loading

0 comments on commit f448dcd

Please sign in to comment.