From 105c9a3791d5fd2065607b9172cce2613cdb1410 Mon Sep 17 00:00:00 2001 From: Thomas So Date: Thu, 10 Feb 2022 16:02:52 -0800 Subject: [PATCH] Delete AmazonPublisherServices adapter --- .../project.pbxproj | 367 ------------- ...LAmazonPublisherServicesMediationAdapter.h | 13 - ...LAmazonPublisherServicesMediationAdapter.m | 517 ------------------ ...tionAmazonPublisherServicesAdapter.podspec | 56 -- AmazonPublisherServices/CHANGELOG.md | 13 - 5 files changed, 966 deletions(-) delete mode 100644 AmazonPublisherServices/AmazonPublisherServicesAdapter.xcodeproj/project.pbxproj delete mode 100644 AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.h delete mode 100644 AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.m delete mode 100644 AmazonPublisherServices/AppLovinMediationAmazonPublisherServicesAdapter.podspec delete mode 100644 AmazonPublisherServices/CHANGELOG.md diff --git a/AmazonPublisherServices/AmazonPublisherServicesAdapter.xcodeproj/project.pbxproj b/AmazonPublisherServices/AmazonPublisherServicesAdapter.xcodeproj/project.pbxproj deleted file mode 100644 index 6fff83b4b4..0000000000 --- a/AmazonPublisherServices/AmazonPublisherServicesAdapter.xcodeproj/project.pbxproj +++ /dev/null @@ -1,367 +0,0 @@ -// !$*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 deleted file mode 100644 index c160c53916..0000000000 --- a/AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// 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 deleted file mode 100644 index c968aaddb2..0000000000 --- a/AmazonPublisherServices/AmazonPublisherServicesAdapter/ALAmazonPublisherServicesMediationAdapter.m +++ /dev/null @@ -1,517 +0,0 @@ -// -// 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 deleted file mode 100644 index 4c1ad0c144..0000000000 --- a/AmazonPublisherServices/AppLovinMediationAmazonPublisherServicesAdapter.podspec +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index df9b40722f..0000000000 --- a/AmazonPublisherServices/CHANGELOG.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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.