From dd4334415338553b0917d98c0a69ed52755b2a64 Mon Sep 17 00:00:00 2001 From: Thomas So <5104410+thomasmso@users.noreply.github.com> Date: Sun, 2 Jan 2022 23:07:41 -0800 Subject: [PATCH] adapers/add_support_for_compiling_against_sdk_11.0.0 (#51) --- .../AdColonyAdapter.xcodeproj/project.pbxproj | 8 +- .../ALAdColonyMediationAdapter.h | 4 +- .../ALAdColonyMediationAdapter.m | 8 +- AdColony/CHANGELOG.md | 3 + .../project.pbxproj | 367 ++++++++++++ .../ALAmazonAdMarketplaceMediationAdapter.h | 13 + .../ALAmazonAdMarketplaceMediationAdapter.m | 542 ++++++++++++++++++ ...ediationAmazonAdMarketplaceAdapter.podspec | 56 ++ AmazonAdMarketplace/CHANGELOG.md | 7 + .../project.pbxproj | 367 ++++++++++++ ...LAmazonPublisherServicesMediationAdapter.h | 13 + ...LAmazonPublisherServicesMediationAdapter.m | 517 +++++++++++++++++ ...tionAmazonPublisherServicesAdapter.podspec | 56 ++ AmazonPublisherServices/CHANGELOG.md | 13 + .../project.pbxproj | 16 +- .../ALByteDanceMediationAdapter.h | 3 +- .../ALByteDanceMediationAdapter.m | 9 +- ByteDance/CHANGELOG.md | 3 + Chartboost/CHANGELOG.md | 3 + .../project.pbxproj | 6 - .../ALChartboostMediationAdapter.h | 4 +- .../ALChartboostMediationAdapter.m | 11 +- Dataseat/CHANGELOG.md | 3 + .../DataseatAdapter.xcodeproj/project.pbxproj | 6 - .../ALDataseatMediationAdapter.h | 4 +- .../ALDataseatMediationAdapter.m | 6 +- Facebook/CHANGELOG.md | 3 + .../FacebookAdapter.xcodeproj/project.pbxproj | 6 - .../ALFacebookMediationAdapter.h | 7 +- .../ALFacebookMediationAdapter.m | 13 +- Fyber/CHANGELOG.md | 3 + Fyber/Fyber/ALInneractiveMediationAdapter.h | 5 +- Fyber/Fyber/ALInneractiveMediationAdapter.m | 11 +- Fyber/FyberAdapter.xcodeproj/project.pbxproj | 6 - Google/CHANGELOG.md | 3 + .../GoogleAdapter.xcodeproj/project.pbxproj | 6 - .../GoogleAdapter/ALGoogleMediationAdapter.h | 6 +- .../GoogleAdapter/ALGoogleMediationAdapter.m | 17 +- GoogleAdManager/CHANGELOG.md | 3 + .../project.pbxproj | 6 - .../ALGoogleAdManagerMediationAdapter.h | 6 +- .../ALGoogleAdManagerMediationAdapter.m | 17 +- HyprMX/CHANGELOG.md | 3 + .../HyprMXAdapter.xcodeproj/project.pbxproj | 6 - .../HyprMXAdapter/ALHyprMXMediationAdapter.h | 4 +- .../HyprMXAdapter/ALHyprMXMediationAdapter.m | 8 +- InMobi/CHANGELOG.md | 3 + .../InMobiAdapter.xcodeproj/project.pbxproj | 6 - .../InMobiAdapter/ALInMobiMediationAdapter.h | 5 +- .../InMobiAdapter/ALInMobiMediationAdapter.m | 8 +- IronSource/CHANGELOG.md | 3 + .../project.pbxproj | 8 - .../ALIronSourceMediationAdapter.h | 11 +- .../ALIronSourceMediationAdapter.m | 15 +- Line/CHANGELOG.md | 3 + Line/LineAdapter.xcodeproj/project.pbxproj | 16 +- Line/LineAdapter/ALLineMediationAdapter.h | 3 +- Line/LineAdapter/ALLineMediationAdapter.m | 10 +- Maio/CHANGELOG.md | 1 + Maio/MaioAdapter.xcodeproj/project.pbxproj | 8 - Maio/MaioAdapter/ALMaioMediationAdapter.h | 5 +- Maio/MaioAdapter/ALMaioMediationAdapter.m | 8 +- Mintegral/CHANGELOG.md | 3 + .../project.pbxproj | 6 - .../ALMintegralMediationAdapter.h | 2 +- .../ALMintegralMediationAdapter.m | 12 +- MoPub/CHANGELOG.md | 3 + MoPub/MoPubAdapter.xcodeproj/project.pbxproj | 6 - MoPub/MoPubAdapter/ALMoPubMediationAdapter.h | 5 +- MoPub/MoPubAdapter/ALMoPubMediationAdapter.m | 7 +- MyTarget/CHANGELOG.md | 3 + .../MyTargetAdapter.xcodeproj/project.pbxproj | 6 - .../ALMyTargetMediationAdapter.h | 2 +- .../ALMyTargetMediationAdapter.m | 8 +- Nend/CHANGELOG.md | 3 + Nend/NendAdapter.xcodeproj/project.pbxproj | 6 - Nend/NendAdapter/ALNendMediationAdapter.h | 2 +- Nend/NendAdapter/ALNendMediationAdapter.m | 10 +- OguryPresage/CHANGELOG.md | 3 + .../project.pbxproj | 8 - .../ALOguryPresageMediationAdapter.h | 4 +- .../ALOguryPresageMediationAdapter.m | 8 +- Smaato/CHANGELOG.md | 3 + .../SmaatoAdapter.xcodeproj/project.pbxproj | 8 - .../SmaatoAdapter/ALSmaatoMediationAdapter.h | 5 +- .../SmaatoAdapter/ALSmaatoMediationAdapter.m | 13 +- Snap/CHANGELOG.md | 3 + Snap/SnapAdapter.xcodeproj/project.pbxproj | 6 - Snap/SnapAdapter/ALSnapMediationAdapter.h | 2 +- Snap/SnapAdapter/ALSnapMediationAdapter.m | 8 +- Tapjoy/CHANGELOG.md | 3 + .../TapjoyAdapter.xcodeproj/project.pbxproj | 8 - .../TapjoyAdapter/ALTapjoyMediationAdapter.h | 6 +- .../TapjoyAdapter/ALTapjoyMediationAdapter.m | 11 +- TencentGDT/CHANGELOG.md | 1 + .../project.pbxproj | 12 - .../ALTencentGDTMediationAdapter.h | 5 +- .../ALTencentGDTMediationAdapter.m | 7 +- UnityAds/CHANGELOG.md | 3 + .../UnityAdsAdapter.xcodeproj/project.pbxproj | 8 - .../ALUnityAdsMediationAdapter.h | 5 +- .../ALUnityAdsMediationAdapter.m | 14 +- VerizonAds/CHANGELOG.md | 3 + .../project.pbxproj | 8 - .../ALVerizonAdsMediationAdapter.h | 5 +- .../ALVerizonAdsMediationAdapter.m | 13 +- Verve/AppLovinMediationVerveAdapter.podspec | 8 +- Verve/CHANGELOG.md | 6 + Verve/VerveAdapter.xcodeproj/project.pbxproj | 6 - Verve/VerveAdapter/ALVerveMediationAdapter.h | 2 +- Verve/VerveAdapter/ALVerveMediationAdapter.m | 10 +- Vungle/CHANGELOG.md | 3 + .../VungleAdapter.xcodeproj/project.pbxproj | 6 - .../VungleAdapter/ALVungleMediationAdapter.h | 2 +- .../VungleAdapter/ALVungleMediationAdapter.m | 10 +- Yandex/CHANGELOG.md | 3 + .../YandexAdapter.xcodeproj/project.pbxproj | 6 - .../YandexAdapter/ALYandexMediationAdapter.h | 2 +- .../YandexAdapter/ALYandexMediationAdapter.m | 7 +- 119 files changed, 2184 insertions(+), 454 deletions(-) create mode 100644 AmazonAdMarketplace/AmazonAdMarketplaceAdapter.xcodeproj/project.pbxproj create mode 100644 AmazonAdMarketplace/AmazonAdMarketplaceAdapter/ALAmazonAdMarketplaceMediationAdapter.h create mode 100644 AmazonAdMarketplace/AmazonAdMarketplaceAdapter/ALAmazonAdMarketplaceMediationAdapter.m create mode 100644 AmazonAdMarketplace/AppLovinMediationAmazonAdMarketplaceAdapter.podspec create mode 100644 AmazonAdMarketplace/CHANGELOG.md create mode 100644 AmazonPublisherServices/AmazonPublisherServicesAdapter.xcodeproj/project.pbxproj create mode 100644 AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.h create mode 100644 AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.m create mode 100644 AmazonPublisherServices/AppLovinMediationAmazonPublisherServicesAdapter.podspec create mode 100644 AmazonPublisherServices/CHANGELOG.md diff --git a/AdColony/AdColonyAdapter.xcodeproj/project.pbxproj b/AdColony/AdColonyAdapter.xcodeproj/project.pbxproj index c6386269e6..2719cba863 100644 --- a/AdColony/AdColonyAdapter.xcodeproj/project.pbxproj +++ b/AdColony/AdColonyAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,12 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; + HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +289,12 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; + HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +317,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +337,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/AdColony/AdColonyAdapter/ALAdColonyMediationAdapter.h b/AdColony/AdColonyAdapter/ALAdColonyMediationAdapter.h index e8b905edf7..a388e2362f 100644 --- a/AdColony/AdColonyAdapter/ALAdColonyMediationAdapter.h +++ b/AdColony/AdColonyAdapter/ALAdColonyMediationAdapter.h @@ -6,9 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/AdColony/AdColonyAdapter/ALAdColonyMediationAdapter.m b/AdColony/AdColonyAdapter/ALAdColonyMediationAdapter.m index 11633af609..7d4db02b89 100644 --- a/AdColony/AdColonyAdapter/ALAdColonyMediationAdapter.m +++ b/AdColony/AdColonyAdapter/ALAdColonyMediationAdapter.m @@ -8,11 +8,6 @@ #import "ALAdColonyMediationAdapter.h" #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "ALAtomicBoolean.h" -#import "MAAdFormat+Internal.h" #define ADAPTER_VERSION @"4.7.2.0.0" @@ -325,10 +320,13 @@ + (MAAdapterError *)toMaxError:(NSError *)adColonyError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: adColonyErrorCode thirdPartySdkErrorMessage: adColonyError.localizedDescription]; +#pragma clang diagnostic pop } - (AdColonyAppOptions *)optionsFromParameters:(id)parameters diff --git a/AdColony/CHANGELOG.md b/AdColony/CHANGELOG.md index 7d9a25d1db..ec861270db 100644 --- a/AdColony/CHANGELOG.md +++ b/AdColony/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 4.7.2.0.0 * Certified with AdColony SDK 4.7.2. diff --git a/AmazonAdMarketplace/AmazonAdMarketplaceAdapter.xcodeproj/project.pbxproj b/AmazonAdMarketplace/AmazonAdMarketplaceAdapter.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..49c23acf60 --- /dev/null +++ b/AmazonAdMarketplace/AmazonAdMarketplaceAdapter.xcodeproj/project.pbxproj @@ -0,0 +1,367 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 1D31B64E219BA4E600875D92 /* AppLovinSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D31B64D219BA4E600875D92 /* AppLovinSDK.framework */; }; + 1D3F4CA627235689003C12EF /* ALAmazonAdMarketplaceMediationAdapter.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3F4CA527235689003C12EF /* ALAmazonAdMarketplaceMediationAdapter.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 1D97FB831FBCF38B00D6C309 /* Copy Files */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + ); + name = "Copy Files"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1D31B64D219BA4E600875D92 /* AppLovinSDK.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = AppLovinSDK.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 1D3F4CA427235689003C12EF /* ALAmazonAdMarketplaceMediationAdapter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ALAmazonAdMarketplaceMediationAdapter.h; sourceTree = ""; }; + 1D3F4CA527235689003C12EF /* ALAmazonAdMarketplaceMediationAdapter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ALAmazonAdMarketplaceMediationAdapter.m; sourceTree = ""; }; + 1D97FB851FBCF38B00D6C309 /* libAmazonAdMarketplaceAdapter.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAmazonAdMarketplaceAdapter.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 1D9AE8E221423C7D00080475 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; + 1D9AE8E321423C7D00080475 /* SafariServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SafariServices.framework; path = System/Library/Frameworks/SafariServices.framework; sourceTree = SDKROOT; }; + 1D9AE8E421423C7D00080475 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; + 1D9AE8E521423C7E00080475 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1D9AE8E621423C7E00080475 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; + 1D9AE8E721423C7E00080475 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; + 1D9AE8E821423C7E00080475 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 1D9AE8E921423C7E00080475 /* AVKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVKit.framework; path = System/Library/Frameworks/AVKit.framework; sourceTree = SDKROOT; }; + 1D9AE8EA21423C7E00080475 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; + 1D9AE8EB21423C7E00080475 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; }; + 1D9AE8EC21423C7E00080475 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + 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; }; + 6A5A632A21C086E400B755D7 /* AppLovinMediationAmazonAdMarketplaceAdapter.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = AppLovinMediationAmazonAdMarketplaceAdapter.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 6A5A632B21C086E500B755D7 /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1D97FB821FBCF38B00D6C309 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D31B64E219BA4E600875D92 /* AppLovinSDK.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1D2303A61FBCF4C7001939D7 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1D31B64D219BA4E600875D92 /* AppLovinSDK.framework */, + 1D9AE8FC21423C9200080475 /* QuartzCore.framework */, + 1D9AE8EB21423C7E00080475 /* AdSupport.framework */, + 1D9AE8EC21423C7E00080475 /* AVFoundation.framework */, + 1D9AE8E921423C7E00080475 /* AVKit.framework */, + 1D9AE8E221423C7D00080475 /* CFNetwork.framework */, + 1D9AE8EE21423C7E00080475 /* CoreData.framework */, + 1D9AE8E421423C7D00080475 /* CoreFoundation.framework */, + 1D9AE8ED21423C7E00080475 /* CoreTelephony.framework */, + 1D9AE8E521423C7E00080475 /* Foundation.framework */, + 1D9AE8E621423C7E00080475 /* MediaPlayer.framework */, + 1D9AE8E321423C7D00080475 /* SafariServices.framework */, + 1D9AE8EA21423C7E00080475 /* SystemConfiguration.framework */, + 1D9AE8E821423C7E00080475 /* UIKit.framework */, + 1D9AE8E721423C7E00080475 /* WebKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 1D31B649219BA2E000875D92 /* AmazonAdMarketplace */ = { + isa = PBXGroup; + children = ( + 1D3F4CA427235689003C12EF /* ALAmazonAdMarketplaceMediationAdapter.h */, + 1D3F4CA527235689003C12EF /* ALAmazonAdMarketplaceMediationAdapter.m */, + ); + name = AmazonAdMarketplace; + path = AmazonAdMarketplaceAdapter; + sourceTree = ""; + }; + 1D97FB7C1FBCF38B00D6C309 = { + isa = PBXGroup; + children = ( + 1D31B649219BA2E000875D92 /* AmazonAdMarketplace */, + 6A12947D21C086460052F283 /* Supporting Files */, + 1D97FB861FBCF38B00D6C309 /* Products */, + 1D2303A61FBCF4C7001939D7 /* Frameworks */, + ); + sourceTree = ""; + }; + 1D97FB861FBCF38B00D6C309 /* Products */ = { + isa = PBXGroup; + children = ( + 1D97FB851FBCF38B00D6C309 /* libAmazonAdMarketplaceAdapter.a */, + ); + name = Products; + sourceTree = ""; + }; + 6A12947D21C086460052F283 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6A5A632A21C086E400B755D7 /* AppLovinMediationAmazonAdMarketplaceAdapter.podspec */, + 6A5A632B21C086E500B755D7 /* CHANGELOG.md */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D97FB841FBCF38B00D6C309 /* AmazonAdMarketplaceAdapter */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D97FB8E1FBCF38B00D6C309 /* Build configuration list for PBXNativeTarget "AmazonAdMarketplaceAdapter" */; + buildPhases = ( + 1D97FB811FBCF38B00D6C309 /* Sources */, + 1D97FB821FBCF38B00D6C309 /* Frameworks */, + 1D97FB831FBCF38B00D6C309 /* Copy Files */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = AmazonAdMarketplaceAdapter; + productName = "Unity Plugin"; + productReference = 1D97FB851FBCF38B00D6C309 /* libAmazonAdMarketplaceAdapter.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 1D97FB7D1FBCF38B00D6C309 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1300; + ORGANIZATIONNAME = AppLovin; + TargetAttributes = { + 1D97FB841FBCF38B00D6C309 = { + CreatedOnToolsVersion = 9.1; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 1D97FB801FBCF38B00D6C309 /* Build configuration list for PBXProject "AmazonAdMarketplaceAdapter" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 1D97FB7C1FBCF38B00D6C309; + productRefGroup = 1D97FB861FBCF38B00D6C309 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 1D97FB841FBCF38B00D6C309 /* AmazonAdMarketplaceAdapter */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D97FB811FBCF38B00D6C309 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D3F4CA627235689003C12EF /* ALAmazonAdMarketplaceMediationAdapter.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 1D97FB8C1FBCF38B00D6C309 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + 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; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + 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; + VALID_ARCHS = "$(ARCHS_STANDARD)"; + }; + name = Debug; + }; + 1D97FB8D1FBCF38B00D6C309 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + 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; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + 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; + VALIDATE_PRODUCT = YES; + VALID_ARCHS = "$(ARCHS_STANDARD)"; + }; + name = Release; + }; + 1D97FB8F1FBCF38B00D6C309 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = X8JXXK4FF5; + FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; + HEADER_SEARCH_PATHS = ""; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LIBRARY_SEARCH_PATHS = "$(inherited)"; + ONLY_ACTIVE_ARCH = YES; + OTHER_CFLAGS = "-fembed-bitcode-marker"; + OTHER_LDFLAGS = "$(inherited)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 1D97FB901FBCF38B00D6C309 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = X8JXXK4FF5; + FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; + HEADER_SEARCH_PATHS = ""; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LIBRARY_SEARCH_PATHS = "$(inherited)"; + ONLY_ACTIVE_ARCH = NO; + OTHER_CFLAGS = "-fembed-bitcode"; + OTHER_LDFLAGS = "$(inherited)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1D97FB801FBCF38B00D6C309 /* Build configuration list for PBXProject "AmazonAdMarketplaceAdapter" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D97FB8C1FBCF38B00D6C309 /* Debug */, + 1D97FB8D1FBCF38B00D6C309 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1D97FB8E1FBCF38B00D6C309 /* Build configuration list for PBXNativeTarget "AmazonAdMarketplaceAdapter" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D97FB8F1FBCF38B00D6C309 /* Debug */, + 1D97FB901FBCF38B00D6C309 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 1D97FB7D1FBCF38B00D6C309 /* Project object */; +} diff --git a/AmazonAdMarketplace/AmazonAdMarketplaceAdapter/ALAmazonAdMarketplaceMediationAdapter.h b/AmazonAdMarketplace/AmazonAdMarketplaceAdapter/ALAmazonAdMarketplaceMediationAdapter.h new file mode 100644 index 0000000000..f365a63a2b --- /dev/null +++ b/AmazonAdMarketplace/AmazonAdMarketplaceAdapter/ALAmazonAdMarketplaceMediationAdapter.h @@ -0,0 +1,13 @@ +// +// ALAmazonAdMarketplaceMediationAdapter.h +// AppLovinSDK +// +// Created by Thomas So on 10/22/21. +// Copyright © 2021 AppLovin. All rights reserved. +// + +#import + +@interface ALAmazonAdMarketplaceMediationAdapter : ALMediationAdapter + +@end diff --git a/AmazonAdMarketplace/AmazonAdMarketplaceAdapter/ALAmazonAdMarketplaceMediationAdapter.m b/AmazonAdMarketplace/AmazonAdMarketplaceAdapter/ALAmazonAdMarketplaceMediationAdapter.m new file mode 100644 index 0000000000..1ea83569d9 --- /dev/null +++ b/AmazonAdMarketplace/AmazonAdMarketplaceAdapter/ALAmazonAdMarketplaceMediationAdapter.m @@ -0,0 +1,542 @@ +// +// ALAmazonAdMarketplaceMediationAdapter.m +// AppLovinSDK +// +// Created by Thomas So on 10/22/21. +// Copyright © 2021 AppLovin. All rights reserved. +// + +#import "ALAmazonAdMarketplaceMediationAdapter.h" +#import + +#define ADAPTER_VERSION @"4.2.1.0" + +/** + * Container object for holding mediation hints dict generated from Amazon's SDK and the timestamp it was geenrated at. + */ +@interface ALAmazonMediationHints : NSObject + +/** + * The bid info / mediation hints dict generated from Amazon's SDK. + */ +@property (nonatomic, strong) NSDictionary *value; + +/** + * The unique identifier for this instance of the mediation hints. + */ +@property (nonatomic, copy) NSString *identifier; + +- (instancetype)initWithValue:(NSDictionary *)value; +- (instancetype)init NS_UNAVAILABLE; + +@end + +@interface ALAmazonAdMarketplaceMediationAdapterAdViewDelegate : NSObject +@property (nonatomic, weak) ALAmazonAdMarketplaceMediationAdapter *parentAdapter; +@property (nonatomic, strong) id delegate; +- (instancetype)initWithParentAdapter:(ALAmazonAdMarketplaceMediationAdapter *)parentAdapter andNotify:(id)delegate; +@end + +@interface ALAmazonAdMarketplaceMediationAdapterInterstitialAdDelegate : NSObject +@property (nonatomic, weak) ALAmazonAdMarketplaceMediationAdapter *parentAdapter; +@property (nonatomic, strong) id delegate; +- (instancetype)initWithParentAdapter:(ALAmazonAdMarketplaceMediationAdapter *)parentAdapter andNotify:(id)delegate; +@end + +@interface ALAmazonSignalCollectionDelegate : NSObject +@property (nonatomic, strong) ALAmazonAdMarketplaceMediationAdapter *parentAdapter; // Needs `strong` +@property (nonatomic, strong) id parameters; +@property (nonatomic, weak) MAAdFormat *adFormat; +@property (nonatomic, strong) id delegate; +- (instancetype)initWithParentAdapter:(ALAmazonAdMarketplaceMediationAdapter *)parentAdapter + parameters:(id)parameters + adFormat:(MAAdFormat *)adFormat + andNotify:(id)delegate; +@end + +@interface ALAmazonAdMarketplaceMediationAdapter() + +@property (nonatomic, strong) ALAmazonSignalCollectionDelegate *signalCollectionDelegate; + +// AdView +@property (nonatomic, strong) ALAmazonAdMarketplaceMediationAdapterAdViewDelegate *adViewAdapterDelegate; + +// Interstitial +@property (nonatomic, strong) DTBAdInterstitialDispatcher *interstitialDispatcher; +@property (nonatomic, strong) ALAmazonAdMarketplaceMediationAdapterInterstitialAdDelegate *interstitialAdapterDelegate; + +@end + +@implementation ALAmazonAdMarketplaceMediationAdapter + +// Ad loader object used for collecting signal in non-maiden requests +static NSMutableDictionary *ALAmazonAdLoaders; + +// Contains mapping of encoded bid id -> mediation hints / bid info +static NSMutableDictionary *ALMediationHintsCache; +static NSObject *ALMediationHintsCacheLock; + ++ (void)initialize +{ + [super initialize]; + + ALAmazonAdLoaders = [NSMutableDictionary dictionary]; + + ALMediationHintsCache = [NSMutableDictionary dictionary]; + ALMediationHintsCacheLock = [[NSObject alloc] init]; +} + +- (void)initializeWithParameters:(id)parameters completionHandler:(void (^)(MAAdapterInitializationStatus, NSString *_Nullable))completionHandler +{ + if ( [parameters isTesting] ) + { + [[DTBAds sharedInstance] setTestMode: YES]; + [[DTBAds sharedInstance] setLogLevel: DTBLogLevelAll]; + } + + completionHandler(MAAdapterInitializationStatusDoesNotApply, nil); +} + +- (NSString *)SDKVersion +{ + return [DTBAds version]; +} + +- (NSString *)adapterVersion +{ + return ADAPTER_VERSION; +} + +- (void)destroy +{ + self.signalCollectionDelegate = nil; + self.adViewAdapterDelegate = nil; + self.interstitialDispatcher = nil; + self.interstitialAdapterDelegate = nil; +} + +#pragma mark - MASignalProvider Methods + +- (void)collectSignalWithParameters:(id)parameters andNotify:(id)delegate +{ + MAAdFormat *adFormat = parameters.adFormat; + + // + // See if ad loader for this ad format exists or not + // + DTBAdLoader *adLoader = ALAmazonAdLoaders[adFormat]; + if ( adLoader ) + { + [self d: @"Found existing ad loader for format: %@", adFormat]; + + self.signalCollectionDelegate = [[ALAmazonSignalCollectionDelegate alloc] initWithParentAdapter: self + parameters: parameters + adFormat: parameters.adFormat + andNotify: delegate]; + [adLoader loadAd: self.signalCollectionDelegate]; + + return; + } + + // + // This is the initial ad load for this particular ad format + // + + [self d: @"Collecting initial signal for format: %@", adFormat]; + +// id adResponseObj = parameters.localExtraParameters[@"amazon_ad_response"]; +// id adErrorObj = parameters.localExtraParameters[@"amazon_ad_error"]; +// +// if ( [adResponseObj isKindOfClass: [DTBAdResponse class]] ) +// { +// DTBAdResponse *adResponse = (DTBAdResponse *) adResponseObj; +// +// // Store ad loader for future ad refresh token collection +// ALAmazonAdLoaders[adFormat] = adResponse.dtbAdLoader; +// +// [self processAdResponseWithParameters: parameters adResponse: adResponse andNotify: delegate]; +// } +// else if ( [adErrorObj isKindOfClass: [DTBAdErrorInfo class]] ) +// { +// DTBAdErrorInfo *adError = (DTBAdErrorInfo *) adErrorObj; +// +// // Store ad loader for future ad refresh token collection +// ALAmazonAdLoaders[adFormat] = adError.dtbAdLoader; +// +// [self failSignalCollectionWithError: adError andNotify: delegate]; +// } +// else +// { +// [self failSignalCollectionWithErrorMessage: @"DTBAdResponse or DTBAdErrorInfo not passed in ad load API" andNotify: delegate]; +// } +} + +- (void)processAdResponseWithParameters:(id)parameters adResponse:(DTBAdResponse *)adResponse andNotify:(id)delegate +{ + [self d: @"Processing ad response..."]; + + NSString *encodedBidId = [adResponse amznSlots]; + if ( [encodedBidId al_isValidString] ) + { + ALAmazonMediationHints *mediationHints = [[ALAmazonMediationHints alloc] initWithValue: [adResponse mediationHints]]; + + @synchronized ( ALMediationHintsCacheLock ) + { + // Store mediation hints for the actual ad request + ALMediationHintsCache[encodedBidId] = mediationHints; + } + + // In the case that Amazon loses the auction - clean up the mediation hints + + NSTimeInterval mediationHintsCacheCleanupDelaySec = [parameters.serverParameters al_numberForKey: @"mediation_hints_cleanup_delay_sec" + defaultValue: @(5 * 60)].al_timeIntervalValue; + + if ( mediationHintsCacheCleanupDelaySec > 0 ) + { + dispatchOnMainQueueAfter(mediationHintsCacheCleanupDelaySec, ^{ + + @synchronized ( ALMediationHintsCacheLock ) + { + // Check if this is the same mediation hints / bid info as when the cleanup was scheduled + ALAmazonMediationHints *currentMediationHints = ALMediationHintsCache[encodedBidId]; + if ( [currentMediationHints.identifier isEqual: mediationHints.identifier] ) + { + [ALMediationHintsCache removeObjectForKey: encodedBidId]; + } + } + }); + } + + [self d: @"Successfully loaded encoded bid id: %@", encodedBidId]; + + [delegate didCollectSignal: encodedBidId]; + } + else + { + [self failSignalCollectionWithErrorMessage: @"Received empty bid id" andNotify: delegate]; + } +} + +//- (void)failSignalCollectionWithError:(DTBAdErrorInfo *)adError andNotify:(id)delegate +//{ +// NSString *errorMessage = [NSString stringWithFormat: @"Signal collection failed: %d", adError.dtbAdError]; +// [self failSignalCollectionWithErrorMessage: errorMessage andNotify: delegate]; +//} + +- (void)failSignalCollectionWithErrorMessage:(NSString *)errorMessage andNotify:(id)delegate +{ + [self e: errorMessage]; + [delegate didFailToCollectSignalWithErrorMessage: errorMessage]; +} + +#pragma mark - MAAdViewAdapter Methods + +- (void)loadAdViewAdForParameters:(id)parameters adFormat:(MAAdFormat *)adFormat andNotify:(id)delegate +{ + NSString *encodedBidId = parameters.serverParameters[@"encoded_bid_id"]; + [self d: @"Loading %@ ad view ad for encoded bid id: %@...", adFormat.label, encodedBidId]; + + if ( ![encodedBidId al_isValidString] ) + { + [delegate didFailToLoadAdViewAdWithError: MAAdapterError.invalidConfiguration]; + return; + } + + CGRect frame = (CGRect) { CGPointZero, adFormat.size }; + self.adViewAdapterDelegate = [[ALAmazonAdMarketplaceMediationAdapterAdViewDelegate alloc] initWithParentAdapter: self andNotify: delegate]; + DTBAdBannerDispatcher *dispatcher = [[DTBAdBannerDispatcher alloc] initWithAdFrame: frame delegate: self.adViewAdapterDelegate]; + + ALAmazonMediationHints *mediationHints; + @synchronized ( ALMediationHintsCacheLock ) + { + mediationHints = ALMediationHintsCache[encodedBidId]; + [ALMediationHintsCache removeObjectForKey: encodedBidId]; + } + + // Paranoia + if ( mediationHints ) + { + [dispatcher fetchBannerAdWithParameters: mediationHints.value]; + } + else + { + [self e: @"Unable to find mediation hints"]; + [delegate didFailToLoadAdViewAdWithError: MAAdapterError.invalidLoadState]; + } +} + +#pragma mark - MAInterstitialAdapter Adapter + +- (void)loadInterstitialAdForParameters:(id)parameters andNotify:(id)delegate +{ + NSString *encodedBidId = parameters.serverParameters[@"encoded_bid_id"]; + [self d: @"Loading interstitial ad for encoded bid id: %@...", encodedBidId]; + + if ( ![encodedBidId al_isValidString] ) + { + [delegate didFailToLoadInterstitialAdWithError: MAAdapterError.invalidConfiguration]; + return; + } + + self.interstitialAdapterDelegate = [[ALAmazonAdMarketplaceMediationAdapterInterstitialAdDelegate alloc] initWithParentAdapter: self andNotify: delegate]; + self.interstitialDispatcher = [[DTBAdInterstitialDispatcher alloc] initWithDelegate: self.interstitialAdapterDelegate]; + + ALAmazonMediationHints *mediationHints; + @synchronized ( ALMediationHintsCacheLock ) + { + mediationHints = ALMediationHintsCache[encodedBidId]; + [ALMediationHintsCache removeObjectForKey: encodedBidId]; + } + + // Paranoia + if ( mediationHints ) + { + [self.interstitialDispatcher fetchAdWithParameters: mediationHints.value]; + } + else + { + [self e: @"Unable to find mediation hints"]; + [delegate didFailToLoadInterstitialAdWithError: MAAdapterError.invalidLoadState]; + } +} + +- (void)showInterstitialAdForParameters:(id)parameters andNotify:(id)delegate +{ + [self log: @"Showing interstitial ad..."]; + + if ( self.interstitialDispatcher.interstitialLoaded ) + { + [self.interstitialDispatcher showFromController: [ALUtils topViewControllerFromKeyWindow]]; + } + else + { + [self log: @"Interstitial ad not ready"]; + [delegate didFailToDisplayInterstitialAdWithError: MAAdapterError.adNotReady]; + } +} + +#pragma mark - Utility Methods + ++ (MAAdapterError *)toMaxError:(DTBAdErrorCode)amazonErrorCode +{ + MAAdapterError *adapterError = MAAdapterError.unspecified; + switch ( amazonErrorCode ) + { + case SampleErrorCodeBadRequest: + adapterError = MAAdapterError.badRequest; + break; + case SampleErrorCodeUnknown: + adapterError = MAAdapterError.unspecified; + break; + case SampleErrorCodeNetworkError: + adapterError = MAAdapterError.noConnection; + break; + case SampleErrorCodeNoInventory: + adapterError = MAAdapterError.noFill; + break; + } + + return [MAAdapterError errorWithCode: adapterError.code + errorString: adapterError.message + thirdPartySdkErrorCode: amazonErrorCode + thirdPartySdkErrorMessage: @""]; +} + +@end + +@implementation ALAmazonMediationHints + +- (instancetype)initWithValue:(NSDictionary *)value +{ + self = [super init]; + if ( self ) + { + self.identifier = [NSUUID UUID].UUIDString.lowercaseString; + self.value = value; + } + return self; +} + +- (id)copyWithZone:(NSZone *)zone +{ + ALAmazonMediationHints *copy = [[[self class] allocWithZone: zone] init]; + copy.value = self.value; + copy.identifier = self.identifier; + + return copy; +} + +- (BOOL)isEqual:(ALAmazonMediationHints *)other +{ + if ( self == other ) + return YES; + if ( !other ) + return NO; + if ( ![self.identifier isEqualToString: other.identifier] ) + return NO; + if ( ![self.value isEqualToDictionary: other.value] ) + return NO; + + return YES; +} + +- (NSUInteger)hash +{ + NSUInteger hash = [super hash]; + hash = hash * 31u + [self.identifier hash]; + hash = hash * 31u + [self.value hash]; + + return hash; +} + +- (NSString *)description +{ + return [NSString stringWithFormat: @"[ALAmazonMediationHints: identifier=%@, value=%@]", self.identifier, self.value]; +} + +@end + +@implementation ALAmazonSignalCollectionDelegate + +- (instancetype)initWithParentAdapter:(ALAmazonAdMarketplaceMediationAdapter *)parentAdapter + parameters:(id)parameters + adFormat:(MAAdFormat *)adFormat + andNotify:(id)delegate +{ + self = [super init]; + if ( self ) + { + self.parentAdapter = parentAdapter; + self.parameters = parameters; + self.delegate = delegate; + self.adFormat = adFormat; + } + return self; +} + +//- (void)onSuccess:(DTBAdResponse *)adResponse +//{ +// // Store ad loader for future ad refresh token collection +// ALAmazonAdLoaders[self.adFormat] = adResponse.dtbAdLoader; +// +// [self.parentAdapter processAdResponseWithParameters: self.parameters +// adResponse: adResponse +// andNotify: self.delegate]; +//} +// +//- (void)onFailure:(DTBAdError)error dtbAdErrorInfo:(DTBAdErrorInfo *)dtbAdErrorInfo +//{ +// // Store ad loader for future ad refresh token collection +// ALAmazonAdLoaders[self.adFormat] = dtbAdErrorInfo.dtbAdLoader; +// +// [self.parentAdapter failSignalCollectionWithError: dtbAdErrorInfo andNotify: self.delegate]; +//} + +@end + +@implementation ALAmazonAdMarketplaceMediationAdapterAdViewDelegate + +- (instancetype)initWithParentAdapter:(ALAmazonAdMarketplaceMediationAdapter *)parentAdapter andNotify:(id)delegate +{ + self = [super init]; + if ( self ) + { + self.parentAdapter = parentAdapter; + self.delegate = delegate; + } + return self; +} + +- (void)adDidLoad:(UIView *)adView +{ + [self.parentAdapter d: @"AdView ad loaded"]; + [self.delegate didLoadAdForAdView: adView]; +} + +- (void)adFailedToLoad:(nullable UIView *)banner errorCode:(NSInteger)errorCode +{ + [self.parentAdapter e: @"AdView failed to load: %ld", errorCode]; + + MAAdapterError *adapterError = [ALAmazonAdMarketplaceMediationAdapter toMaxError: errorCode]; + [self.delegate didFailToLoadAdViewAdWithError: adapterError]; +} + +- (void)impressionFired +{ + [self.parentAdapter d: @"AdView impression fired"]; + [self.delegate didDisplayAdViewAd]; +} + +- (void)bannerWillLeaveApplication:(UIView *)adView +{ + [self.parentAdapter d: @"AdView will leave application"]; + [self.delegate didClickAdViewAd]; +} + +@end + +@implementation ALAmazonAdMarketplaceMediationAdapterInterstitialAdDelegate + +- (instancetype)initWithParentAdapter:(ALAmazonAdMarketplaceMediationAdapter *)parentAdapter andNotify:(id)delegate +{ + self = [super init]; + if ( self ) + { + self.parentAdapter = parentAdapter; + self.delegate = delegate; + } + return self; +} + +- (void)interstitialDidLoad:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial loaded"]; + [self.delegate didLoadInterstitialAd]; +} + +- (void)interstitial:(nullable DTBAdInterstitialDispatcher *)interstitial didFailToLoadAdWithErrorCode:(DTBAdErrorCode)errorCode +{ + [self.parentAdapter log: @"Interstitial failed to load with error: %ld", errorCode]; + + MAAdapterError *adapterError = [ALAmazonAdMarketplaceMediationAdapter toMaxError: errorCode]; + [self.delegate didFailToLoadInterstitialAdWithError: adapterError]; +} + +- (void)interstitialWillPresentScreen:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial will present screen"]; +} + +- (void)interstitialDidPresentScreen:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial did present screen"]; +} + +- (void)impressionFired +{ + [self.parentAdapter log: @"Interstitial impression fired"]; + [self.delegate didDisplayInterstitialAd]; +} + +- (void)interstitialWillDismissScreen:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial will dismiss screen"]; +} + +- (void)interstitialDidDismissScreen:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial did dismiss screen"]; + [self.delegate didHideInterstitialAd]; +} + +- (void)interstitialWillLeaveApplication:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial will leave application"]; +} + +- (void)showFromRootViewController:(UIViewController *)controller +{ + [self.parentAdapter log: @"Show interstitial from root view controller: %@", controller]; +} + +@end diff --git a/AmazonAdMarketplace/AppLovinMediationAmazonAdMarketplaceAdapter.podspec b/AmazonAdMarketplace/AppLovinMediationAmazonAdMarketplaceAdapter.podspec new file mode 100644 index 0000000000..cbdfa25ef2 --- /dev/null +++ b/AmazonAdMarketplace/AppLovinMediationAmazonAdMarketplaceAdapter.podspec @@ -0,0 +1,56 @@ +Pod::Spec.new do |s| + +s.authors = +{ + 'AppLovin Corporation' => 'devsupport@applovin.com' +} +s.name = 'AppLovinMediationAmazonAdMarketplaceAdapter' +s.version = '4.2.1.0' +s.platform = :ios, '10.0' +s.summary = 'Amazon Publisher Services adapter used for mediation with the AppLovin MAX SDK' +s.homepage = 'https://github.com/CocoaPods/Specs/search?o=desc&q=AppLovinAmazonAdMarketplaceMediationAdapter&s=indexed' +s.license = +{ + :type => 'Commercial License', + :text => <<-LICENSE + +Copyright 2022 AppLovin Corp. All rights reserved. + +The AppLovin MAX SDK is available under a commercial license (https://www.applovin.com/eula). + +LICENSE +} + +s.source = +{ + :http => 'https://artifacts.applovin.com/ios/com/applovin/mediation/AmazonAdMarketplace-adapter/AppLovinMediationAmazonAdMarketplaceAdapter-4.2.1.0.zip', + :type => 'zip' +} + +s.vendored_frameworks = 'AppLovinMediationAmazonAdMarketplaceAdapter-4.2.1.0/AppLovinMediationAmazonAdMarketplaceAdapter.framework' + +s.dependency 'AmazonPublisherServicesSDK', '= 4.2.1' +s.dependency 'AppLovinSDK' + +s.pod_target_xcconfig = +{ + 'VALID_ARCHS' => 'arm64 arm64e armv7 armv7s x86_64', + 'VALID_ARCHS[sdk=iphoneos*]' => 'arm64 arm64e armv7 armv7s', + 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' +} + +s.description = <<-DESC + +AppLovin turns mobile into the medium of choice for advertisers. + +OUR MISSION + +Enable advertisers to make ROI-based marketing decisions and deliver relevant content on mobile. + +Our marketing platform reaches new users and matches them with relevant brands - ensuring you reach the users that are likely to engage. + +We deliver relevant content to over a billion mobile consumers every month. With AppLovin, advertisers attain their mobile marketing goals. + +DESC + +end diff --git a/AmazonAdMarketplace/CHANGELOG.md b/AmazonAdMarketplace/CHANGELOG.md new file mode 100644 index 0000000000..87fcbf10d1 --- /dev/null +++ b/AmazonAdMarketplace/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + +## 4.2.1.0 +* Initial commit. diff --git a/AmazonPublisherServices/AmazonPublisherServicesAdapter.xcodeproj/project.pbxproj b/AmazonPublisherServices/AmazonPublisherServicesAdapter.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..6fff83b4b4 --- /dev/null +++ b/AmazonPublisherServices/AmazonPublisherServicesAdapter.xcodeproj/project.pbxproj @@ -0,0 +1,367 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 1D31B64E219BA4E600875D92 /* AppLovinSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D31B64D219BA4E600875D92 /* AppLovinSDK.framework */; }; + 1D3F4CA627235689003C12EF /* ALAmazonPublisherServicesMediationAdapter.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3F4CA527235689003C12EF /* ALAmazonPublisherServicesMediationAdapter.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 1D97FB831FBCF38B00D6C309 /* Copy Files */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + ); + name = "Copy Files"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1D31B64D219BA4E600875D92 /* AppLovinSDK.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = AppLovinSDK.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 1D3F4CA427235689003C12EF /* ALAmazonPublisherServicesMediationAdapter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ALAmazonPublisherServicesMediationAdapter.h; sourceTree = ""; }; + 1D3F4CA527235689003C12EF /* ALAmazonPublisherServicesMediationAdapter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ALAmazonPublisherServicesMediationAdapter.m; sourceTree = ""; }; + 1D97FB851FBCF38B00D6C309 /* libAmazonPublisherServicesAdapter.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAmazonPublisherServicesAdapter.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 1D9AE8E221423C7D00080475 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; + 1D9AE8E321423C7D00080475 /* SafariServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SafariServices.framework; path = System/Library/Frameworks/SafariServices.framework; sourceTree = SDKROOT; }; + 1D9AE8E421423C7D00080475 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; + 1D9AE8E521423C7E00080475 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1D9AE8E621423C7E00080475 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; + 1D9AE8E721423C7E00080475 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; + 1D9AE8E821423C7E00080475 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 1D9AE8E921423C7E00080475 /* AVKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVKit.framework; path = System/Library/Frameworks/AVKit.framework; sourceTree = SDKROOT; }; + 1D9AE8EA21423C7E00080475 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; + 1D9AE8EB21423C7E00080475 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; }; + 1D9AE8EC21423C7E00080475 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + 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; }; + 6A5A632A21C086E400B755D7 /* AppLovinMediationAmazonPublisherServicesAdapter.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = AppLovinMediationAmazonPublisherServicesAdapter.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 6A5A632B21C086E500B755D7 /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1D97FB821FBCF38B00D6C309 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D31B64E219BA4E600875D92 /* AppLovinSDK.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1D2303A61FBCF4C7001939D7 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1D31B64D219BA4E600875D92 /* AppLovinSDK.framework */, + 1D9AE8FC21423C9200080475 /* QuartzCore.framework */, + 1D9AE8EB21423C7E00080475 /* AdSupport.framework */, + 1D9AE8EC21423C7E00080475 /* AVFoundation.framework */, + 1D9AE8E921423C7E00080475 /* AVKit.framework */, + 1D9AE8E221423C7D00080475 /* CFNetwork.framework */, + 1D9AE8EE21423C7E00080475 /* CoreData.framework */, + 1D9AE8E421423C7D00080475 /* CoreFoundation.framework */, + 1D9AE8ED21423C7E00080475 /* CoreTelephony.framework */, + 1D9AE8E521423C7E00080475 /* Foundation.framework */, + 1D9AE8E621423C7E00080475 /* MediaPlayer.framework */, + 1D9AE8E321423C7D00080475 /* SafariServices.framework */, + 1D9AE8EA21423C7E00080475 /* SystemConfiguration.framework */, + 1D9AE8E821423C7E00080475 /* UIKit.framework */, + 1D9AE8E721423C7E00080475 /* WebKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 1D31B649219BA2E000875D92 /* AmazonPublisherServices */ = { + isa = PBXGroup; + children = ( + 1D3F4CA427235689003C12EF /* ALAmazonPublisherServicesMediationAdapter.h */, + 1D3F4CA527235689003C12EF /* ALAmazonPublisherServicesMediationAdapter.m */, + ); + name = AmazonPublisherServices; + path = AmazonPublisherServicesAdapter; + sourceTree = ""; + }; + 1D97FB7C1FBCF38B00D6C309 = { + isa = PBXGroup; + children = ( + 1D31B649219BA2E000875D92 /* AmazonPublisherServices */, + 6A12947D21C086460052F283 /* Supporting Files */, + 1D97FB861FBCF38B00D6C309 /* Products */, + 1D2303A61FBCF4C7001939D7 /* Frameworks */, + ); + sourceTree = ""; + }; + 1D97FB861FBCF38B00D6C309 /* Products */ = { + isa = PBXGroup; + children = ( + 1D97FB851FBCF38B00D6C309 /* libAmazonPublisherServicesAdapter.a */, + ); + name = Products; + sourceTree = ""; + }; + 6A12947D21C086460052F283 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6A5A632A21C086E400B755D7 /* AppLovinMediationAmazonPublisherServicesAdapter.podspec */, + 6A5A632B21C086E500B755D7 /* CHANGELOG.md */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D97FB841FBCF38B00D6C309 /* AmazonPublisherServicesAdapter */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D97FB8E1FBCF38B00D6C309 /* Build configuration list for PBXNativeTarget "AmazonPublisherServicesAdapter" */; + buildPhases = ( + 1D97FB811FBCF38B00D6C309 /* Sources */, + 1D97FB821FBCF38B00D6C309 /* Frameworks */, + 1D97FB831FBCF38B00D6C309 /* Copy Files */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = AmazonPublisherServicesAdapter; + productName = "Unity Plugin"; + productReference = 1D97FB851FBCF38B00D6C309 /* libAmazonPublisherServicesAdapter.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 1D97FB7D1FBCF38B00D6C309 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1300; + ORGANIZATIONNAME = AppLovin; + TargetAttributes = { + 1D97FB841FBCF38B00D6C309 = { + CreatedOnToolsVersion = 9.1; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 1D97FB801FBCF38B00D6C309 /* Build configuration list for PBXProject "AmazonPublisherServicesAdapter" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 1D97FB7C1FBCF38B00D6C309; + productRefGroup = 1D97FB861FBCF38B00D6C309 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 1D97FB841FBCF38B00D6C309 /* AmazonPublisherServicesAdapter */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D97FB811FBCF38B00D6C309 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D3F4CA627235689003C12EF /* ALAmazonPublisherServicesMediationAdapter.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 1D97FB8C1FBCF38B00D6C309 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + 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; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + 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; + VALID_ARCHS = "$(ARCHS_STANDARD)"; + }; + name = Debug; + }; + 1D97FB8D1FBCF38B00D6C309 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + 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; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + 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; + VALIDATE_PRODUCT = YES; + VALID_ARCHS = "$(ARCHS_STANDARD)"; + }; + name = Release; + }; + 1D97FB8F1FBCF38B00D6C309 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = X8JXXK4FF5; + FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; + HEADER_SEARCH_PATHS = ""; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LIBRARY_SEARCH_PATHS = "$(inherited)"; + ONLY_ACTIVE_ARCH = YES; + OTHER_CFLAGS = "-fembed-bitcode-marker"; + OTHER_LDFLAGS = "$(inherited)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 1D97FB901FBCF38B00D6C309 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = X8JXXK4FF5; + FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; + HEADER_SEARCH_PATHS = ""; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LIBRARY_SEARCH_PATHS = "$(inherited)"; + ONLY_ACTIVE_ARCH = NO; + OTHER_CFLAGS = "-fembed-bitcode"; + OTHER_LDFLAGS = "$(inherited)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1D97FB801FBCF38B00D6C309 /* Build configuration list for PBXProject "AmazonPublisherServicesAdapter" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D97FB8C1FBCF38B00D6C309 /* Debug */, + 1D97FB8D1FBCF38B00D6C309 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1D97FB8E1FBCF38B00D6C309 /* Build configuration list for PBXNativeTarget "AmazonPublisherServicesAdapter" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D97FB8F1FBCF38B00D6C309 /* Debug */, + 1D97FB901FBCF38B00D6C309 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 1D97FB7D1FBCF38B00D6C309 /* Project object */; +} diff --git a/AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.h b/AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.h new file mode 100644 index 0000000000..c160c53916 --- /dev/null +++ b/AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.h @@ -0,0 +1,13 @@ +// +// ALAmazonPublisherServicesMediationAdapter.h +// AppLovinSDK +// +// Created by Thomas So on 10/22/21. +// Copyright © 2021 AppLovin. All rights reserved. +// + +#import + +@interface ALAmazonPublisherServicesMediationAdapter : ALMediationAdapter + +@end diff --git a/AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.m b/AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.m new file mode 100644 index 0000000000..c968aaddb2 --- /dev/null +++ b/AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.m @@ -0,0 +1,517 @@ +// +// ALAmazonPublisherServicesMediationAdapter.m +// AppLovinSDK +// +// Created by Thomas So on 10/22/21. +// Copyright © 2021 AppLovin. All rights reserved. +// + +#import "ALAmazonPublisherServicesMediationAdapter.h" +#import + +#define ADAPTER_VERSION @"4.2.1.2" + +/** + * Container object for holding mediation hints dict generated from Amazon's SDK and the timestamp it was geenrated at. + */ +@interface ALAmazonMediationHints : NSObject + +/** + * The bid info / mediation hints dict generated from Amazon's SDK. + */ +@property (nonatomic, strong) NSDictionary *value; + +/** + * The unique identifier for this instance of the mediation hints. + */ +@property (nonatomic, copy) NSString *identifier; + +- (instancetype)initWithValue:(NSDictionary *)value; +- (instancetype)init NS_UNAVAILABLE; + +@end + +@interface ALAmazonPublisherServicesMediationAdapterAdViewDelegate : NSObject +@property (nonatomic, weak) ALAmazonPublisherServicesMediationAdapter *parentAdapter; +@property (nonatomic, strong) id delegate; +- (instancetype)initWithParentAdapter:(ALAmazonPublisherServicesMediationAdapter *)parentAdapter andNotify:(id)delegate; +@end + +@interface ALAmazonPublisherServicesMediationAdapterInterstitialAdDelegate : NSObject +@property (nonatomic, weak) ALAmazonPublisherServicesMediationAdapter *parentAdapter; +@property (nonatomic, strong) id delegate; +- (instancetype)initWithParentAdapter:(ALAmazonPublisherServicesMediationAdapter *)parentAdapter andNotify:(id)delegate; +@end + +@interface ALAmazonPublisherServicesMediationAdapter() + +// Signal Collection +@property (nonatomic, strong, nullable) id signalCollectionDelegate; +@property (nonatomic, assign) NSTimeInterval mediationHintsCacheCleanupDelaySec; + +@property (nonatomic, strong) DTBAdLoader *adLoader; + +// AdView +@property (nonatomic, strong) ALAmazonPublisherServicesMediationAdapterAdViewDelegate *adViewAdapterDelegate; + +// Interstitial +@property (nonatomic, strong) DTBAdInterstitialDispatcher *interstitialDispatcher; +@property (nonatomic, strong) ALAmazonPublisherServicesMediationAdapterInterstitialAdDelegate *interstitialAdapterDelegate; + +@end + +@implementation ALAmazonPublisherServicesMediationAdapter + +// Contains mapping of encoded bid id -> mediation hints / bid info +static NSMutableDictionary *ALMediationHintsCache; +static NSObject *ALMediationHintsCacheLock; + ++ (void)initialize +{ + [super initialize]; + + ALMediationHintsCache = [NSMutableDictionary dictionary]; + ALMediationHintsCacheLock = [[NSObject alloc] init]; +} + +- (void)initializeWithParameters:(id)parameters completionHandler:(void (^)(MAAdapterInitializationStatus, NSString *_Nullable))completionHandler +{ + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + + NSString *appId = parameters.serverParameters[@"app_id"]; + [self d: @"Initializing with app id: %@...", appId]; + + if ( [parameters isTesting] ) + { + [[DTBAds sharedInstance] setTestMode: YES]; + [[DTBAds sharedInstance] setLogLevel: DTBLogLevelAll]; + } + + [self updateConsentWithParameters: parameters]; + + [[DTBAds sharedInstance] setAppKey: appId]; + }); + + completionHandler(MAAdapterInitializationStatusDoesNotApply, nil); +} + +- (NSString *)SDKVersion +{ + return [DTBAds version]; +} + +- (NSString *)adapterVersion +{ + return ADAPTER_VERSION; +} + +- (void)destroy +{ + self.signalCollectionDelegate = nil; + self.adLoader = nil; + self.adViewAdapterDelegate = nil; + self.interstitialAdapterDelegate = nil; + self.interstitialDispatcher = nil; +} + +#pragma mark - MASignalProvider Methods + +- (void)collectSignalWithParameters:(id)parameters andNotify:(id)delegate +{ + MAAdFormat *adFormat = parameters.adFormat; + + if ( adFormat == MAAdFormat.banner || adFormat == MAAdFormat.leader || adFormat == MAAdFormat.interstitial ) + { + [self updateConsentWithParameters: parameters]; + + // NOTE: "ad slot ids" is Amazon's terminology for placements - for O&Os it will be 1:1 for each ad format + NSDictionary *adSlotIds = parameters.serverParameters[@"ad_slot_ids"]; + NSString *adSlotId = adSlotIds[adFormat.label.lowercaseString]; + + if ( [adSlotId al_isValidString] ) + { + [self d: @"Collecting signal for ad slot id: %@...", adSlotId]; + + self.signalCollectionDelegate = delegate; + self.mediationHintsCacheCleanupDelaySec = [parameters.serverParameters al_numberForKey: @"mediation_hints_cleanup_delay_sec" + defaultValue: @(5 * 60 * 60)].al_timeIntervalValue; // 5 min + + DTBAdSize *size; + if ( adFormat == MAAdFormat.banner || adFormat == MAAdFormat.leader ) + { + CGSize rawSize = parameters.adFormat.size; + size = [[DTBAdSize alloc] initBannerAdSizeWithWidth: rawSize.width + height: rawSize.height + andSlotUUID: adSlotId]; + } + else + { + size = [[DTBAdSize alloc] initInterstitialAdSizeWithSlotUUID: adSlotId]; + } + + self.adLoader = [[DTBAdLoader alloc] init]; + [self.adLoader setSizes: size, nil]; + [self.adLoader stop]; + + [self.adLoader loadAd: self]; + } + else + { + [delegate didFailToCollectSignalWithErrorMessage: @"Ad slot id unavailable"]; + } + } + else + { + [delegate didFailToCollectSignalWithErrorMessage: @"Ineligible ad format"]; + } +} + +#pragma mark - MAAdViewAdapter Methods + +- (void)loadAdViewAdForParameters:(id)parameters adFormat:(MAAdFormat *)adFormat andNotify:(id)delegate +{ + NSString *encodedBidId = parameters.serverParameters[@"encoded_bid_id"]; + [self d: @"Loading %@ ad view ad for encoded bid id: %@...", adFormat.label, encodedBidId]; + + [self updateConsentWithParameters: parameters]; + + CGRect frame = (CGRect) { CGPointZero, adFormat.size }; + self.adViewAdapterDelegate = [[ALAmazonPublisherServicesMediationAdapterAdViewDelegate alloc] initWithParentAdapter: self andNotify: delegate]; + DTBAdBannerDispatcher *dispatcher = [[DTBAdBannerDispatcher alloc] initWithAdFrame: frame delegate: self.adViewAdapterDelegate]; + + ALAmazonMediationHints *mediationHints; + @synchronized ( ALMediationHintsCacheLock ) + { + mediationHints = ALMediationHintsCache[encodedBidId]; + [ALMediationHintsCache removeObjectForKey: encodedBidId]; + } + + // Paranoia + if ( mediationHints ) + { + [dispatcher fetchBannerAdWithParameters: mediationHints.value]; + } + else + { + [self e: @"Unable to find mediation hints"]; + [delegate didFailToLoadAdViewAdWithError: MAAdapterError.invalidLoadState]; + } +} + +#pragma mark - Interstitial Adapter + +- (void)loadInterstitialAdForParameters:(id)parameters andNotify:(id)delegate +{ + NSString *encodedBidId = parameters.serverParameters[@"encoded_bid_id"]; + [self d: @"Loading interstitial ad for encoded bid id: %@...", encodedBidId]; + + [self updateConsentWithParameters: parameters]; + + self.interstitialAdapterDelegate = [[ALAmazonPublisherServicesMediationAdapterInterstitialAdDelegate alloc] initWithParentAdapter: self andNotify: delegate]; + self.interstitialDispatcher = [[DTBAdInterstitialDispatcher alloc] initWithDelegate: self.interstitialAdapterDelegate]; + + ALAmazonMediationHints *mediationHints; + @synchronized ( ALMediationHintsCacheLock ) + { + mediationHints = ALMediationHintsCache[encodedBidId]; + [ALMediationHintsCache removeObjectForKey: encodedBidId]; + } + + // Paranoia + if ( mediationHints ) + { + [self.interstitialDispatcher fetchAdWithParameters: mediationHints.value]; + } + else + { + [self e: @"Unable to find mediation hints"]; + [delegate didFailToLoadInterstitialAdWithError: MAAdapterError.invalidLoadState]; + } +} + +- (void)showInterstitialAdForParameters:(id)parameters andNotify:(id)delegate +{ + [self log: @"Showing interstitial ad..."]; + + if ( self.interstitialDispatcher.interstitialLoaded ) + { + [self.interstitialDispatcher showFromController: [ALUtils topViewControllerFromKeyWindow]]; + } + else + { + [self log: @"Interstitial ad not ready"]; + [delegate didFailToDisplayInterstitialAdWithError: MAAdapterError.adNotReady]; + } +} + +#pragma mark - DTBAdCallback + +- (void)onSuccess:(DTBAdResponse *)adResponse +{ + NSString *encodedBidId = [adResponse amznSlots]; + if ( [encodedBidId al_isValidString] ) + { + if ( self.signalCollectionDelegate ) + { + ALAmazonMediationHints *mediationHints = [[ALAmazonMediationHints alloc] initWithValue: [adResponse mediationHints]]; + + @synchronized ( ALMediationHintsCacheLock ) + { + // Store mediation hints for the actual ad request + ALMediationHintsCache[encodedBidId] = mediationHints; + } + + // In the case that Amazon loses the auction - clean up the mediation hints + if ( self.mediationHintsCacheCleanupDelaySec > 0 ) + { + dispatchOnMainQueueAfter(self.mediationHintsCacheCleanupDelaySec, ^{ + + @synchronized ( ALMediationHintsCacheLock ) + { + // Check if this is the same mediation hints / bid info as when the cleanup was scheduled + ALAmazonMediationHints *currentMediationHints = ALMediationHintsCache[encodedBidId]; + if ( [currentMediationHints.identifier isEqual: mediationHints.identifier] ) + { + [ALMediationHintsCache removeObjectForKey: encodedBidId]; + } + } + }); + } + + [self d: @"Successfully loaded encoded bid id: %@", encodedBidId]; + + [self.signalCollectionDelegate didCollectSignal: encodedBidId]; + self.signalCollectionDelegate = nil; + } + else + { + [self e: @"Received bid but no signal collection delegate available"]; + } + } + else + { + [self failSignalCollectionWithErrorMessage: @"Received empty bid id"]; + } +} + +- (void)onFailure:(DTBAdError)errorCode +{ + NSString *errorMessage = [NSString stringWithFormat: @"Failed to load bid id: %d", errorCode]; + [self failSignalCollectionWithErrorMessage: errorMessage]; +} + +- (void)failSignalCollectionWithErrorMessage:(NSString *)errorMessage +{ + [self e: errorMessage]; + + if ( self.signalCollectionDelegate ) + { + [self.signalCollectionDelegate didFailToCollectSignalWithErrorMessage: errorMessage]; + self.signalCollectionDelegate = nil; + } + else + { + [self e: @"No signal collection delegate available"]; + } +} + +#pragma mark - Shared Methods + +- (void)updateConsentWithParameters:(id)parameters +{ + if ( self.sdk.configuration.consentDialogState == ALConsentDialogStateApplies ) + { + NSNumber *hasUserConsent = parameters.hasUserConsent; + if ( hasUserConsent ) + { + [[DTBAds sharedInstance] setConsentStatus: hasUserConsent.boolValue ? EXPLICIT_YES : EXPLICIT_NO]; + } + } +} + ++ (MAAdapterError *)toMaxError:(DTBAdErrorCode)amazonPublisherServicesErrorCode +{ + MAAdapterError *adapterError = MAAdapterError.unspecified; + switch ( amazonPublisherServicesErrorCode ) + { + case SampleErrorCodeBadRequest: + adapterError = MAAdapterError.badRequest; + break; + case SampleErrorCodeUnknown: + adapterError = MAAdapterError.unspecified; + break; + case SampleErrorCodeNetworkError: + adapterError = MAAdapterError.noConnection; + break; + case SampleErrorCodeNoInventory: + adapterError = MAAdapterError.noFill; + break; + } + + return [MAAdapterError errorWithCode: adapterError.code + errorString: adapterError.message + thirdPartySdkErrorCode: amazonPublisherServicesErrorCode + thirdPartySdkErrorMessage: @""]; +} + +@end + +@implementation ALAmazonMediationHints + +- (instancetype)initWithValue:(NSDictionary *)value +{ + self = [super init]; + if ( self ) + { + self.identifier = [NSUUID UUID].UUIDString.lowercaseString; + self.value = value; + } + return self; +} + +- (id)copyWithZone:(NSZone *)zone +{ + ALAmazonMediationHints *copy = [[[self class] allocWithZone: zone] init]; + copy.value = self.value; + copy.identifier = self.identifier; + + return copy; +} + +- (BOOL)isEqual:(ALAmazonMediationHints *)other +{ + if ( self == other ) + return YES; + if ( !other ) + return NO; + if ( ![self.identifier isEqualToString: other.identifier] ) + return NO; + if ( ![self.value isEqualToDictionary: other.value] ) + return NO; + + return YES; +} + +- (NSUInteger)hash +{ + NSUInteger hash = [super hash]; + hash = hash * 31u + [self.identifier hash]; + hash = hash * 31u + [self.value hash]; + + return hash; +} + +- (NSString *)description +{ + return [NSString stringWithFormat: @"[ALAmazonMediationHints: identifier=%@, value=%@]", self.identifier, self.value]; +} + +@end + +@implementation ALAmazonPublisherServicesMediationAdapterAdViewDelegate + +- (instancetype)initWithParentAdapter:(ALAmazonPublisherServicesMediationAdapter *)parentAdapter andNotify:(id)delegate +{ + self = [super init]; + if ( self ) + { + self.parentAdapter = parentAdapter; + self.delegate = delegate; + } + return self; +} + +- (void)adDidLoad:(UIView *)adView +{ + [self.parentAdapter d: @"AdView ad loaded"]; + [self.delegate didLoadAdForAdView: adView]; +} + +- (void)adFailedToLoad:(nullable UIView *)banner errorCode:(NSInteger)errorCode +{ + [self.parentAdapter e: @"AdView failed to load with error: %ld", errorCode]; + + MAAdapterError *adapterError = [ALAmazonPublisherServicesMediationAdapter toMaxError: errorCode]; + [self.delegate didFailToLoadAdViewAdWithError: adapterError]; +} + +- (void)impressionFired +{ + [self.parentAdapter d: @"AdView impression fired"]; + [self.delegate didDisplayAdViewAd]; +} + +- (void)bannerWillLeaveApplication:(UIView *)adView +{ + [self.parentAdapter d: @"AdView will leave application"]; + [self.delegate didClickAdViewAd]; +} + +@end + +@implementation ALAmazonPublisherServicesMediationAdapterInterstitialAdDelegate + +- (instancetype)initWithParentAdapter:(ALAmazonPublisherServicesMediationAdapter *)parentAdapter andNotify:(id)delegate +{ + self = [super init]; + if ( self ) + { + self.parentAdapter = parentAdapter; + self.delegate = delegate; + } + return self; +} + +- (void)interstitialDidLoad:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial loaded"]; + [self.delegate didLoadInterstitialAd]; +} + +- (void)interstitial:(nullable DTBAdInterstitialDispatcher *)interstitial didFailToLoadAdWithErrorCode:(DTBAdErrorCode)errorCode +{ + [self.parentAdapter log: @"Interstitial failed to load with error: %ld", errorCode]; + + MAAdapterError *adapterError = [ALAmazonPublisherServicesMediationAdapter toMaxError: errorCode]; + [self.delegate didFailToLoadInterstitialAdWithError: adapterError]; +} + +- (void)interstitialWillPresentScreen:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial will present screen"]; +} + +- (void)interstitialDidPresentScreen:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial did present screen"]; +} + +- (void)impressionFired +{ + [self.parentAdapter log: @"Interstitial impression fired"]; + [self.delegate didDisplayInterstitialAd]; +} + +- (void)interstitialWillDismissScreen:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial will dismiss screen"]; +} + +- (void)interstitialDidDismissScreen:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial did dismiss screen"]; + [self.delegate didHideInterstitialAd]; +} + +- (void)interstitialWillLeaveApplication:(nullable DTBAdInterstitialDispatcher *)interstitial +{ + [self.parentAdapter log: @"Interstitial will leave application"]; +} + +- (void)showFromRootViewController:(UIViewController *)controller +{ + [self.parentAdapter log: @"Show interstitial from root view controller: %@", controller]; +} + +@end diff --git a/AmazonPublisherServices/AppLovinMediationAmazonPublisherServicesAdapter.podspec b/AmazonPublisherServices/AppLovinMediationAmazonPublisherServicesAdapter.podspec new file mode 100644 index 0000000000..4c1ad0c144 --- /dev/null +++ b/AmazonPublisherServices/AppLovinMediationAmazonPublisherServicesAdapter.podspec @@ -0,0 +1,56 @@ +Pod::Spec.new do |s| + +s.authors = +{ + 'AppLovin Corporation' => 'devsupport@applovin.com' +} +s.name = 'AppLovinMediationAmazonPublisherServicesAdapter' +s.version = '4.2.1.2' +s.platform = :ios, '10.0' +s.summary = 'Amazon Publisher Services adapter used for mediation with the AppLovin MAX SDK' +s.homepage = 'https://github.com/CocoaPods/Specs/search?o=desc&q=AppLovinAmazonPublisherServicesMediationAdapter&s=indexed' +s.license = +{ + :type => 'Commercial License', + :text => <<-LICENSE + +Copyright 2022 AppLovin Corp. All rights reserved. + +The AppLovin MAX SDK is available under a commercial license (https://www.applovin.com/eula). + +LICENSE +} + +s.source = +{ + :http => 'https://artifacts.applovin.com/ios/com/applovin/mediation/amazonpublisherservices-adapter/AppLovinMediationAmazonPublisherServicesAdapter-4.2.1.2.zip', + :type => 'zip' +} + +s.vendored_frameworks = 'AppLovinMediationAmazonPublisherServicesAdapter-4.2.1.2/AppLovinMediationAmazonPublisherServicesAdapter.framework' + +s.dependency 'AmazonPublisherServicesSDK', '= 4.2.1' +s.dependency 'AppLovinSDK' + +s.pod_target_xcconfig = +{ + 'VALID_ARCHS' => 'arm64 arm64e armv7 armv7s x86_64', + 'VALID_ARCHS[sdk=iphoneos*]' => 'arm64 arm64e armv7 armv7s', + 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' +} + +s.description = <<-DESC + +AppLovin turns mobile into the medium of choice for advertisers. + +OUR MISSION + +Enable advertisers to make ROI-based marketing decisions and deliver relevant content on mobile. + +Our marketing platform reaches new users and matches them with relevant brands - ensuring you reach the users that are likely to engage. + +We deliver relevant content to over a billion mobile consumers every month. With AppLovin, advertisers attain their mobile marketing goals. + +DESC + +end diff --git a/AmazonPublisherServices/CHANGELOG.md b/AmazonPublisherServices/CHANGELOG.md new file mode 100644 index 0000000000..df9b40722f --- /dev/null +++ b/AmazonPublisherServices/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog + +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + +## 4.2.1.2 +* Add support for interstitial ads. + +## 4.2.1.1 +* Add support for tracking clicks. + +## 4.2.1.0 +* Initial commit. diff --git a/ByteDance/ByteDanceAdapter.xcodeproj/project.pbxproj b/ByteDance/ByteDanceAdapter.xcodeproj/project.pbxproj index 08055849ff..6e35d7ef77 100644 --- a/ByteDance/ByteDanceAdapter.xcodeproj/project.pbxproj +++ b/ByteDance/ByteDanceAdapter.xcodeproj/project.pbxproj @@ -234,13 +234,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -291,13 +289,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -309,10 +305,7 @@ CODE_SIGN_STYLE = Manual; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; - FRAMEWORK_SEARCH_PATHS = ( - "../../iOS-Workspace/Pods/**", - "$(PROJECT_DIR)", - ); + FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; @@ -323,7 +316,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -333,10 +325,7 @@ CODE_SIGN_STYLE = Manual; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; - FRAMEWORK_SEARCH_PATHS = ( - "../../iOS-Workspace/Pods/**", - "$(PROJECT_DIR)", - ); + FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; @@ -347,7 +336,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/ByteDance/ByteDanceAdapter/ALByteDanceMediationAdapter.h b/ByteDance/ByteDanceAdapter/ALByteDanceMediationAdapter.h index a7c1aef612..db098b2f97 100644 --- a/ByteDance/ByteDanceAdapter/ALByteDanceMediationAdapter.h +++ b/ByteDance/ByteDanceAdapter/ALByteDanceMediationAdapter.h @@ -6,8 +6,7 @@ // Copyright © 2018 AppLovin. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MANativeAdAdapter.h" +#import @interface ALByteDanceMediationAdapter : ALMediationAdapter diff --git a/ByteDance/ByteDanceAdapter/ALByteDanceMediationAdapter.m b/ByteDance/ByteDanceAdapter/ALByteDanceMediationAdapter.m index d2675c2602..adc6510fdf 100644 --- a/ByteDance/ByteDanceAdapter/ALByteDanceMediationAdapter.m +++ b/ByteDance/ByteDanceAdapter/ALByteDanceMediationAdapter.m @@ -8,12 +8,6 @@ #import "ALByteDanceMediationAdapter.h" #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "MAAdFormat+Internal.h" -#import "MANativeAd.h" -#import "MANativeAdView.h" #define ADAPTER_VERSION @"4.2.0.2.2" @@ -534,10 +528,13 @@ + (MAAdapterError *)toMaxError:(NSError *)byteDanceError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: byteDanceErrorCode thirdPartySdkErrorMessage: byteDanceError.localizedDescription]; +#pragma clang diagnostic pop } @end diff --git a/ByteDance/CHANGELOG.md b/ByteDance/CHANGELOG.md index 3df42e9acc..413b5f9f43 100644 --- a/ByteDance/CHANGELOG.md +++ b/ByteDance/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 4.2.0.2.2 * Properly destroy native ad. diff --git a/Chartboost/CHANGELOG.md b/Chartboost/CHANGELOG.md index 0bd5f29eb3..bb88901045 100644 --- a/Chartboost/CHANGELOG.md +++ b/Chartboost/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 8.5.0.2 * Certified with Chartboost SDK 8.5.0.1. diff --git a/Chartboost/ChartboostAdapter.xcodeproj/project.pbxproj b/Chartboost/ChartboostAdapter.xcodeproj/project.pbxproj index 3e02dbea2a..82e3604a27 100644 --- a/Chartboost/ChartboostAdapter.xcodeproj/project.pbxproj +++ b/Chartboost/ChartboostAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.h b/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.h index fff9755144..a36765ef34 100644 --- a/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.h +++ b/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.h @@ -6,9 +6,7 @@ // Copyright © 2019 AppLovin. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" +#import @interface ALChartboostMediationAdapter : ALMediationAdapter diff --git a/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.m b/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.m index bcb221d6e3..57d7c5ae44 100644 --- a/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.m +++ b/Chartboost/ChartboostAdapter/ALChartboostMediationAdapter.m @@ -9,11 +9,6 @@ #import "ALChartboostMediationAdapter.h" #import #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "ALAtomicBoolean.h" -#import "MAAdFormat+Internal.h" #define ADAPTER_VERSION @"8.5.0.2" @@ -314,10 +309,13 @@ - (MAAdapterError *)toMaxErrorFromCHBCacheError:(CHBCacheError *)chartBoostCache break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: chartBoostCacheErrorCode thirdPartySdkErrorMessage: chartBoostCacheError.description]; +#pragma clang diagnostic pop } @@ -345,10 +343,13 @@ - (MAAdapterError *)toMaxErrorFromCHBShowError:(CHBShowError *)chartBoostShowErr break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: chartBoostShowErrorCode thirdPartySdkErrorMessage: chartBoostShowError.description]; +#pragma clang diagnostic pop } - (CHBBannerSize)sizeFromAdFormat:(MAAdFormat *)adFormat diff --git a/Dataseat/CHANGELOG.md b/Dataseat/CHANGELOG.md index ea1790fa5b..e3ee67c443 100644 --- a/Dataseat/CHANGELOG.md +++ b/Dataseat/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 1.0.5.1 * Fix crash when handling error. diff --git a/Dataseat/DataseatAdapter.xcodeproj/project.pbxproj b/Dataseat/DataseatAdapter.xcodeproj/project.pbxproj index 7130432784..8806bc195a 100644 --- a/Dataseat/DataseatAdapter.xcodeproj/project.pbxproj +++ b/Dataseat/DataseatAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(inherited)"; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(inherited)"; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Dataseat/DataseatAdapter/ALDataseatMediationAdapter.h b/Dataseat/DataseatAdapter/ALDataseatMediationAdapter.h index 66c3bb9328..4ace87cb7e 100644 --- a/Dataseat/DataseatAdapter/ALDataseatMediationAdapter.h +++ b/Dataseat/DataseatAdapter/ALDataseatMediationAdapter.h @@ -2,11 +2,11 @@ // ALDataseatMediationAdapter.h // AppLovinSDK // -// Created by xxx on xxx. +// Created by Ashley Kulasxa on 8/23/21. // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" +#import @interface ALDataseatMediationAdapter : ALMediationAdapter diff --git a/Dataseat/DataseatAdapter/ALDataseatMediationAdapter.m b/Dataseat/DataseatAdapter/ALDataseatMediationAdapter.m index 5e679e0734..e24a6d3375 100644 --- a/Dataseat/DataseatAdapter/ALDataseatMediationAdapter.m +++ b/Dataseat/DataseatAdapter/ALDataseatMediationAdapter.m @@ -9,10 +9,6 @@ #import "ALDataseatMediationAdapter.h" #import #import -#import "ALMediationAdapterRouter.h" -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "MAAdFormat+Internal.h" #define ADAPTER_VERSION @"1.0.5.1" @@ -190,7 +186,7 @@ + (MAAdapterError *)toMaxError:(NSError *)dataseatError // If the Dataseat SDK is not fully initialized, it returns an NSError object that will crash the app if we call `description` or `localizedDescription` on it. This will hopefully be fixed in a future SDK release. return [MAAdapterError errorWithCode: adapterError.code - errorString: adapterError.errorMessage + errorString: adapterError.message thirdPartySdkErrorCode: dataseatErrorCode thirdPartySdkErrorMessage: @""]; } diff --git a/Facebook/CHANGELOG.md b/Facebook/CHANGELOG.md index a71e994860..f6f0727405 100644 --- a/Facebook/CHANGELOG.md +++ b/Facebook/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 6.9.0.2 * Fix icon view never getting registered for interaction. diff --git a/Facebook/FacebookAdapter.xcodeproj/project.pbxproj b/Facebook/FacebookAdapter.xcodeproj/project.pbxproj index da0a51e6dd..add064e8b8 100644 --- a/Facebook/FacebookAdapter.xcodeproj/project.pbxproj +++ b/Facebook/FacebookAdapter.xcodeproj/project.pbxproj @@ -254,13 +254,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -311,13 +309,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -340,7 +336,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -361,7 +356,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Facebook/FacebookAdapter/ALFacebookMediationAdapter.h b/Facebook/FacebookAdapter/ALFacebookMediationAdapter.h index 507735c568..ec1a06ba29 100644 --- a/Facebook/FacebookAdapter/ALFacebookMediationAdapter.h +++ b/Facebook/FacebookAdapter/ALFacebookMediationAdapter.h @@ -6,12 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" -#import "MANativeAdAdapter.h" -#import "MASignalProvider.h" +#import @interface ALFacebookMediationAdapter : ALMediationAdapter diff --git a/Facebook/FacebookAdapter/ALFacebookMediationAdapter.m b/Facebook/FacebookAdapter/ALFacebookMediationAdapter.m index 670ff4cdfc..8b8a17e258 100644 --- a/Facebook/FacebookAdapter/ALFacebookMediationAdapter.m +++ b/Facebook/FacebookAdapter/ALFacebookMediationAdapter.m @@ -9,16 +9,6 @@ #import "ALFacebookMediationAdapter.h" #import -#import "ALSdk.h" -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "ALAtomicBoolean.h" -#import "MAAdFormat+Internal.h" -#import "MANativeAd.h" -#import "MANativeAdView.h" -#import "UIView+ALUtils.h" - #define ADAPTER_VERSION @"6.9.0.2" #define MEDIATION_IDENTIFIER [NSString stringWithFormat: @"APPLOVIN_%@:%@", [ALSdk version], self.adapterVersion] @@ -477,10 +467,13 @@ + (MAAdapterError *)toMaxError:(NSError *)facebookError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: facebookErrorCode thirdPartySdkErrorMessage: facebookError.localizedDescription]; +#pragma clang diagnostic pop } @end diff --git a/Fyber/CHANGELOG.md b/Fyber/CHANGELOG.md index cd16dd28d5..7cd3e69b4d 100644 --- a/Fyber/CHANGELOG.md +++ b/Fyber/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 8.1.1.0 * Certified with Fyber SDK 8.1.1. diff --git a/Fyber/Fyber/ALInneractiveMediationAdapter.h b/Fyber/Fyber/ALInneractiveMediationAdapter.h index 7b20b16064..6a8515cce6 100644 --- a/Fyber/Fyber/ALInneractiveMediationAdapter.h +++ b/Fyber/Fyber/ALInneractiveMediationAdapter.h @@ -6,10 +6,7 @@ // Copyright © 2018 AppLovin. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Fyber/Fyber/ALInneractiveMediationAdapter.m b/Fyber/Fyber/ALInneractiveMediationAdapter.m index 533330ed54..338322bf7c 100644 --- a/Fyber/Fyber/ALInneractiveMediationAdapter.m +++ b/Fyber/Fyber/ALInneractiveMediationAdapter.m @@ -9,14 +9,6 @@ #import "ALInneractiveMediationAdapter.h" #import -#import "MAAdapterInitializationParameters.h" -#import "NSString+ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSNumber+ALUtils.h" -#import "NSString+ALUtils.h" -#import "ALUtils.h" -#import "MAAdFormat+Internal.h" - #define ADAPTER_VERSION @"8.1.1.0" @interface ALInneractiveMediationAdapterGlobalDelegate : NSObject @@ -498,10 +490,13 @@ + (MAAdapterError *)toMaxError:(NSError *)inneractiveError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: inneractiveErrorCode thirdPartySdkErrorMessage: inneractiveError.localizedDescription]; +#pragma clang diagnostic pop } @end diff --git a/Fyber/FyberAdapter.xcodeproj/project.pbxproj b/Fyber/FyberAdapter.xcodeproj/project.pbxproj index e57563bdcb..43ed22c895 100644 --- a/Fyber/FyberAdapter.xcodeproj/project.pbxproj +++ b/Fyber/FyberAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -339,7 +334,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Google/CHANGELOG.md b/Google/CHANGELOG.md index e2bc0eb13b..88dd9b2907 100644 --- a/Google/CHANGELOG.md +++ b/Google/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 8.13.0.3 * Properly destroy native ad. diff --git a/Google/GoogleAdapter.xcodeproj/project.pbxproj b/Google/GoogleAdapter.xcodeproj/project.pbxproj index dbae0caba8..fa32d62066 100644 --- a/Google/GoogleAdapter.xcodeproj/project.pbxproj +++ b/Google/GoogleAdapter.xcodeproj/project.pbxproj @@ -254,13 +254,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -311,13 +309,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -340,7 +336,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -361,7 +356,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Google/GoogleAdapter/ALGoogleMediationAdapter.h b/Google/GoogleAdapter/ALGoogleMediationAdapter.h index d6ea7a4e5e..8740f7c044 100644 --- a/Google/GoogleAdapter/ALGoogleMediationAdapter.h +++ b/Google/GoogleAdapter/ALGoogleMediationAdapter.h @@ -6,11 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" -#import "MANativeAdAdapter.h" +#import #import #import diff --git a/Google/GoogleAdapter/ALGoogleMediationAdapter.m b/Google/GoogleAdapter/ALGoogleMediationAdapter.m index 1e93d47e42..c76ebd2bd7 100644 --- a/Google/GoogleAdapter/ALGoogleMediationAdapter.m +++ b/Google/GoogleAdapter/ALGoogleMediationAdapter.m @@ -9,20 +9,6 @@ #import "ALGoogleMediationAdapter.h" #import -#import "ALSdk.h" -#import "ALUtils.h" -#import "ALAtomicBoolean.h" -#import "ALTimeUnit.h" -#import "MAAdapterInitializationParameters.h" -#import "MAAdFormat+Internal.h" -#import "MANativeAd.h" -#import "MANativeAdView.h" -#import "UIView+ALUtils.h" -#import "NSDate+ALUtils.h" -#import "NSNumber+ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" - #define ADAPTER_VERSION @"8.13.0.3" @interface ALGoogleMediationAdapterInterstitialDelegate : NSObject @@ -577,10 +563,13 @@ + (MAAdapterError *)toMaxError:(NSError *)googleAdsError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: googleAdsErrorCode thirdPartySdkErrorMessage: googleAdsError.localizedDescription]; +#pragma clang diagnostic pop } - (GADAdSize)adSizeFromAdFormat:(MAAdFormat *)adFormat withServerParameters:(NSDictionary *)serverParameters diff --git a/GoogleAdManager/CHANGELOG.md b/GoogleAdManager/CHANGELOG.md index e531d6a7bd..f1fdf49901 100644 --- a/GoogleAdManager/CHANGELOG.md +++ b/GoogleAdManager/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 8.13.0.2 * Properly destroy native ad. diff --git a/GoogleAdManager/GoogleAdManagerAdapter.xcodeproj/project.pbxproj b/GoogleAdManager/GoogleAdManagerAdapter.xcodeproj/project.pbxproj index fabdd4fa3b..0f1f080950 100644 --- a/GoogleAdManager/GoogleAdManagerAdapter.xcodeproj/project.pbxproj +++ b/GoogleAdManager/GoogleAdManagerAdapter.xcodeproj/project.pbxproj @@ -254,13 +254,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -311,13 +309,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -340,7 +336,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -361,7 +356,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/GoogleAdManager/GoogleAdManagerAdapter/ALGoogleAdManagerMediationAdapter.h b/GoogleAdManager/GoogleAdManagerAdapter/ALGoogleAdManagerMediationAdapter.h index dcf279fc66..0200d2350f 100644 --- a/GoogleAdManager/GoogleAdManagerAdapter/ALGoogleAdManagerMediationAdapter.h +++ b/GoogleAdManager/GoogleAdManagerAdapter/ALGoogleAdManagerMediationAdapter.h @@ -6,11 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" -#import "MANativeAdAdapter.h" +#import #import #import diff --git a/GoogleAdManager/GoogleAdManagerAdapter/ALGoogleAdManagerMediationAdapter.m b/GoogleAdManager/GoogleAdManagerAdapter/ALGoogleAdManagerMediationAdapter.m index a54e588d4c..a865ee8623 100644 --- a/GoogleAdManager/GoogleAdManagerAdapter/ALGoogleAdManagerMediationAdapter.m +++ b/GoogleAdManager/GoogleAdManagerAdapter/ALGoogleAdManagerMediationAdapter.m @@ -9,20 +9,6 @@ #import "ALGoogleAdManagerMediationAdapter.h" #import -#import "ALSdk.h" -#import "ALUtils.h" -#import "ALAtomicBoolean.h" -#import "ALTimeUnit.h" -#import "MAAdapterInitializationParameters.h" -#import "MAAdFormat+Internal.h" -#import "MANativeAd.h" -#import "MANativeAdView.h" -#import "UIView+ALUtils.h" -#import "NSDate+ALUtils.h" -#import "NSNumber+ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" - #define ADAPTER_VERSION @"8.13.0.2" @interface ALGoogleAdManagerInterstitialDelegate : NSObject @@ -506,10 +492,13 @@ + (MAAdapterError *)toMaxError:(NSError *)googleAdManagerError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: googleAdManagerErrorCode thirdPartySdkErrorMessage: googleAdManagerError.localizedDescription]; +#pragma clang diagnostic pop } - (GADAdSize)adSizeFromAdFormat:(MAAdFormat *)adFormat withServerParameters:(NSDictionary *)serverParameters diff --git a/HyprMX/CHANGELOG.md b/HyprMX/CHANGELOG.md index 0fc190f671..75a793b23a 100644 --- a/HyprMX/CHANGELOG.md +++ b/HyprMX/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 6.0.1.0 * Certified with HyprMX SDK 6.0.1. diff --git a/HyprMX/HyprMXAdapter.xcodeproj/project.pbxproj b/HyprMX/HyprMXAdapter.xcodeproj/project.pbxproj index 3bfba3fc2b..49b0d34d6c 100644 --- a/HyprMX/HyprMXAdapter.xcodeproj/project.pbxproj +++ b/HyprMX/HyprMXAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/HyprMX/HyprMXAdapter/ALHyprMXMediationAdapter.h b/HyprMX/HyprMXAdapter/ALHyprMXMediationAdapter.h index c24b883238..aebb1a4157 100644 --- a/HyprMX/HyprMXAdapter/ALHyprMXMediationAdapter.h +++ b/HyprMX/HyprMXAdapter/ALHyprMXMediationAdapter.h @@ -6,9 +6,7 @@ // Copyright © 2020 AppLovin. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" +#import @interface ALHyprMXMediationAdapter : ALMediationAdapter diff --git a/HyprMX/HyprMXAdapter/ALHyprMXMediationAdapter.m b/HyprMX/HyprMXAdapter/ALHyprMXMediationAdapter.m index e4397dd341..ef2309950b 100644 --- a/HyprMX/HyprMXAdapter/ALHyprMXMediationAdapter.m +++ b/HyprMX/HyprMXAdapter/ALHyprMXMediationAdapter.m @@ -7,11 +7,6 @@ // #import "ALHyprMXMediationAdapter.h" -#import "ALUtils.h" -#import "MAAdFormat+Internal.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "ALAtomicBoolean.h" #import #define ADAPTER_VERSION @"6.0.1.0" @@ -309,10 +304,13 @@ + (MAAdapterError *)toMaxError:(NSInteger)hyprMXErrorCode message:(nullable NSSt break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: hyprMXErrorCode thirdPartySdkErrorMessage: hyprMXMessage]; +#pragma clang diagnostic pop } @end diff --git a/InMobi/CHANGELOG.md b/InMobi/CHANGELOG.md index d058b9c631..68792fe380 100644 --- a/InMobi/CHANGELOG.md +++ b/InMobi/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 10.0.1.1 * Fix interstitials not reporting creative id correctly. diff --git a/InMobi/InMobiAdapter.xcodeproj/project.pbxproj b/InMobi/InMobiAdapter.xcodeproj/project.pbxproj index a0636a0678..360ca8488f 100644 --- a/InMobi/InMobiAdapter.xcodeproj/project.pbxproj +++ b/InMobi/InMobiAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/InMobi/InMobiAdapter/ALInMobiMediationAdapter.h b/InMobi/InMobiAdapter/ALInMobiMediationAdapter.h index 4aa574a1e7..d1bc5cc2ef 100644 --- a/InMobi/InMobiAdapter/ALInMobiMediationAdapter.h +++ b/InMobi/InMobiAdapter/ALInMobiMediationAdapter.h @@ -6,10 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAAdViewAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/InMobi/InMobiAdapter/ALInMobiMediationAdapter.m b/InMobi/InMobiAdapter/ALInMobiMediationAdapter.m index 1da49a28f9..7eb5279f56 100644 --- a/InMobi/InMobiAdapter/ALInMobiMediationAdapter.m +++ b/InMobi/InMobiAdapter/ALInMobiMediationAdapter.m @@ -8,11 +8,6 @@ #import "ALInMobiMediationAdapter.h" #import -#import "ALUtils.h" -#import "MAAdFormat+Internal.h" -#import "NSDictionary+ALUtils.h" -#import "NSNumber+ALUtils.h" -#import "NSString+ALUtils.h" #define ADAPTER_VERSION @"10.0.1.1" @@ -391,10 +386,13 @@ + (MAAdapterError *)toMaxError:(IMRequestStatus *)inMobiError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: inMobiErrorCode thirdPartySdkErrorMessage: inMobiError.localizedDescription]; +#pragma clang diagnostic pop } - (CGRect)rectFromAdFormat:(MAAdFormat *)adFormat diff --git a/IronSource/CHANGELOG.md b/IronSource/CHANGELOG.md index ae5cac0ddf..27297e69c3 100644 --- a/IronSource/CHANGELOG.md +++ b/IronSource/CHANGELOG.md @@ -19,6 +19,9 @@ * Certified with IronSource SDK 7.1.6.1. * Update podspec to use `pod_target_xcconfig` over the deprecated `xcconfig`. +## x.x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 7.1.5.0.0 * Certified with IronSource SDK 7.1.5.0. diff --git a/IronSource/IronSourceAdapter.xcodeproj/project.pbxproj b/IronSource/IronSourceAdapter.xcodeproj/project.pbxproj index 62c0192615..1d480f23f3 100644 --- a/IronSource/IronSourceAdapter.xcodeproj/project.pbxproj +++ b/IronSource/IronSourceAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -309,7 +305,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = "../../iOS-SDK-Commons"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = YES; @@ -319,7 +314,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -330,7 +324,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = "../../iOS-SDK-Commons"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = NO; @@ -340,7 +333,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.h b/IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.h index 9037f9a2ee..52cf197dcd 100644 --- a/IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.h +++ b/IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.h @@ -1,6 +1,11 @@ -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" +// +// ALIronSourceMediationAdapter.h +// AppLovinSDK +// +// Copyright © 2022 AppLovin Corporation. All rights reserved. +// + +#import @interface ALIronSourceMediationAdapter : ALMediationAdapter diff --git a/IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.m b/IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.m index 0ec2b742a4..069a7d49fc 100644 --- a/IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.m +++ b/IronSource/IronSourceAdapter/ALIronSourceMediationAdapter.m @@ -1,11 +1,13 @@ +// +// ALIronSourceMediationAdapter.m +// AppLovinSDK +// +// Copyright © 2022 AppLovin Corporation. All rights reserved. +// + #import "ALIronSourceMediationAdapter.h" #import -#import "ALUtils.h" -#import "ALMediationAdapterRouter.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" - #define ADAPTER_VERSION @"7.1.13.0.0" @interface ALIronSourceMediationAdapterRouter : ALMediationAdapterRouter @@ -423,10 +425,13 @@ + (MAAdapterError *)toMaxError:(NSError *)ironSourceError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: ironSourceErrorCode thirdPartySdkErrorMessage: ironSourceError.localizedDescription]; +#pragma clang diagnostic pop } #pragma mark - ironSource Log Delegate diff --git a/Line/CHANGELOG.md b/Line/CHANGELOG.md index 57ef3731a0..ca5eff8ac9 100644 --- a/Line/CHANGELOG.md +++ b/Line/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 2.4.20211004.2 * Fix icon view never getting registered for interaction. diff --git a/Line/LineAdapter.xcodeproj/project.pbxproj b/Line/LineAdapter.xcodeproj/project.pbxproj index 0c2b0eae22..9064cf6f7a 100644 --- a/Line/LineAdapter.xcodeproj/project.pbxproj +++ b/Line/LineAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -308,10 +304,7 @@ CODE_SIGN_STYLE = Manual; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; - FRAMEWORK_SEARCH_PATHS = ( - "../../iOS-Workspace/Pods/**", - "$(PROJECT_DIR)", - ); + FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; @@ -322,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -332,10 +324,7 @@ CODE_SIGN_STYLE = Manual; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; - FRAMEWORK_SEARCH_PATHS = ( - "../../iOS-Workspace/Pods/**", - "$(PROJECT_DIR)", - ); + FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; @@ -346,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Line/LineAdapter/ALLineMediationAdapter.h b/Line/LineAdapter/ALLineMediationAdapter.h index a79bfad3f0..f1bedd35d8 100644 --- a/Line/LineAdapter/ALLineMediationAdapter.h +++ b/Line/LineAdapter/ALLineMediationAdapter.h @@ -5,8 +5,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MANativeAdAdapter.h" +#import @interface ALLineMediationAdapter : ALMediationAdapter diff --git a/Line/LineAdapter/ALLineMediationAdapter.m b/Line/LineAdapter/ALLineMediationAdapter.m index be3f4641ae..ce6e5eacb5 100644 --- a/Line/LineAdapter/ALLineMediationAdapter.m +++ b/Line/LineAdapter/ALLineMediationAdapter.m @@ -8,13 +8,6 @@ #import "ALLineMediationAdapter.h" #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "MAAdFormat+Internal.h" -#import "MANativeAd.h" -#import "MANativeAdView.h" - #define ADAPTER_VERSION @"2.4.20211004.2" @interface ALLineMediationAdapterInterstitialAdDelegate : NSObject @@ -336,10 +329,13 @@ + (MAAdapterError *)toMaxError:(FADErrorCode)lineAdsErrorCode break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: lineAdsErrorCode thirdPartySdkErrorMessage: thirdPartySdkErrorMessage]; +#pragma clang diagnostic pop } - (nullable NSNumber *)privacySettingForSelector:(SEL)selector fromParameters:(id)parameters diff --git a/Maio/CHANGELOG.md b/Maio/CHANGELOG.md index 2c7230df4a..8b1c8cd7e0 100644 --- a/Maio/CHANGELOG.md +++ b/Maio/CHANGELOG.md @@ -2,6 +2,7 @@ ## x.x.x.x * Remove `ALMaioZoneIds` since it is unused. +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. ## 1.5.8.0 * Certified with Maio SDK 1.5.8. diff --git a/Maio/MaioAdapter.xcodeproj/project.pbxproj b/Maio/MaioAdapter.xcodeproj/project.pbxproj index 345d920c38..e94aaa4024 100644 --- a/Maio/MaioAdapter.xcodeproj/project.pbxproj +++ b/Maio/MaioAdapter.xcodeproj/project.pbxproj @@ -236,13 +236,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -293,13 +291,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -313,7 +309,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = "../../iOS-SDK-Commons"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = YES; @@ -323,7 +318,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -335,7 +329,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = "../../iOS-SDK-Commons"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = NO; @@ -345,7 +338,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Maio/MaioAdapter/ALMaioMediationAdapter.h b/Maio/MaioAdapter/ALMaioMediationAdapter.h index 6bf8ad8aa3..46b5493162 100644 --- a/Maio/MaioAdapter/ALMaioMediationAdapter.h +++ b/Maio/MaioAdapter/ALMaioMediationAdapter.h @@ -6,10 +6,7 @@ // Copyright © 2019 AppLovin. All rights reserved. // -#import -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Maio/MaioAdapter/ALMaioMediationAdapter.m b/Maio/MaioAdapter/ALMaioMediationAdapter.m index e80ec8fb1f..d98906e8fd 100644 --- a/Maio/MaioAdapter/ALMaioMediationAdapter.m +++ b/Maio/MaioAdapter/ALMaioMediationAdapter.m @@ -7,13 +7,8 @@ // #import "ALMaioMediationAdapter.h" -#import "ALAtomicBoolean.h" -#import "ALMediationAdapterRouter.h" #import #import -#import "ALUtils.h" -#import "NSString+ALUtils.h" -#import "NSDictionary+ALUtils.h" #define ADAPTER_VERSION @"1.5.8.0" @@ -355,10 +350,13 @@ + (MAAdapterError *)toMaxError:(MaioFailReason)maioErrorCode break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: maioErrorCode thirdPartySdkErrorMessage: @""]; +#pragma clang diagnostic pop } - (NSString *)reasonToString:(MaioFailReason)reason diff --git a/Mintegral/CHANGELOG.md b/Mintegral/CHANGELOG.md index c7ff517f75..b96908005d 100644 --- a/Mintegral/CHANGELOG.md +++ b/Mintegral/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 7.0.4.0.1 * Properly destroy native ad. diff --git a/Mintegral/MintegralAdapter.xcodeproj/project.pbxproj b/Mintegral/MintegralAdapter.xcodeproj/project.pbxproj index d670f3b7f5..7b2262004d 100644 --- a/Mintegral/MintegralAdapter.xcodeproj/project.pbxproj +++ b/Mintegral/MintegralAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Mintegral/MintegralAdapter/ALMintegralMediationAdapter.h b/Mintegral/MintegralAdapter/ALMintegralMediationAdapter.h index 88f7965755..5016f0c1e0 100644 --- a/Mintegral/MintegralAdapter/ALMintegralMediationAdapter.h +++ b/Mintegral/MintegralAdapter/ALMintegralMediationAdapter.h @@ -3,7 +3,7 @@ // sdk // -#import "ALMediationAdapter.h" +#import @interface ALMintegralMediationAdapter : ALMediationAdapter diff --git a/Mintegral/MintegralAdapter/ALMintegralMediationAdapter.m b/Mintegral/MintegralAdapter/ALMintegralMediationAdapter.m index 2efbc1e925..73558b9109 100644 --- a/Mintegral/MintegralAdapter/ALMintegralMediationAdapter.m +++ b/Mintegral/MintegralAdapter/ALMintegralMediationAdapter.m @@ -14,15 +14,6 @@ #import #import -#import "ALSdk.h" -#import "ALUtils.h" -#import "MAAdapterError.h" -#import "MAAdapterInitializationParameters.h" -#import "MANativeAd.h" -#import "MANativeAdView.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" - #define ADAPTER_VERSION @"7.0.4.0.1" // List of Mintegral error codes not defined in API, but in their docs @@ -492,10 +483,13 @@ + (MAAdapterError *)toMaxError:(NSError *)mintegralError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: mintegralErrorCode thirdPartySdkErrorMessage: mintegralError.localizedDescription]; +#pragma clang diagnostic pop } - (MTGBannerSizeType)sizeTypeFromAdFormat:(MAAdFormat *)adFormat diff --git a/MoPub/CHANGELOG.md b/MoPub/CHANGELOG.md index d5750bd106..a31886ea27 100644 --- a/MoPub/CHANGELOG.md +++ b/MoPub/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 5.16.2.0 * Certified with MoPub SDK 5.16.2. * Update podspec to use `pod_target_xcconfig` over the deprecated `xcconfig`. diff --git a/MoPub/MoPubAdapter.xcodeproj/project.pbxproj b/MoPub/MoPubAdapter.xcodeproj/project.pbxproj index b3274ee61e..1027b12a09 100644 --- a/MoPub/MoPubAdapter.xcodeproj/project.pbxproj +++ b/MoPub/MoPubAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -339,7 +334,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/MoPub/MoPubAdapter/ALMoPubMediationAdapter.h b/MoPub/MoPubAdapter/ALMoPubMediationAdapter.h index fdd3301d3e..7f3c4bcf39 100644 --- a/MoPub/MoPubAdapter/ALMoPubMediationAdapter.h +++ b/MoPub/MoPubAdapter/ALMoPubMediationAdapter.h @@ -6,10 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" +#import @interface ALMoPubMediationAdapter : ALMediationAdapter diff --git a/MoPub/MoPubAdapter/ALMoPubMediationAdapter.m b/MoPub/MoPubAdapter/ALMoPubMediationAdapter.m index 2e7168126f..9857eeb4a9 100644 --- a/MoPub/MoPubAdapter/ALMoPubMediationAdapter.m +++ b/MoPub/MoPubAdapter/ALMoPubMediationAdapter.m @@ -16,10 +16,6 @@ #import "MoPub.h" // For raw integrations #endif -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" - #define ADAPTER_VERSION @"5.16.2.0" @interface ALMoPubMediationAdapterInterstitialAdDelegate : NSObject @@ -425,10 +421,13 @@ + (MAAdapterError *)toMaxError:(NSError *)moPubError } } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: moPubError.code thirdPartySdkErrorMessage: moPubError.localizedDescription]; +#pragma clang diagnostic pop } @end diff --git a/MyTarget/CHANGELOG.md b/MyTarget/CHANGELOG.md index 7957bb3f21..a554b6fb73 100644 --- a/MyTarget/CHANGELOG.md +++ b/MyTarget/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 5.14.4.2 * Properly destroy native ad. diff --git a/MyTarget/MyTargetAdapter.xcodeproj/project.pbxproj b/MyTarget/MyTargetAdapter.xcodeproj/project.pbxproj index edf52a5b90..3016df69a9 100644 --- a/MyTarget/MyTargetAdapter.xcodeproj/project.pbxproj +++ b/MyTarget/MyTargetAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/MyTarget/MyTargetAdapter/ALMyTargetMediationAdapter.h b/MyTarget/MyTargetAdapter/ALMyTargetMediationAdapter.h index c2413d406c..d00fecf11c 100644 --- a/MyTarget/MyTargetAdapter/ALMyTargetMediationAdapter.h +++ b/MyTarget/MyTargetAdapter/ALMyTargetMediationAdapter.h @@ -6,7 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/MyTarget/MyTargetAdapter/ALMyTargetMediationAdapter.m b/MyTarget/MyTargetAdapter/ALMyTargetMediationAdapter.m index 610e552d06..75a287c9b0 100644 --- a/MyTarget/MyTargetAdapter/ALMyTargetMediationAdapter.m +++ b/MyTarget/MyTargetAdapter/ALMyTargetMediationAdapter.m @@ -8,11 +8,6 @@ #import "ALMyTargetMediationAdapter.h" #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "MAAdFormat+Internal.h" -#import "MANativeAdView.h" #define ADAPTER_VERSION @"5.14.4.2" @@ -312,10 +307,13 @@ + (MTRGAdSize *)adViewSizeForAdFormat:(MAAdFormat *)adFormat + (MAAdapterError *)toMaxError:(NSString *)reason { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: MAAdapterError.noFill.errorCode errorString: MAAdapterError.noFill.errorMessage thirdPartySdkErrorCode: 0 thirdPartySdkErrorMessage: reason]; +#pragma clang diagnostic pop } @end diff --git a/Nend/CHANGELOG.md b/Nend/CHANGELOG.md index 4a10088008..73468456f3 100644 --- a/Nend/CHANGELOG.md +++ b/Nend/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 7.1.0.0 * Certified with Nend SDK 7.1.0. diff --git a/Nend/NendAdapter.xcodeproj/project.pbxproj b/Nend/NendAdapter.xcodeproj/project.pbxproj index f2fbca8cf1..ffd17edfb9 100644 --- a/Nend/NendAdapter.xcodeproj/project.pbxproj +++ b/Nend/NendAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Nend/NendAdapter/ALNendMediationAdapter.h b/Nend/NendAdapter/ALNendMediationAdapter.h index 996a62fbb0..4ab99292ad 100644 --- a/Nend/NendAdapter/ALNendMediationAdapter.h +++ b/Nend/NendAdapter/ALNendMediationAdapter.h @@ -6,7 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Nend/NendAdapter/ALNendMediationAdapter.m b/Nend/NendAdapter/ALNendMediationAdapter.m index 37b6805585..72e8462a16 100644 --- a/Nend/NendAdapter/ALNendMediationAdapter.m +++ b/Nend/NendAdapter/ALNendMediationAdapter.m @@ -9,11 +9,9 @@ #import "ALNendMediationAdapter.h" #import #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" #define ADAPTER_VERSION @"7.1.0.0" +#define NSSTRING(_X) ( (_X != NULL) ? [NSString stringWithCString: _X encoding: NSStringEncodingConversionAllowLossy] : nil) @interface ALNendMediationAdapterInterstitialAdDelegate : NSObject @property (nonatomic, weak) ALNendMediationAdapter *parentAdapter; @@ -241,10 +239,13 @@ + (MAAdapterError *)toMaxError:(NSError *)nendError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: nendErrorCode thirdPartySdkErrorMessage: nendError.localizedDescription]; +#pragma clang diagnostic pop } /** @@ -267,10 +268,13 @@ + (MAAdapterError *)toMaxErrorFromNendAdViewError:(NSError *)nendError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: nendErrorCode thirdPartySdkErrorMessage: nendError.localizedDescription]; +#pragma clang diagnostic pop } + (CGRect)adViewFrameForAdFormat:(MAAdFormat *)adFormat diff --git a/OguryPresage/CHANGELOG.md b/OguryPresage/CHANGELOG.md index 11d94b7a6a..d0310d3e21 100644 --- a/OguryPresage/CHANGELOG.md +++ b/OguryPresage/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 2.5.1.0 * Certified with OguryPresage SDK 2.5.1. diff --git a/OguryPresage/OguryPresageAdapter.xcodeproj/project.pbxproj b/OguryPresage/OguryPresageAdapter.xcodeproj/project.pbxproj index e298cf90bf..6d52a8b8e7 100644 --- a/OguryPresage/OguryPresageAdapter.xcodeproj/project.pbxproj +++ b/OguryPresage/OguryPresageAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -309,7 +305,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = "../../iOS-SDK-Commons"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = YES; @@ -319,7 +314,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -330,7 +324,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = "../../iOS-SDK-Commons"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = NO; @@ -340,7 +333,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/OguryPresage/OguryPresageAdapter/ALOguryPresageMediationAdapter.h b/OguryPresage/OguryPresageAdapter/ALOguryPresageMediationAdapter.h index 24b6db3b28..98fa8ff013 100644 --- a/OguryPresage/OguryPresageAdapter/ALOguryPresageMediationAdapter.h +++ b/OguryPresage/OguryPresageAdapter/ALOguryPresageMediationAdapter.h @@ -6,9 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" +#import @interface ALOguryPresageMediationAdapter : ALMediationAdapter diff --git a/OguryPresage/OguryPresageAdapter/ALOguryPresageMediationAdapter.m b/OguryPresage/OguryPresageAdapter/ALOguryPresageMediationAdapter.m index 60f90ce124..109c926fd8 100644 --- a/OguryPresage/OguryPresageAdapter/ALOguryPresageMediationAdapter.m +++ b/OguryPresage/OguryPresageAdapter/ALOguryPresageMediationAdapter.m @@ -10,11 +10,6 @@ #import #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "MAAdFormat+Internal.h" - #define ADAPTER_VERSION @"2.5.1.0" @interface ALOguryPresageMediationAdapterInterstitialDelegate : NSObject @@ -294,10 +289,13 @@ + (MAAdapterError *)toMaxError:(OguryAdsErrorType)oguryError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: oguryError thirdPartySdkErrorMessage: thirdPartySdkErrorMessage]; +#pragma clang diagnostic pop } + (OguryAdsBannerSize *)sizeFromAdFormat:(MAAdFormat *)adFormat diff --git a/Smaato/CHANGELOG.md b/Smaato/CHANGELOG.md index f8ad9218d8..49178a8b1f 100644 --- a/Smaato/CHANGELOG.md +++ b/Smaato/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 21.6.19.1 * Add support for native custom ads and native template ads. diff --git a/Smaato/SmaatoAdapter.xcodeproj/project.pbxproj b/Smaato/SmaatoAdapter.xcodeproj/project.pbxproj index 2b65cff2b0..550ad2a5df 100644 --- a/Smaato/SmaatoAdapter.xcodeproj/project.pbxproj +++ b/Smaato/SmaatoAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -309,7 +305,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = YES; @@ -319,7 +314,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -330,7 +324,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = NO; @@ -340,7 +333,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Smaato/SmaatoAdapter/ALSmaatoMediationAdapter.h b/Smaato/SmaatoAdapter/ALSmaatoMediationAdapter.h index 0256fdcf7a..6c1c55ca55 100644 --- a/Smaato/SmaatoAdapter/ALSmaatoMediationAdapter.h +++ b/Smaato/SmaatoAdapter/ALSmaatoMediationAdapter.h @@ -6,10 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" +#import @interface ALSmaatoMediationAdapter : ALMediationAdapter diff --git a/Smaato/SmaatoAdapter/ALSmaatoMediationAdapter.m b/Smaato/SmaatoAdapter/ALSmaatoMediationAdapter.m index 169df11af8..49ba447a0e 100644 --- a/Smaato/SmaatoAdapter/ALSmaatoMediationAdapter.m +++ b/Smaato/SmaatoAdapter/ALSmaatoMediationAdapter.m @@ -7,7 +7,6 @@ // #import "ALSmaatoMediationAdapter.h" -#import "ALMediationAdapterRouter.h" #import #import #import @@ -15,13 +14,6 @@ #import #import -#import "ALUtils.h" -#import "MAAdFormat+Internal.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "MANativeAd.h" -#import "MANativeAdView.h" - #define ADAPTER_VERSION @"21.6.19.1" /** @@ -439,11 +431,14 @@ + (MAAdapterError *)toMaxError:(NSError *)smaatoError adapterError = MAAdapterError.invalidConfiguration; break; } - + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: smaatoErrorCode thirdPartySdkErrorMessage: smaatoError.localizedDescription]; +#pragma clang diagnostic pop } - (nullable SMAAdRequestParams *)createBiddingAdRequestParamsFromBidResponse:(NSString *)bidResponse diff --git a/Snap/CHANGELOG.md b/Snap/CHANGELOG.md index f311364c2f..9d0274f3b7 100644 --- a/Snap/CHANGELOG.md +++ b/Snap/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 2.0.0.0 * Fix initialization status bug. * Certified with Snap SDK 2.0.0. diff --git a/Snap/SnapAdapter.xcodeproj/project.pbxproj b/Snap/SnapAdapter.xcodeproj/project.pbxproj index 50e3c9c754..8ee0682ff5 100644 --- a/Snap/SnapAdapter.xcodeproj/project.pbxproj +++ b/Snap/SnapAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 10.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 10.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Snap/SnapAdapter/ALSnapMediationAdapter.h b/Snap/SnapAdapter/ALSnapMediationAdapter.h index 548362b9fa..a0727a736a 100644 --- a/Snap/SnapAdapter/ALSnapMediationAdapter.h +++ b/Snap/SnapAdapter/ALSnapMediationAdapter.h @@ -5,7 +5,7 @@ // Copyright © 2020 AppLovin. All rights reserved. // -#import "ALMediationAdapter.h" +#import @interface ALSnapMediationAdapter : ALMediationAdapter diff --git a/Snap/SnapAdapter/ALSnapMediationAdapter.m b/Snap/SnapAdapter/ALSnapMediationAdapter.m index a9f6fd1b24..047392d650 100644 --- a/Snap/SnapAdapter/ALSnapMediationAdapter.m +++ b/Snap/SnapAdapter/ALSnapMediationAdapter.m @@ -8,11 +8,6 @@ #import "ALSnapMediationAdapter.h" #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "MAAdFormat+Internal.h" - #define ADAPTER_VERSION @"2.0.0.0" @interface ALSnapMediationAdapterInterstitialAdDelegate : NSObject @@ -305,10 +300,13 @@ + (MAAdapterError *)toMaxError:(NSError *)snapError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: snapErrorCode thirdPartySdkErrorMessage: snapError.description]; +#pragma clang diagnostic pop } - (SAKAdViewFormat)adSizeForAdFormat:(MAAdFormat *)adFormat diff --git a/Tapjoy/CHANGELOG.md b/Tapjoy/CHANGELOG.md index 21f983b9e7..a05a428ac0 100644 --- a/Tapjoy/CHANGELOG.md +++ b/Tapjoy/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 12.8.1.0 * Certified with Tapjoy SDK 12.8.1. * Update podspec to use `pod_target_xcconfig` over the deprecated `xcconfig`. diff --git a/Tapjoy/TapjoyAdapter.xcodeproj/project.pbxproj b/Tapjoy/TapjoyAdapter.xcodeproj/project.pbxproj index 2bd7c72ec4..aae34e1921 100644 --- a/Tapjoy/TapjoyAdapter.xcodeproj/project.pbxproj +++ b/Tapjoy/TapjoyAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -310,7 +306,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = YES; @@ -320,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -332,7 +326,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; OTHER_CFLAGS = "-fembed-bitcode"; @@ -341,7 +334,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Tapjoy/TapjoyAdapter/ALTapjoyMediationAdapter.h b/Tapjoy/TapjoyAdapter/ALTapjoyMediationAdapter.h index df2cf06a3e..cf631fb5c4 100644 --- a/Tapjoy/TapjoyAdapter/ALTapjoyMediationAdapter.h +++ b/Tapjoy/TapjoyAdapter/ALTapjoyMediationAdapter.h @@ -6,11 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" -#import "MASignalProvider.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Tapjoy/TapjoyAdapter/ALTapjoyMediationAdapter.m b/Tapjoy/TapjoyAdapter/ALTapjoyMediationAdapter.m index 1b9ddabf0e..d0d8ebfb3f 100644 --- a/Tapjoy/TapjoyAdapter/ALTapjoyMediationAdapter.m +++ b/Tapjoy/TapjoyAdapter/ALTapjoyMediationAdapter.m @@ -8,8 +8,6 @@ #import "ALTapjoyMediationAdapter.h" #import -#import "NSDictionary+ALUtils.h" -#import "ALUtils.h" #define ADAPTER_VERSION @"12.8.1.0" @@ -342,10 +340,13 @@ + (MAAdapterError *)toMaxError:(NSError *)tapjoyError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: tapjoyErrorCode thirdPartySdkErrorMessage: tapjoyError.description]; +#pragma clang diagnostic pop } @end @@ -422,11 +423,14 @@ - (void)videoDidFail:(TJPlacement *)placement error:(NSString *)errorMessage { [self.parentAdapter log: @"Interstitial failed with error message: %@", errorMessage]; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" MAAdapterError *adapterError = [MAAdapterError errorWithCode: MAAdapterError.unspecified.errorCode errorString: MAAdapterError.unspecified.errorMessage thirdPartySdkErrorCode: 0 thirdPartySdkErrorMessage: errorMessage]; [self.delegate didFailToDisplayInterstitialAdWithError: adapterError]; +#pragma clang diagnostic pop } @end @@ -514,11 +518,14 @@ - (void)videoDidFail:(TJPlacement *)placement error:(NSString *)errorMessage { [self.parentAdapter log: @"Rewarded failed with error message: %@", errorMessage]; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" MAAdapterError *adapterError = [MAAdapterError errorWithCode: MAAdapterError.unspecified.errorCode errorString: MAAdapterError.unspecified.errorMessage thirdPartySdkErrorCode: 0 thirdPartySdkErrorMessage: errorMessage]; [self.delegate didFailToDisplayRewardedAdWithError: adapterError]; +#pragma clang diagnostic pop } @end diff --git a/TencentGDT/CHANGELOG.md b/TencentGDT/CHANGELOG.md index 0552c6cea8..952aadb72c 100644 --- a/TencentGDT/CHANGELOG.md +++ b/TencentGDT/CHANGELOG.md @@ -2,6 +2,7 @@ ## x.x.x.x.x * Update podspec to use `pod_target_xcconfig` over the deprecated `xcconfig`. +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. ## 4.12.4.2 * Added support for `videoMuted` property for fullscreen ads. diff --git a/TencentGDT/TencentGDTAdapter.xcodeproj/project.pbxproj b/TencentGDT/TencentGDTAdapter.xcodeproj/project.pbxproj index 1ec8835781..74f427c438 100644 --- a/TencentGDT/TencentGDTAdapter.xcodeproj/project.pbxproj +++ b/TencentGDT/TencentGDTAdapter.xcodeproj/project.pbxproj @@ -233,16 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$PROJECT_DIR/../iOS-SDK/sdk/**", - "../../iOS-SDK-Commons", - ); IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -293,16 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$PROJECT_DIR/../iOS-SDK/sdk/**", - "../../iOS-SDK-Commons", - ); IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -325,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -346,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/TencentGDT/TencentGDTAdapter/ALTencentGDTMediationAdapter.h b/TencentGDT/TencentGDTAdapter/ALTencentGDTMediationAdapter.h index 93a385da11..df2536c4fd 100644 --- a/TencentGDT/TencentGDTAdapter/ALTencentGDTMediationAdapter.h +++ b/TencentGDT/TencentGDTAdapter/ALTencentGDTMediationAdapter.h @@ -6,10 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/TencentGDT/TencentGDTAdapter/ALTencentGDTMediationAdapter.m b/TencentGDT/TencentGDTAdapter/ALTencentGDTMediationAdapter.m index a86306819b..e2c6fa5e57 100644 --- a/TencentGDT/TencentGDTAdapter/ALTencentGDTMediationAdapter.m +++ b/TencentGDT/TencentGDTAdapter/ALTencentGDTMediationAdapter.m @@ -11,10 +11,6 @@ #import "GDTUnifiedBannerView.h" #import "GDTUnifiedInterstitialAd.h" #import "GDTRewardVideoAd.h" -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "NSDate+ALUtils.h" #define ADAPTER_VERSION @"4.12.4.2" @@ -268,10 +264,13 @@ + (MAAdapterError *)toMaxError:(NSError *)tencentGDTError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: tencentErrorCode thirdPartySdkErrorMessage: tencentGDTError.localizedDescription]; +#pragma clang diagnostic pop } @end diff --git a/UnityAds/CHANGELOG.md b/UnityAds/CHANGELOG.md index 8736187f45..05eef54001 100644 --- a/UnityAds/CHANGELOG.md +++ b/UnityAds/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 4.0.0.0 * Certified with UnityAds SDK 4.0.0. * Update to use consolidated `initialize()` API. diff --git a/UnityAds/UnityAdsAdapter.xcodeproj/project.pbxproj b/UnityAds/UnityAdsAdapter.xcodeproj/project.pbxproj index 48277b3390..5eafe450df 100644 --- a/UnityAds/UnityAdsAdapter.xcodeproj/project.pbxproj +++ b/UnityAds/UnityAdsAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -309,7 +305,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = YES; @@ -319,7 +314,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -330,7 +324,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = NO; @@ -340,7 +333,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/UnityAds/UnityAdsAdapter/ALUnityAdsMediationAdapter.h b/UnityAds/UnityAdsAdapter/ALUnityAdsMediationAdapter.h index 3b606e45d8..f56dce0aa5 100644 --- a/UnityAds/UnityAdsAdapter/ALUnityAdsMediationAdapter.h +++ b/UnityAds/UnityAdsAdapter/ALUnityAdsMediationAdapter.h @@ -6,10 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" +#import @interface ALUnityAdsMediationAdapter : ALMediationAdapter diff --git a/UnityAds/UnityAdsAdapter/ALUnityAdsMediationAdapter.m b/UnityAds/UnityAdsAdapter/ALUnityAdsMediationAdapter.m index 17aa416a78..6d9abaa020 100644 --- a/UnityAds/UnityAdsAdapter/ALUnityAdsMediationAdapter.m +++ b/UnityAds/UnityAdsAdapter/ALUnityAdsMediationAdapter.m @@ -9,11 +9,6 @@ #import "ALUnityAdsMediationAdapter.h" #import -#import "ALSdk.h" -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" - #define ADAPTER_VERSION @"4.0.0.0" @interface ALUnityAdsInitializationDelegate : NSObject @@ -292,10 +287,13 @@ + (MAAdapterError *)toMaxError:(UADSBannerError *)unityAdsBannerError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: unityAdsBannerErrorCode thirdPartySdkErrorMessage: @""]; +#pragma clang diagnostic pop } + (MAAdapterError *)toMaxErrorWithLoadError:(UnityAdsLoadError)unityAdsLoadError withMessage:(NSString *)message @@ -320,10 +318,13 @@ + (MAAdapterError *)toMaxErrorWithLoadError:(UnityAdsLoadError)unityAdsLoadError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: unityAdsLoadError thirdPartySdkErrorMessage: message]; +#pragma clang diagnostic pop } + (MAAdapterError *)toMaxErrorWithShowError:(UnityAdsShowError)unityAdsShowError withMessage:(NSString *)message @@ -354,10 +355,13 @@ + (MAAdapterError *)toMaxErrorWithShowError:(UnityAdsShowError)unityAdsShowError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: unityAdsShowError thirdPartySdkErrorMessage: message]; +#pragma clang diagnostic pop } #pragma mark - GDPR diff --git a/VerizonAds/CHANGELOG.md b/VerizonAds/CHANGELOG.md index 1db962704f..9864eeafb0 100644 --- a/VerizonAds/CHANGELOG.md +++ b/VerizonAds/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 1.14.2.0 * Certified with VerizonAds SDK 1.14.2. diff --git a/VerizonAds/VerizonAdsAdapter.xcodeproj/project.pbxproj b/VerizonAds/VerizonAdsAdapter.xcodeproj/project.pbxproj index 0bb2006d25..6d72862bd5 100644 --- a/VerizonAds/VerizonAdsAdapter.xcodeproj/project.pbxproj +++ b/VerizonAds/VerizonAdsAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -309,7 +305,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = YES; @@ -319,7 +314,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -330,7 +324,6 @@ DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**"; - HEADER_SEARCH_PATHS = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = NO; @@ -340,7 +333,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/VerizonAds/VerizonAdsAdapter/ALVerizonAdsMediationAdapter.h b/VerizonAds/VerizonAdsAdapter/ALVerizonAdsMediationAdapter.h index 4b2a4ef5ab..019faeca62 100644 --- a/VerizonAds/VerizonAdsAdapter/ALVerizonAdsMediationAdapter.h +++ b/VerizonAds/VerizonAdsAdapter/ALVerizonAdsMediationAdapter.h @@ -6,10 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" -#import "MAInterstitialAdapter.h" -#import "MARewardedAdapter.h" -#import "MAAdViewAdapter.h" +#import @interface ALVerizonAdsMediationAdapter : ALMediationAdapter diff --git a/VerizonAds/VerizonAdsAdapter/ALVerizonAdsMediationAdapter.m b/VerizonAds/VerizonAdsAdapter/ALVerizonAdsMediationAdapter.m index 14f0990215..f1e8c2f776 100644 --- a/VerizonAds/VerizonAdsAdapter/ALVerizonAdsMediationAdapter.m +++ b/VerizonAds/VerizonAdsAdapter/ALVerizonAdsMediationAdapter.m @@ -10,16 +10,6 @@ #import #import -#import "ALSdk.h" -#import "ALUtils.h" -#import "MAAdapterInitializationParameters.h" -#import "MAAdFormat+Internal.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "NSNumber+ALUtils.h" -#import "NSDate+ALUtils.h" -#import "ALTimeUnit.h" - #define ADAPTER_VERSION @"1.14.2.0" /** @@ -408,10 +398,13 @@ + (MAAdapterError *)toMaxError:(VASErrorInfo *)verizonAdsError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: verizonErrorCode thirdPartySdkErrorMessage: verizonAdsError.localizedDescription]; +#pragma clang diagnostic pop } - (VASInlineAdSize *)adSizeFromAdFormat:(MAAdFormat *)adFormat diff --git a/Verve/AppLovinMediationVerveAdapter.podspec b/Verve/AppLovinMediationVerveAdapter.podspec index cba46ac996..d815970591 100644 --- a/Verve/AppLovinMediationVerveAdapter.podspec +++ b/Verve/AppLovinMediationVerveAdapter.podspec @@ -5,7 +5,7 @@ s.authors = 'AppLovin Corporation' => 'devsupport@applovin.com' } s.name = 'AppLovinMediationVerveAdapter' -s.version = '2.5.2.0' +s.version = '2.9.1.0' s.platform = :ios, '9.0' s.summary = 'Verve adapter used for mediation with the AppLovin MAX SDK' s.homepage = 'https://github.com/CocoaPods/Specs/search?o=desc&q=AppLovinMediationVerveAdapter&s=indexed' @@ -23,13 +23,13 @@ LICENSE s.source = { - :http => 'https://artifacts.applovin.com/ios/com/applovin/mediation/verve-adapter/AppLovinMediationVerveAdapter-2.5.2.0.zip', + :http => 'https://artifacts.applovin.com/ios/com/applovin/mediation/verve-adapter/AppLovinMediationVerveAdapter-2.9.1.0.zip', :type => 'zip' } -s.vendored_frameworks = 'AppLovinMediationVerveAdapter-2.5.2.0/AppLovinMediationVerveAdapter.framework' +s.vendored_frameworks = 'AppLovinMediationVerveAdapter-2.9.1.0/AppLovinMediationVerveAdapter.framework' -s.dependency 'HyBid', '= 2.5.2' +s.dependency 'HyBid', '= 2.9.1' s.dependency 'AppLovinSDK' s.pod_target_xcconfig = diff --git a/Verve/CHANGELOG.md b/Verve/CHANGELOG.md index 289584de87..dd1126723e 100644 --- a/Verve/CHANGELOG.md +++ b/Verve/CHANGELOG.md @@ -1,4 +1,10 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + +## 2.9.1.0 +* Certified with Verve SDK 2.9.1. + ## 2.5.2.0 * Initial commit. diff --git a/Verve/VerveAdapter.xcodeproj/project.pbxproj b/Verve/VerveAdapter.xcodeproj/project.pbxproj index 1359ac2340..de95579665 100644 --- a/Verve/VerveAdapter.xcodeproj/project.pbxproj +++ b/Verve/VerveAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -323,7 +319,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(inherited)"; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -348,7 +343,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(inherited)"; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Verve/VerveAdapter/ALVerveMediationAdapter.h b/Verve/VerveAdapter/ALVerveMediationAdapter.h index 844c8fc06d..6e29bcfb49 100644 --- a/Verve/VerveAdapter/ALVerveMediationAdapter.h +++ b/Verve/VerveAdapter/ALVerveMediationAdapter.h @@ -6,7 +6,7 @@ // Copyright © 2022 AppLovin Corporation. All rights reserved. // -#import "ALMediationAdapter.h" +#import @interface ALVerveMediationAdapter : ALMediationAdapter diff --git a/Verve/VerveAdapter/ALVerveMediationAdapter.m b/Verve/VerveAdapter/ALVerveMediationAdapter.m index abcff10b64..b17dd26812 100644 --- a/Verve/VerveAdapter/ALVerveMediationAdapter.m +++ b/Verve/VerveAdapter/ALVerveMediationAdapter.m @@ -7,13 +7,9 @@ // #import "ALVerveMediationAdapter.h" -#import "ALMediationAdapterRouter.h" #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "MAAdFormat+Internal.h" -#define ADAPTER_VERSION @"2.5.2.0" +#define ADAPTER_VERSION @"2.9.1.0" @interface ALVerveMediationAdapterInterstitialAdDelegate : NSObject @property (nonatomic, weak) ALVerveMediationAdapter *parentAdapter; @@ -324,10 +320,14 @@ + (MAAdapterError *)toMaxError:(NSError *)verveError adapterError = MAAdapterError.internalError; break; } + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: verveErrorCode thirdPartySdkErrorMessage: verveError.localizedDescription]; +#pragma clang diagnostic pop } @end diff --git a/Vungle/CHANGELOG.md b/Vungle/CHANGELOG.md index dfeb1967a4..cd480e3120 100644 --- a/Vungle/CHANGELOG.md +++ b/Vungle/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 6.10.5.1 * Add further support for ad muting. diff --git a/Vungle/VungleAdapter.xcodeproj/project.pbxproj b/Vungle/VungleAdapter.xcodeproj/project.pbxproj index 0433231760..a2e0821e66 100644 --- a/Vungle/VungleAdapter.xcodeproj/project.pbxproj +++ b/Vungle/VungleAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Vungle/VungleAdapter/ALVungleMediationAdapter.h b/Vungle/VungleAdapter/ALVungleMediationAdapter.h index d7d31408a6..21f64b7ab1 100644 --- a/Vungle/VungleAdapter/ALVungleMediationAdapter.h +++ b/Vungle/VungleAdapter/ALVungleMediationAdapter.h @@ -6,7 +6,7 @@ // Copyright © 2018 AppLovin. All rights reserved. // -#import "ALMediationAdapter.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Vungle/VungleAdapter/ALVungleMediationAdapter.m b/Vungle/VungleAdapter/ALVungleMediationAdapter.m index 8d53149a35..c51bdf0240 100644 --- a/Vungle/VungleAdapter/ALVungleMediationAdapter.m +++ b/Vungle/VungleAdapter/ALVungleMediationAdapter.m @@ -11,13 +11,6 @@ #import #import -#import "MAAdapterInitializationParameters.h" -#import "ALMediationAdapterRouter.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "ALUtils.h" -#import "MAAdFormat+Internal.h" - #define ADAPTER_VERSION @"6.10.5.1" @interface ALVungleMediationAdapterRouter : ALMediationAdapterRouter @@ -596,10 +589,13 @@ + (MAAdapterError *)toMaxError:(nullable NSError *)vungleError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: vungleErrorCode thirdPartySdkErrorMessage: vungleError.localizedDescription]; +#pragma clang diagnostic pop } #pragma mark - Dynamic Properties diff --git a/Yandex/CHANGELOG.md b/Yandex/CHANGELOG.md index 9d2c4c23b5..79769ab6d7 100644 --- a/Yandex/CHANGELOG.md +++ b/Yandex/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## x.x.x.x +* Update open source versions to allow compilation with AppLovin SDK v11.0.0+. + ## 4.4.2.0 * Certified with Yandex SDK 4.4.2. diff --git a/Yandex/YandexAdapter.xcodeproj/project.pbxproj b/Yandex/YandexAdapter.xcodeproj/project.pbxproj index 93a25bf70a..1683db5016 100644 --- a/Yandex/YandexAdapter.xcodeproj/project.pbxproj +++ b/Yandex/YandexAdapter.xcodeproj/project.pbxproj @@ -233,13 +233,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; name = Debug; @@ -290,13 +288,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; MTL_ENABLE_DEBUG_INFO = NO; ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../iOS-SDK/sdk/**"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "$(ARCHS_STANDARD)"; }; @@ -319,7 +315,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Debug; }; @@ -340,7 +335,6 @@ SKIP_INSTALL = YES; SYSTEM_FRAMEWORK_SEARCH_PATHS = ""; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$PROJECT_DIR/../../iOS-SDK/sdk/Public/** $PROJECT_DIR/../../iOS-SDK/sdk/Private/**"; }; name = Release; }; diff --git a/Yandex/YandexAdapter/ALYandexMediationAdapter.h b/Yandex/YandexAdapter/ALYandexMediationAdapter.h index cdd8e5440f..dc9dc87a5b 100644 --- a/Yandex/YandexAdapter/ALYandexMediationAdapter.h +++ b/Yandex/YandexAdapter/ALYandexMediationAdapter.h @@ -6,7 +6,7 @@ // Copyright © 2019 AppLovin. All rights reserved. // -#import "ALMediationAdapter.h" +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Yandex/YandexAdapter/ALYandexMediationAdapter.m b/Yandex/YandexAdapter/ALYandexMediationAdapter.m index 15b9f19318..5feefc0c5e 100644 --- a/Yandex/YandexAdapter/ALYandexMediationAdapter.m +++ b/Yandex/YandexAdapter/ALYandexMediationAdapter.m @@ -8,10 +8,6 @@ #import "ALYandexMediationAdapter.h" #import -#import "ALUtils.h" -#import "NSDictionary+ALUtils.h" -#import "NSString+ALUtils.h" -#import "MAAdFormat+Internal.h" #define ADAPTER_VERSION @"4.4.2.0" @@ -319,10 +315,13 @@ + (MAAdapterError *)toMaxError:(NSError *)yandexError break; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return [MAAdapterError errorWithCode: adapterError.errorCode errorString: adapterError.errorMessage thirdPartySdkErrorCode: yandexErrorCode thirdPartySdkErrorMessage: yandexError.localizedDescription]; +#pragma clang diagnostic pop } @end