Skip to content

Commit

Permalink
* IronSource updated to v7.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dkimitsa committed Dec 12, 2023
1 parent 46a8ecc commit 3b22058
Show file tree
Hide file tree
Showing 101 changed files with 2,425 additions and 174 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ v1.36.0 - in development
| [Fyber](fyber/) | 8.2.2 |
| [HelpShiftX](helpshift/) | 10.3.0 |
| [InMobi](inmobi/) | 10.6.0 |
| [IronSource](ironsource/) | 7.5.1 |
| [IronSource](ironsource/) | 7.6.0 |
| [Lottie](lottie/) | 4.3.3 |
| [OneSignal](onesignal/) | 5.0.5 |
| [Pollfish](pollfish/) | 6.5.0 |
Expand Down
1 change: 1 addition & 0 deletions ironsource/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

| RoboPods Version | IronSource Version |
|------------------|--------------------|
| 1.36.0 | 7.6.0 |
| 1.33.0 | 7.5.0 |
| 1.32.0 | 7.3.1 |
| 1.31.0 | 7.3.0 |
Expand Down
2 changes: 1 addition & 1 deletion ironsource/ios/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>robopods-ironsource-ios</artifactId>
<name>RoboPods IronSource SDK iOS v7.5.0</name>
<name>RoboPods IronSource SDK iOS v7.6.0</name>
<packaging>jar</packaging>

<licenses>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2021 ironSource. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ISBannerSize.h"
#import "ISAdapterConfig.h"

NS_ASSUME_NONNULL_BEGIN

Expand All @@ -20,6 +22,15 @@ NS_ASSUME_NONNULL_BEGIN
// The configuration holding userId, banner size, ad unit data from auction response and adapter config
@property (nonatomic, strong, readonly, nullable) NSDictionary *adUnitData;

+ (instancetype)adDataWithAdapterConfiguration:(ISAdapterConfig *)config
adUnit:(ISAdUnit *)adUnit
userId:(NSString *)userId;

+ (instancetype)adDataWithAdapterConfiguration:(ISAdapterConfig *)config
adUnit:(ISAdUnit *)adUnit
userId:(NSString *)userId
bannerSize:(ISBannerSize *)bannerSize;

- (instancetype)initWithServerData:(nullable NSString *)serverData
configuration:(NSDictionary *)configuration
adUnitData:(nullable NSDictionary *)adUnitData;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// ISAdOptionsPosition.h
// IronSource
//
// Created by Hadar Pur on 06/07/2023.
// Copyright © 2023 IronSource. All rights reserved.
//


// ISAdOptionsPosition
typedef NS_ENUM(NSInteger, ISAdOptionsPosition) {
ISAdOptionsPositionTopLeft,
ISAdOptionsPositionTopRight,
ISAdOptionsPositionBottomLeft,
ISAdOptionsPositionBottomRight
};

static NSString * const kAdOptionsPosKey = @"adOptionsPos";
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
+(ISAdUnit*)IS_AD_UNIT_INTERSTITIAL;
+(ISAdUnit*)IS_AD_UNIT_OFFERWALL;
+(ISAdUnit*)IS_AD_UNIT_BANNER;
+(ISAdUnit*)IS_AD_UNIT_NATIVE_AD;

- (instancetype)initWithValue:(NSString*)value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import "ISAdapterAdInteractionDelegate.h"
#import "ISAdData.h"

@protocol ISAdapterAdFullscreenProtocol <NSObject>

Expand All @@ -29,4 +30,3 @@
- (BOOL)isAdAvailableWithAdData:(ISAdData*)adData;

@end

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
@property (strong, nonatomic, readonly) NSDictionary *rewardedVideoSettings;
//The banner settings contains the provider configs which may be changed with the banner configuration during the flow, so it's not defined as readonly.
@property (strong, nonatomic) NSDictionary *bannerSettings;
@property (strong, nonatomic, readonly) NSDictionary *nativeAdSettings;

@property (strong, nonatomic, readonly) NSString *providerDefaultInstance; /* Name of Adapter class to load (fallback to reflectionName) */
@property (strong, nonatomic, readonly) NSString *customNetwork; /* name of the custom network is exists */
Expand All @@ -54,6 +55,7 @@
- (void)setInterstitialSettings:(NSDictionary *)interstitialSettings;
- (void)setRewardedVideoSettings:(NSDictionary *)rewardedVideoSettings;
- (void)setBannerSettings:(NSDictionary *)bannerSettings;
- (void)setNativeAdSettings:(NSDictionary *)nativeAdSettings;
- (void)setProviderDefaultInstance:(NSString *)providerDefaultInstance;
- (void)setIsOneFlow:(BOOL)isOneFlow;
- (NSString *)customNetworkAdapterNameForAdUnit:(ISAdUnit *)adUnit;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// ISAdapterNativeAdData.h
// IronSource
//
// Created by Hadar Pur on 27/06/2023.
// Copyright © 2023 IronSource. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ISNativeAdDataProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@interface ISAdapterNativeAdData : NSObject <ISNativeAdDataProtocol>

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// ISAdapterNativeAdViewBinder.h
// IronSource
//
// Created by Hadar Pur on 19/06/2023.
// Copyright © 2023 IronSource. All rights reserved.
//

#import "ISAdapterNativeAdViewBinderProtocol.h"
#import "ISNativeAdViewHolder.h"

@interface ISAdapterNativeAdViewBinder : NSObject <ISAdapterNativeAdViewBinderProtocol>

@property (nonatomic, strong, nullable) ISNativeAdViewHolder *adViewHolder;

@end

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// ISAdapterNativeAdViewBinderProtocol.h
// IronSource
//
// Created by Hadar Pur on 02/07/2023.
// Copyright © 2023 IronSource. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ISNativeAdViewBinderProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@protocol ISAdapterNativeAdViewBinderProtocol <ISNativeAdViewBinderProtocol>

@required

@property (nonatomic, strong, nullable) UIView *networkNativeAdView;

- (void)setNativeAdView:(UIView *_Nullable)nativeAdView;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,24 @@ NS_ASSUME_NONNULL_BEGIN

@property (nonatomic) ISAdUnit *adUnit;
@property (nonatomic, readonly) ISAdapterConfig *adapterConfig;
@property (nonatomic, readonly, nullable) NSUUID *adUnitObjectId;



/// @param adUnit the ad unit represented by the adapter
/// @param adapterConfig the configuration relevant for the adapter instance
- (instancetype)initWithAdUnit:(ISAdUnit*)adUnit
adapterConfig:(ISAdapterConfig*)adapterConfig;


/// @param adUnit the ad unit represented by the adapter
/// @param adapterConfig the configuration relevant for the adapter instance
/// @param adUnitObjectId the object id for the ad loaded

- (instancetype)initWithAdUnit:(ISAdUnit*)adUnit
adapterConfig:(ISAdapterConfig*)adapterConfig
adUnitObjectId:(nullable NSUUID*)adUnitObjectId;

/// the network sdk version
- (nullable id<ISAdapterBaseProtocol>)getNetworkAdapter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,27 @@
#import "ISInterstitialAdapterDelegate.h"
#import "ISBannerAdapterDelegate.h"
#import "ISOfferwallAdapterDelegate.h"
#import "ISNativeAdAdapterDelegate.h"

#import "ISConfigurations.h"
#import "ISMetaDataUtils.h"
#import "ISMetaDataConstants.h"

#import "ISError.h"
#import "Environment/ISConcurrentMutableSet.h"
#import "Environment/ISConcurrentMutableDictionary.h"
#import "ISConcurrentMutableSet.h"
#import "ISConcurrentMutableDictionary.h"
#import "ISNetworkInitCallbackProtocol.h"
#import "ISLog.h"

#import "ISBaseRewardedVideoAdapter.h"
#import "ISBaseInterstitialAdapter.h"
#import "ISBaseBannerAdapter.h"
#import "ISBaseNativeAdAdapter.h"

#import "ISAdapterNativeAdData.h"
#import "ISAdapterNativeAdViewBinder.h"
#import "ISNativeAdViewHolder.h"
#import "UIView+ISNativeView.h"

@interface ISBaseAdapter ()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
#import "ISRewardedVideoAdapterProtocol.h"
#import "ISInterstitialAdapterProtocol.h"
#import "ISOfferwallAdapterProtocol.h"
#import "ISNativeAdAdapterProtocol.h"
#import "ISBiddingDataAdapterProtocol.h"
#import "ISAdUnitAdapterProtocol.h"

#import "ISAdapterConfig.h"
#import "ISLoadWhileShowSupportState.h"
#import "Environment/ISConcurrentMutableDictionary.h"
#import "ISConcurrentMutableDictionary.h"

@interface ISBaseAdapter : NSObject <ISInterstitialAdapterProtocol, ISRewardedVideoAdapterProtocol, ISBannerAdapterProtocol, ISOfferwallAdapterProtocol, ISBiddingDataAdapterProtocol, ISAdUnitAdapterProtocol>
@interface ISBaseAdapter : NSObject <ISInterstitialAdapterProtocol, ISRewardedVideoAdapterProtocol, ISBannerAdapterProtocol, ISOfferwallAdapterProtocol, ISBiddingDataAdapterProtocol, ISNativeAdAdapterProtocol>
{
@protected ISLoadWhileShowSupportState LWSState;
}
Expand All @@ -41,10 +41,12 @@
- (void)setRewardedVideoAdapter:(id<ISRewardedVideoAdapterProtocol>)rewardedVideoAdapter;
- (void)setInterstitialAdapter:(id<ISInterstitialAdapterProtocol>)interstitialAdapter;
- (void)setBannerAdapter:(id<ISBannerAdapterProtocol>)bannerAdapter;
- (void)setNativeAdAdapter:(id<ISNativeAdAdapterProtocol>)nativeAdAdapter;

- (id<ISRewardedVideoAdapterProtocol>)getRewardedVideoAdapter;
- (id<ISInterstitialAdapterProtocol>)getInterstitialAdapter;
- (id<ISBannerAdapterProtocol>)getBannerAdapter;
- (id<ISNativeAdAdapterProtocol>)getNativeAdAdapter;

// check if the network supports adaptive banners
- (BOOL)getAdaptiveBannerSupport;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// ISBaseNativeAdAdapter.h
// IronSource
//
// Created by Hadar Pur on 06/07/2023.
// Copyright © 2023 IronSource. All rights reserved.
//

#import "ISBaseAdUnitAdapter.h"
#import "ISNativeAdAdapterProtocol.h"
#import "ISNativeAdProperties.h"

NS_ASSUME_NONNULL_BEGIN

@interface ISBaseNativeAdAdapter : ISBaseAdUnitAdapter <ISNativeAdAdapterProtocol>

- (ISNativeAdProperties *)getNativeAdPropertiesWithAdapterConfig:(nonnull ISAdapterConfig *)adapterConfig;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

- (void)rewardedVideoDidOpen:(NSString *)instanceId;

- (void)rewardedVideoDidClose:(NSString *)instanceId;

- (void)rewardedVideoDidFailToShowWithError:(NSError *)error instanceId:(NSString *)instanceId;

- (void)rewardedVideoDidClick:(NSString *)instanceId;

- (void)rewardedVideoAdRewarded:(NSString *)instanceId;

- (void)rewardedVideoDidClose:(NSString *)instanceId;

@end

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ typedef NS_ENUM(NSUInteger, ISErrorCode) {
ERROR_DO_BN_LOAD_BEFORE_INIT_SUCCESS = 620,
ERROR_DO_BN_INSTANCE_LOAD_AUCTION_FAILED = 621,

ERROR_NT_LOAD_AFTER_INIT_FAILED = 700,
ERROR_NT_LOAD_AFTER_LONG_INITIATION = 701,
ERROR_NT_INIT_FAILED_AFTER_LOAD = 702,
ERROR_NT_LOAD_WHILE_LONG_INITIATION = 703,
ERROR_NT_LOAD_PLACEMENT_CAPPED = 704,
ERROR_NT_LOAD_EXCEPTION = 705,
ERROR_NT_LOAD_NO_FILL = 706,
ERROR_NT_INSTANCE_INIT_TIMEOUT = 707,
ERROR_NT_INSTANCE_LOAD_TIMEOUT = 708,
ERROR_NT_INSTANCE_LOAD_EMPTY_ADAPTER = 711,
ERROR_NT_INSTANCE_INIT_EXCEPTION = 712,
ERROR_NT_LOAD_NO_CONFIG = 715,
ERROR_NT_INSTANCE_LOAD_EMPTY_SERVER_DATA = 718,

AUCTION_ERROR_REQUEST = 1000,
AUCTION_ERROR_RESPONSE_CODE_NOT_VALID = 1001,
AUCTION_ERROR_PARSE = 1002,
Expand All @@ -73,6 +87,7 @@ typedef NS_ENUM(NSUInteger, ISErrorCode) {

ERROR_SESSION_KEY_ENCRYPTION_FAILURE = 1015,

ERROR_NT_EMPTY_DEFAULT_PLACEMENT = 1018,
ERROR_IS_EMPTY_DEFAULT_PLACEMENT = 1020,
ERROR_RV_EMPTY_DEFAULT_PLACEMENT = 1021,
ERROR_RV_SHOW_CALLED_DURING_SHOW = 1022,
Expand All @@ -96,24 +111,28 @@ typedef NS_ENUM(NSUInteger, ISErrorCode) {
ERROR_RV_INSTANCE_INIT_EXCEPTION = 1040,
ERROR_IS_INSTANCE_INIT_EXCEPTION = 1041,
ERROR_BN_LOAD_FAILED_NO_CANDIDATES = 1044,

ERROR_NT_LOAD_FAILED_NO_CANDIDATES = 1045,

ERROR_DO_IS_LOAD_ALREADY_IN_PROGRESS = 1050,
ERROR_DO_IS_CALL_LOAD_BEFORE_SHOW = 1051,
ERROR_DO_IS_LOAD_TIMED_OUT = 1052,
ERROR_DO_RV_LOAD_DURING_LOAD = 1053,
ERROR_DO_RV_LOAD_ALREADY_IN_PROGRESS = 1053,
ERROR_DO_RV_SHOW_CALLED_BEFORE_LOAD = 1054,
ERROR_DO_RV_LOAD_TIMED_OUT = 1055,
ERROR_DO_RV_LOAD_DURING_SHOW = 1056,
ERROR_RV_EXPIRED_ADS = 1057,
ERROR_DO_BN_LOAD_MISSING_VIEW_CONTROLLER = 1062,
ERROR_DO_BN_LOAD_MISSING_VIEW_CONTROLLER = 1060,
ERROR_RV_LOAD_AFTER_LONG_INITIATION = 1061,
ERROR_DO_RV_INSTANCE_LOAD_EMPTY_SERVER_DATA = 1062,
ERROR_CODE_MISSING_CONFIGURATION = 1063,

ERROR_DO_IS_SHOW_DURING_SHOW = 1064,
ERROR_DO_IS_SHOW_DURING_LOAD = 1065,
ERROR_DO_IS_SHOW_NO_AVAILABLE_ADS = 1066,
ERROR_DO_RV_SHOW_DURING_SHOW = 1067,
ERROR_DO_RV_SHOW_DURING_LOAD = 1068,
ERROR_DO_RV_SHOW_NO_AVAILABLE_ADS = 1069,
ERROR_DO_RV_INSTANCE_LOAD_AUCTION_FAILED = 1070,
ERROR_RV_LOAD_AFTER_INIT_FAILED = 1072,

ERROR_RV_LOAD_NO_FILL = 1058,
ERROR_IS_LOAD_NO_FILL = 1158,
Expand Down
Loading

0 comments on commit 3b22058

Please sign in to comment.