From b3a47802b54e330ed473f434e2f347612f9fff2d Mon Sep 17 00:00:00 2001 From: jenkins Date: Wed, 25 Jan 2023 14:58:06 -0800 Subject: [PATCH] MobileFuse/1.4.0.0 --- ...AppLovinMediationMobileFuseAdapter.podspec | 9 +++----- MobileFuse/CHANGELOG.md | 4 ++++ .../project.pbxproj | 6 +++-- .../ALMobileFuseMediationAdapter.h | 2 +- .../ALMobileFuseMediationAdapter.m | 22 ++++++++++++------- 5 files changed, 26 insertions(+), 17 deletions(-) diff --git a/MobileFuse/AppLovinMediationMobileFuseAdapter.podspec b/MobileFuse/AppLovinMediationMobileFuseAdapter.podspec index 0524032d0b..2f3447a07b 100644 --- a/MobileFuse/AppLovinMediationMobileFuseAdapter.podspec +++ b/MobileFuse/AppLovinMediationMobileFuseAdapter.podspec @@ -1,11 +1,8 @@ Pod::Spec.new do |s| -s.authors = -{ - 'AppLovin Corporation' => 'devsupport@applovin.com' -} +s.authors = 'AppLovin Corporation' s.name = 'AppLovinMediationMobileFuseAdapter' -s.version = '1.3.1.0' +s.version = '1.4.0.0' s.platform = :ios, '10.0' s.summary = 'MobileFuse adapter used for mediation with the AppLovin MAX SDK' s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed" @@ -29,7 +26,7 @@ s.source = s.vendored_frameworks = "#{s.name}-#{s.version}/#{s.name}.xcframework" -s.dependency 'MobileFuseSDK', '= 1.3.1' +s.dependency 'MobileFuseSDK', '= 1.4.0' s.dependency 'AppLovinSDK' s.pod_target_xcconfig = diff --git a/MobileFuse/CHANGELOG.md b/MobileFuse/CHANGELOG.md index 7c15df30df..0f9661d2dc 100644 --- a/MobileFuse/CHANGELOG.md +++ b/MobileFuse/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.4.0.0 +* Certified with MobileFuse SDK 1.4.0. +* Disable bitcode, as Apple deprecated it in Xcode 14 (https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes). + ## 1.3.1.0 * Certified with MobileFuse SDK 1.3.1. diff --git a/MobileFuse/MobileFuseAdapter.xcodeproj/project.pbxproj b/MobileFuse/MobileFuseAdapter.xcodeproj/project.pbxproj index 551a657b12..fdddae1a8a 100644 --- a/MobileFuse/MobileFuseAdapter.xcodeproj/project.pbxproj +++ b/MobileFuse/MobileFuseAdapter.xcodeproj/project.pbxproj @@ -216,6 +216,7 @@ CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_BITCODE = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; FRAMEWORK_SEARCH_PATHS = ""; @@ -277,6 +278,7 @@ CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_BITCODE = NO; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; FRAMEWORK_SEARCH_PATHS = ""; @@ -305,13 +307,13 @@ CODE_SIGN_STYLE = Manual; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; + ENABLE_BITCODE = NO; EXCLUDED_ARCHS = i386; 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; @@ -327,13 +329,13 @@ CODE_SIGN_STYLE = Manual; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = X8JXXK4FF5; + ENABLE_BITCODE = NO; EXCLUDED_ARCHS = i386; 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; diff --git a/MobileFuse/MobileFuseAdapter/ALMobileFuseMediationAdapter.h b/MobileFuse/MobileFuseAdapter/ALMobileFuseMediationAdapter.h index dacdcf2d58..8ccd8aa145 100644 --- a/MobileFuse/MobileFuseAdapter/ALMobileFuseMediationAdapter.h +++ b/MobileFuse/MobileFuseAdapter/ALMobileFuseMediationAdapter.h @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface ALMobileFuseMediationAdapter : ALMediationAdapter +@interface ALMobileFuseMediationAdapter : ALMediationAdapter @end diff --git a/MobileFuse/MobileFuseAdapter/ALMobileFuseMediationAdapter.m b/MobileFuse/MobileFuseAdapter/ALMobileFuseMediationAdapter.m index 800198c55b..9f5de947a7 100644 --- a/MobileFuse/MobileFuseAdapter/ALMobileFuseMediationAdapter.m +++ b/MobileFuse/MobileFuseAdapter/ALMobileFuseMediationAdapter.m @@ -15,22 +15,22 @@ #import #import -#define ADAPTER_VERSION @"1.3.1.0" +#define ADAPTER_VERSION @"1.4.0.0" -@interface ALMobileFuseInterstitialDelegate : NSObject +@interface ALMobileFuseInterstitialDelegate : NSObject @property (nonatomic, weak) ALMobileFuseMediationAdapter *parentAdapter; @property (nonatomic, strong) id delegate; - (instancetype)initWithParentAdapter:(ALMobileFuseMediationAdapter *)parentAdapter andNotify:(id)delegate; @end -@interface ALMobileFuseRewardedAdDelegate : NSObject +@interface ALMobileFuseRewardedAdDelegate : NSObject @property (nonatomic, weak) ALMobileFuseMediationAdapter *parentAdapter; @property (nonatomic, strong) id delegate; @property (nonatomic, assign, getter=hasGrantedReward) BOOL grantedReward; - (instancetype)initWithParentAdapter:(ALMobileFuseMediationAdapter *)parentAdapter andNotify:(id)delegate; @end -@interface ALMobileFuseAdViewDelegate : NSObject +@interface ALMobileFuseAdViewDelegate : NSObject @property (nonatomic, weak) MAAdFormat *format; @property (nonatomic, weak) ALMobileFuseMediationAdapter *parentAdapter; @property (nonatomic, strong) id delegate; @@ -39,7 +39,7 @@ - (instancetype)initWithParentAdapter:(ALMobileFuseMediationAdapter *)parentAdap andNotify:(id)delegate; @end -@interface ALMobileFuseMediationAdapter() +@interface ALMobileFuseMediationAdapter () @property (nonatomic, strong) MFInterstitialAd *interstitialAd; @property (nonatomic, strong) ALMobileFuseInterstitialDelegate *interstitialAdapterDelegate; @@ -126,7 +126,10 @@ - (void)showInterstitialAdForParameters:(id)paramet else if ( ![self.interstitialAd isAdReady] ) { [self log: @"Unable to show interstitial - ad not ready"]; - [delegate didFailToDisplayInterstitialAdWithError: MAAdapterError.adNotReady]; + [delegate didFailToDisplayInterstitialAdWithError: [MAAdapterError errorWithCode: -4205 + errorString: @"Ad Display Failed" + mediatedNetworkErrorCode: 0 + mediatedNetworkErrorMessage: @"Interstitial ad not ready"]]; return; } @@ -163,7 +166,10 @@ - (void)showRewardedAdForParameters:(id)parameters else if ( ![self.rewardedAd isAdReady] ) { [self log: @"Unable to show rewarded ad - ad not ready"]; - [delegate didFailToDisplayRewardedAdWithError: MAAdapterError.adNotReady]; + [delegate didFailToDisplayRewardedAdWithError: [MAAdapterError errorWithCode: -4205 + errorString: @"Ad Display Failed" + mediatedNetworkErrorCode: 0 + mediatedNetworkErrorMessage: @"Rewarded ad not ready"]]; return; } @@ -431,7 +437,7 @@ - (void)onAdLoaded:(MFAd *)ad [self.parentAdapter log: @"AdView ad loaded: %@", ad.placementId]; [self.delegate didLoadAdForAdView: ad]; - [(MFBannerAd *)ad showAdWithViewController: [ALUtils topViewControllerFromKeyWindow]]; + [(MFBannerAd *) ad showAdWithViewController: [ALUtils topViewControllerFromKeyWindow]]; } - (void)onAdNotFilled:(MFAd *)ad