Skip to content

Commit

Permalink
updating ios to latest 2.11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 committed Jul 30, 2022
1 parent 192d983 commit 86edcfc
Show file tree
Hide file tree
Showing 113 changed files with 6,936 additions and 0 deletions.
Binary file modified plugins/2018.3326/iphone/AppLovinSDK.framework/AppLovinSDK
100755 → 100644
Binary file not shown.
70 changes: 70 additions & 0 deletions plugins/2018.3326/iphone/AppLovinSDK.framework/Headers/ALAd.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
//
// ALAd.h
// AppLovinSDK
//
// Copyright © 2020 AppLovin Corporation. All rights reserved.
//

#import "ALAdSize.h"
#import "ALAdType.h"

NS_ASSUME_NONNULL_BEGIN

/**
* Represents an ad that has been served from the AppLovin server.
*/
@interface ALAd : NSObject<NSCopying>

/**
* The size category of this ad.
*/
@property (nonatomic, strong, readonly) ALAdSize *size;

/**
* The type of this ad (regular or incentivized/rewarded).
*/
@property (nonatomic, strong, readonly) ALAdType *type;

/**
* The zone ID for the ad, if any.
*/
@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

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//
// ALAdDisplayDelegate.h
// AppLovinSDK
//
// Created by Basil on 3/23/12.
// Copyright © 2020 AppLovin Corporation. All rights reserved.
//

#import <UIKit/UIView.h>
#import "ALAd.h"

NS_ASSUME_NONNULL_BEGIN

/**
* This protocol defines a listener for ad display events.
*/
@protocol ALAdDisplayDelegate <NSObject>

/**
* The SDK invokes this when the ad is displayed in the view.
*
* The SDK invokes this method on the main UI thread.
*
* @param ad Ad that was just displayed.
* @param view Ad view in which the ad was displayed.
*/
- (void)ad:(ALAd *)ad wasDisplayedIn:(UIView *)view;

/**
* The SDK invokes this method when the ad is hidden from the view. This occurs when the user "X"es out of an interstitial.
*
* The SDK invokes this method on the main UI thread.
*
* @param ad Ad that was just hidden.
* @param view Ad view in which the ad was hidden.
*/
- (void)ad:(ALAd *)ad wasHiddenIn:(UIView *)view;

/**
* The SDK invokes this method when the ad is clicked in the view.
*
* The SDK invokes this method on the main UI thread.
*
* @param ad Ad that was just clicked.
* @param view Ad view in which the ad was clicked.
*/
- (void)ad:(ALAd *)ad wasClickedIn:(UIView *)view;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// ALAdLoadDelegate.h
// AppLovinSDK
//
// Created by Basil on 3/23/12.
// Copyright © 2020 AppLovin Corporation. All rights reserved.
//

#import "ALAd.h"

NS_ASSUME_NONNULL_BEGIN

/**
* This service loads an ad.
*/
@class ALAdService;

/**
* This protocol defines a listener for ad load events.
*/
@protocol ALAdLoadDelegate <NSObject>

/**
* The SDK invokes this method when an ad is loaded by the AdService.
*
* The SDK invokes this method on the main UI thread.
*
* @param adService AdService that loaded the ad.
* @param ad Ad that was loaded.
*/
- (void)adService:(ALAdService *)adService didLoadAd:(ALAd *)ad;

/**
* The SDK invokes this method when an ad load fails.
*
* The SDK invokes this method on the main UI thread.
*
* @param adService AdService that failed to load an ad.
* @param code An error code that corresponds to one of the constants defined in ALErrorCodes.h.
*/
- (void)adService:(ALAdService *)adService didFailToLoadAdWithError:(int)code;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
//
// ALAdRewardDelegate.h
// AppLovinSDK
//
//
// Copyright © 2020 AppLovin Corporation. All rights reserved.
//

#import "ALAd.h"

NS_ASSUME_NONNULL_BEGIN

/**
* This protocol defines a listener that listens to rewarded video events.
*/
@protocol ALAdRewardDelegate <NSObject>

@required

/**
* The SDK invokes this method if a user viewed a rewarded video and their reward was approved by the AppLovin server.
*
* If you use reward validation for incentivized videos, the SDK invokes this method if it contacted AppLovin successfully. This means the SDK believes the
* reward is legitimate and you should award it.
*
* <b>Tip:</b> refresh the user’s balance from your server at this point rather than relying on local data that could be tampered with on jailbroken devices.
*
* The @c response @c NSDictionary will typically include the keys @c "currency" and @c "amount", which point to @c NSStrings that contain the name and amount of the
* virtual currency that you may award.
*
* @param ad Ad that was viewed.
* @param response Dictionary that contains response data from the server, including @c "currency" and @c "amount".
*/
- (void)rewardValidationRequestForAd:(ALAd *)ad didSucceedWithResponse:(NSDictionary *)response;

/**
* The SDK invokes this method if it was able to contact AppLovin, but the user has already received the maximum number of coins you allowed per day in the web
* UI, and so is ineligible for a reward.
*
* @param ad Ad that was viewed.
* @param response Dictionary that contains response data from the server.
*/
- (void)rewardValidationRequestForAd:(ALAd *)ad didExceedQuotaWithResponse:(NSDictionary *)response;

/**
* The SDK invokes this method if the AppLovin server rejected the reward request. The usual cause of this is that the user fails to pass an anti-fraud check.
*
* @param ad Ad that was viewed.
* @param response Dictionary that contains response data from the server.
*/
- (void)rewardValidationRequestForAd:(ALAd *)ad wasRejectedWithResponse:(NSDictionary *)response;

/**
* The SDK invokes this method if it was unable to contact AppLovin, and so AppLovin will not issue a ping to your S2S rewarded callback server.
*
* @param ad Ad that was viewed.
* @param responseCode A failure code that corresponds to a constant defined in ALErrorCodes.h.
*/
- (void)rewardValidationRequestForAd:(ALAd *)ad didFailWithError:(NSInteger)responseCode;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
//
// ALAdService.h
// AppLovinSDK
//
// Created by Basil on 2/27/12.
// Copyright © 2020 AppLovin Corporation. All rights reserved.
//

#import "ALAd.h"
#import "ALAdSize.h"
#import "ALAdLoadDelegate.h"
#import "ALAdDisplayDelegate.h"
#import "ALAdVideoPlaybackDelegate.h"

NS_ASSUME_NONNULL_BEGIN

/**
* This class provides and displays ads.
*/
@interface ALAdService : NSObject

/**
* Fetches a new ad, of a given size, and notifies a supplied delegate on completion.
*
* @param adSize Size of an ad to load.
* @param delegate A callback that @c loadNextAd calls to notify of the fact that the ad is loaded.
*/
- (void)loadNextAd:(ALAdSize *)adSize andNotify:(id<ALAdLoadDelegate>)delegate;

/**
* Fetches a new ad, for a given zone, and notifies a supplied delegate on completion.
*
* @param zoneIdentifier The identifier of the zone to load an ad for.
* @param delegate A callback that @c loadNextAdForZoneIdentifier calls to notify of the fact that the ad is loaded.
*/
- (void)loadNextAdForZoneIdentifier:(NSString *)zoneIdentifier andNotify:(id<ALAdLoadDelegate>)delegate;

/**
* A token used for advanced header bidding.
*/
@property (nonatomic, copy, readonly) NSString *bidToken;

/**
* Fetches a new ad for the given ad token. The provided ad token must be one that was received from AppLovin S2S API.
*
* @warning This method is designed to be called by SDK mediation providers. Use @code -[ALAdService loadNextAdForZoneIdentifiers:andNotify:] @endcode for
* regular integrations.
*
* @param adToken Ad token returned from AppLovin S2S API.
* @param delegate A callback that @c loadNextAdForAdToken calls to notify that the ad has been loaded.
*/
- (void)loadNextAdForAdToken:(NSString *)adToken andNotify:(id<ALAdLoadDelegate>)delegate;

/**
* Fetch a new ad for any of the provided zone identifiers.
*
* @warning This method is designed to be called by SDK mediation providers. Use @code -[ALAdService loadNextAdForZoneIdentifiers:andNotify:] @endcode for
* regular integrations.
*
* @param zoneIdentifiers An array of zone identifiers for which an ad should be loaded.
* @param delegate A callback that @c loadNextAdForZoneIdentifiers calls to notify that the ad has been loaded.
*/
- (void)loadNextAdForZoneIdentifiers:(NSArray<NSString *> *)zoneIdentifiers andNotify:(id<ALAdLoadDelegate>)delegate;

- (instancetype)init __attribute__((unavailable("Access ALAdService through ALSdk's adService property.")));
+ (instancetype)new NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END
54 changes: 54 additions & 0 deletions plugins/2018.3326/iphone/AppLovinSDK.framework/Headers/ALAdSize.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//
// ALAdSize.h
// AppLovinSDK
//
// Created by Basil on 2/27/12.
// Copyright © 2020 AppLovin Corporation. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

/**
* This class defines the possible sizes of an ad.
*/
@interface ALAdSize : NSObject

/**
* Represents the size of a 320×50 banner advertisement.
*/
@property (class, nonatomic, strong, readonly) ALAdSize *banner;

/**
* Represents the size of a 728×90 leaderboard advertisement (for tablets).
*/
@property (class, nonatomic, strong, readonly) ALAdSize *leader;

/**
* Represents the size of a 300x250 rectangular advertisement.
*/
@property (class, nonatomic, strong, readonly) ALAdSize *mrec;

/**
* Represents the size of a full-screen advertisement.
*/
@property (class, nonatomic, strong, readonly) ALAdSize *interstitial;

/**
* Represents the size of a cross promo advertisement.
*/
@property (class, nonatomic, strong, readonly) ALAdSize *crossPromo;

/**
* Represents a native ad which can be integrated seemlessly into the environment of your app.
*/
@property (class, nonatomic, strong, readonly) ALAdSize *native;

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

@end

NS_ASSUME_NONNULL_END
40 changes: 40 additions & 0 deletions plugins/2018.3326/iphone/AppLovinSDK.framework/Headers/ALAdType.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
//
// ALAdType.h
// AppLovinSDK
//
// Copyright © 2020 AppLovin Corporation. All rights reserved.
//

NS_ASSUME_NONNULL_BEGIN

/**
* This class defines the possible types of an interstitial ad (i.e. regular or incentivized/rewarded).
*/
@interface ALAdType : NSObject

/**
* A standard advertisement that does not provide a reward to the user.
*/
@property (class, nonatomic, strong, readonly) ALAdType *regular;

/**
* A rewarded ad, which will provide the user virtual currency upon completion.
*/
@property (class, nonatomic, strong, readonly) ALAdType *incentivized;

/**
* A rewarded interstitial ad, which the user can skip or be granted a reward upon successful completion of the ad.
*/
@property (class, nonatomic, strong, readonly) ALAdType *autoIncentivized;

/**
* Represents a native ad which can be integrated seemlessly into the environment of your app.
*/
@property (class, nonatomic, strong, readonly) ALAdType *native;

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

@end

NS_ASSUME_NONNULL_END
Loading

0 comments on commit 86edcfc

Please sign in to comment.