Skip to content

Commit

Permalink
IronSource/7.3.1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Jun 7, 2023
1 parent 2262a7a commit ad1b747
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 50 deletions.
6 changes: 3 additions & 3 deletions IronSource/AppLovinMediationIronSourceAdapter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Pod::Spec.new do |s|

s.authors = 'AppLovin Corporation'
s.name = 'AppLovinMediationIronSourceAdapter'
s.version = '7.3.0.0.0'
s.platform = :ios, '9.0'
s.version = '7.3.1.0.0'
s.platform = :ios, '10.0'
s.summary = 'IronSource 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.license =
Expand All @@ -26,7 +26,7 @@ s.source =

s.vendored_frameworks = "#{s.name}-#{s.version}/#{s.name}.xcframework"

s.dependency 'IronSourceSDK', '= 7.3.0.0'
s.dependency 'IronSourceSDK', '= 7.3.1.0'
s.dependency 'AppLovinSDK'

s.pod_target_xcconfig =
Expand Down
5 changes: 5 additions & 0 deletions IronSource/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 7.3.1.0.0
* Certified with IronSource SDK 7.3.1.0.
* Remove the `privacySettingForSelector:fromParameters:` function and call privacy methods directly.
* Now requires MAX SDK version 6.14.0 or higher. 

## 7.3.0.0.0
* Certified with IronSource SDK 7.3.0.0.

Expand Down
65 changes: 55 additions & 10 deletions IronSource/IronSourceAdapter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
3332E8216269DA6995262A35 /* Pods_IronSourceAdapter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 201072AE0426AD125E14EEDA /* Pods_IronSourceAdapter.framework */; };
6A561CE8219BB5D400E3749A /* ALIronSourceMediationAdapter.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A561CD5219BB58300E3749A /* ALIronSourceMediationAdapter.m */; };
6A561CEA219BB5D400E3749A /* AppLovinSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D31B64D219BA4E600875D92 /* AppLovinSDK.framework */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -42,9 +43,12 @@
1D9AE8ED21423C7E00080475 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; };
1D9AE8EE21423C7E00080475 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
1D9AE8FC21423C9200080475 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
201072AE0426AD125E14EEDA /* Pods_IronSourceAdapter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_IronSourceAdapter.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4D372FF403039C95DD6E4A34 /* Pods-IronSourceAdapter.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IronSourceAdapter.debug.xcconfig"; path = "Target Support Files/Pods-IronSourceAdapter/Pods-IronSourceAdapter.debug.xcconfig"; sourceTree = "<group>"; };
6A561CD5219BB58300E3749A /* ALIronSourceMediationAdapter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ALIronSourceMediationAdapter.m; sourceTree = "<group>"; };
6A561CD6219BB58300E3749A /* ALIronSourceMediationAdapter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ALIronSourceMediationAdapter.h; sourceTree = "<group>"; };
6A561CEF219BB5D400E3749A /* libIronSourceAdapter.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libIronSourceAdapter.a; sourceTree = BUILT_PRODUCTS_DIR; };
9DABFD445E195B27F518EAC9 /* Pods-IronSourceAdapter.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IronSourceAdapter.release.xcconfig"; path = "Target Support Files/Pods-IronSourceAdapter/Pods-IronSourceAdapter.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -53,6 +57,7 @@
buildActionMask = 2147483647;
files = (
6A561CEA219BB5D400E3749A /* AppLovinSDK.framework in Frameworks */,
3332E8216269DA6995262A35 /* Pods_IronSourceAdapter.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -77,6 +82,7 @@
1D9AE8EA21423C7E00080475 /* SystemConfiguration.framework */,
1D9AE8E821423C7E00080475 /* UIKit.framework */,
1D9AE8E721423C7E00080475 /* WebKit.framework */,
201072AE0426AD125E14EEDA /* Pods_IronSourceAdapter.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand All @@ -97,6 +103,7 @@
1D5748ED21C9C979004C8981 /* Supporting Files */,
1D97FB861FBCF38B00D6C309 /* Products */,
1D2303A61FBCF4C7001939D7 /* Frameworks */,
B7184E8F5253510E404BDA35 /* Pods */,
);
sourceTree = "<group>";
};
Expand All @@ -117,13 +124,24 @@
path = IronSourceAdapter;
sourceTree = "<group>";
};
B7184E8F5253510E404BDA35 /* Pods */ = {
isa = PBXGroup;
children = (
4D372FF403039C95DD6E4A34 /* Pods-IronSourceAdapter.debug.xcconfig */,
9DABFD445E195B27F518EAC9 /* Pods-IronSourceAdapter.release.xcconfig */,
);
name = Pods;
path = "../../iOS-Workspace/Pods";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
6A561CE6219BB5D400E3749A /* IronSourceAdapter */ = {
isa = PBXNativeTarget;
buildConfigurationList = 6A561CEC219BB5D400E3749A /* Build configuration list for PBXNativeTarget "IronSourceAdapter" */;
buildPhases = (
705EA8D42D97EAA4D575D789 /* [CP] Check Pods Manifest.lock */,
6A561CE7219BB5D400E3749A /* Sources */,
6A561CE9219BB5D400E3749A /* Frameworks */,
6A561CEB219BB5D400E3749A /* Copy Files */,
Expand Down Expand Up @@ -169,6 +187,31 @@
};
/* End PBXProject section */

/* Begin PBXShellScriptBuildPhase section */
705EA8D42D97EAA4D575D789 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-IronSourceAdapter-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
6A561CE7219BB5D400E3749A /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -219,7 +262,6 @@
ENABLE_BITCODE = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
FRAMEWORK_SEARCH_PATHS = "";
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand All @@ -235,7 +277,6 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LIBRARY_SEARCH_PATHS = "";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -281,7 +322,6 @@
ENABLE_BITCODE = NO;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_SEARCH_PATHS = "";
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand All @@ -291,7 +331,6 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LIBRARY_SEARCH_PATHS = "";
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = NO;
SDKROOT = iphoneos;
Expand All @@ -302,42 +341,48 @@
};
6A561CED219BB5D400E3749A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 4D372FF403039C95DD6E4A34 /* Pods-IronSourceAdapter.debug.xcconfig */;
buildSettings = {
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = X8JXXK4FF5;
ENABLE_BITCODE = NO;
EXCLUDED_ARCHS = i386;
FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"${PODS_ROOT}/IronSourceSDK/IronSource\"/**",
"\"${PODS_XCFRAMEWORKS_BUILD_DIR}/IronSourceSDK\"/**",
);
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LIBRARY_SEARCH_PATHS = "$(inherited)";
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SYSTEM_FRAMEWORK_SEARCH_PATHS = "";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
6A561CEE219BB5D400E3749A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9DABFD445E195B27F518EAC9 /* Pods-IronSourceAdapter.release.xcconfig */;
buildSettings = {
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = X8JXXK4FF5;
ENABLE_BITCODE = NO;
EXCLUDED_ARCHS = i386;
FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"${PODS_ROOT}/IronSourceSDK/IronSource\"/**",
"\"${PODS_XCFRAMEWORKS_BUILD_DIR}/IronSourceSDK\"/**",
);
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LIBRARY_SEARCH_PATHS = "$(inherited)";
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SYSTEM_FRAMEWORK_SEARCH_PATHS = "";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
44 changes: 7 additions & 37 deletions IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#import "ALIronSourceMediationAdapter.h"
#import <IronSource/IronSource.h>

#define ADAPTER_VERSION @"7.3.0.0.0"
#define ADAPTER_VERSION @"7.3.1.0.0"

@interface ALIronSourceMediationAdapterRouter : ALMediationAdapterRouter <ISDemandOnlyInterstitialDelegate, ISDemandOnlyRewardedVideoDelegate, ISLogDelegate>
@property (nonatomic, assign, getter=hasGrantedReward) BOOL grantedReward;
Expand Down Expand Up @@ -55,17 +55,14 @@ - (void)initializeWithParameters:(id<MAAdapterInitializationParameters>)paramete

[self setPrivacySettingsWithParameters: parameters];

if ( ALSdk.versionCode >= 61100 )
NSNumber *isDoNotSell = [parameters isDoNotSell];
if ( isDoNotSell )
{
NSNumber *isDoNotSell = [self privacySettingForSelector: @selector(isDoNotSell) fromParameters: parameters];
if ( isDoNotSell )
{
// NOTE: `setMetaData` must be called _before_ initializing their SDK
[IronSource setMetaDataWithKey: @"do_not_sell" value: isDoNotSell.boolValue ? @"YES" : @"NO"];
}
// NOTE: `setMetaData` must be called _before_ initializing their SDK
[IronSource setMetaDataWithKey: @"do_not_sell" value: isDoNotSell.boolValue ? @"YES" : @"NO"];
}

NSNumber *isAgeRestrictedUser = [self privacySettingForSelector: @selector(isAgeRestrictedUser) fromParameters: parameters];
NSNumber *isAgeRestrictedUser = [parameters isAgeRestrictedUser];
if ( isAgeRestrictedUser )
{
[IronSource setMetaDataWithKey: @"is_child_directed" value: isAgeRestrictedUser.boolValue ? @"YES" : @"NO"];
Expand Down Expand Up @@ -262,40 +259,13 @@ - (void)updateIronSourceDelegates

- (void)setPrivacySettingsWithParameters:(id<MAAdapterParameters>)parameters
{
NSNumber *hasUserConsent = [self privacySettingForSelector: @selector(hasUserConsent) fromParameters: parameters];
NSNumber *hasUserConsent = [parameters hasUserConsent];
if ( hasUserConsent )
{
[IronSource setConsent: hasUserConsent.boolValue];
}
}

- (nullable NSNumber *)privacySettingForSelector:(SEL)selector fromParameters:(id<MAAdapterParameters>)parameters
{
// Use reflection because compiled adapters have trouble fetching `BOOL` from old SDKs and `NSNumber` from new SDKs (above 6.14.0)
NSMethodSignature *signature = [[parameters class] instanceMethodSignatureForSelector: selector];
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature: signature];
[invocation setSelector: selector];
[invocation setTarget: parameters];
[invocation invoke];

// Privacy parameters return nullable `NSNumber` on newer SDKs
if ( ALSdk.versionCode >= 6140000 )
{
NSNumber *__unsafe_unretained value;
[invocation getReturnValue: &value];

return value;
}
// Privacy parameters return BOOL on older SDKs
else
{
BOOL rawValue;
[invocation getReturnValue: &rawValue];

return @(rawValue);
}
}

- (NSArray<NSString *> *)adFormatsToInitializeFromParameters:(id<MAAdapterInitializationParameters>)parameters
{
NSArray<NSString *> *adFormats = [parameters.serverParameters al_arrayForKey: @"init_ad_formats"];
Expand Down

0 comments on commit ad1b747

Please sign in to comment.