From e4f1e1ed14ba4d3c53c7be7868c3ca3a74670932 Mon Sep 17 00:00:00 2001 From: jenkins Date: Thu, 4 Apr 2024 18:39:46 -0700 Subject: [PATCH] Vungle/7.3.1.0 --- Vungle/AppLovinMediationVungleAdapter.podspec | 4 +- Vungle/CHANGELOG.md | 5 ++ .../VungleAdapter/ALVungleMediationAdapter.m | 67 +++++++++---------- 3 files changed, 39 insertions(+), 37 deletions(-) diff --git a/Vungle/AppLovinMediationVungleAdapter.podspec b/Vungle/AppLovinMediationVungleAdapter.podspec index 9d97c5ae6b..f98ab5f8fb 100644 --- a/Vungle/AppLovinMediationVungleAdapter.podspec +++ b/Vungle/AppLovinMediationVungleAdapter.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| s.authors = 'AppLovin Corporation' s.name = 'AppLovinMediationVungleAdapter' -s.version = '7.3.0.0' +s.version = '7.3.1.0' s.platform = :ios, '12.0' s.summary = 'Vungle adapter used for mediation with the AppLovin MAX SDK' s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed" @@ -26,7 +26,7 @@ s.source = s.vendored_frameworks = "#{s.name}-#{s.version}/#{s.name}.xcframework" -s.dependency 'VungleAds', '= 7.3.0' +s.dependency 'VungleAds', '= 7.3.1' s.dependency 'AppLovinSDK' s.swift_version = '5.0' diff --git a/Vungle/CHANGELOG.md b/Vungle/CHANGELOG.md index 0d5311fc19..1128fdd9e3 100644 --- a/Vungle/CHANGELOG.md +++ b/Vungle/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 7.3.1.0 +* Certified with Vungle SDK 7.3.1. +* Remove deprecated callbacks `didStartRewardedAdVideo` and `didCompleteRewardedAdVideo`. +* Update error codes to use defined-constants from Vungle SDK. + ## 7.3.0.0 * Certified with Vungle SDK 7.3.0. diff --git a/Vungle/VungleAdapter/ALVungleMediationAdapter.m b/Vungle/VungleAdapter/ALVungleMediationAdapter.m index 0721b32960..90305f9a20 100644 --- a/Vungle/VungleAdapter/ALVungleMediationAdapter.m +++ b/Vungle/VungleAdapter/ALVungleMediationAdapter.m @@ -9,7 +9,7 @@ #import "ALVungleMediationAdapter.h" #import -#define ADAPTER_VERSION @"7.3.0.0" +#define ADAPTER_VERSION @"7.3.1.0" @interface ALVungleMediationAdapterInterstitialAdDelegate : NSObject @property (nonatomic, weak) ALVungleMediationAdapter *parentAdapter; @@ -548,59 +548,59 @@ + (MAAdapterError *)toMaxError:(nullable NSError *)vungleError isAdPresentError: switch ( vungleErrorCode ) { - case 6: // SDK Not Initialized + case VungleErrorSdkNotInitialized: adapterError = MAAdapterError.notInitialized; break; - case 2: // Invalid AppID - case 201: // Invalid PlacementID - case 207: // Invalid Placement Type - case 222: // Invalid Placement load type - case 500: // BannerView: Invalid Size - case 30001: // Ad Publisher Mismatch + case VungleErrorInvalidAppID: + case VungleErrorInvalidPlacementID: + case VungleErrorPlacementAdTypeMismatch: + case VungleErrorInvalidWaterfallPlacementID: + case VungleErrorBannerViewInvalidSize: + case VungleErrorAdPublisherMismatch: adapterError = MAAdapterError.invalidConfiguration; break; - case 119: // Json Encode Error - case 30002: // Ad Internal Integration Error + case VungleErrorJsonEncodeError: + case VungleErrorAdInternalIntegrationError: adapterError = MAAdapterError.internalError; break; - case 202: // Ad already Consumed - case 203: // Ad is already loading - case 204: // Ad already loaded - case 205: // Ad is playing - case 206: // Ad already failed loading + case VungleErrorAdConsumed: + case VungleErrorAdIsLoading: + case VungleErrorAdAlreadyLoaded: + case VungleErrorAdIsPlaying: + case VungleErrorAdAlreadyFailed: adapterError = MAAdapterError.invalidLoadState; break; - case 210: // Ad Not Loaded + case VungleErrorAdNotLoaded: adapterError = adPresentError ? MAAdapterError.adNotReady : MAAdapterError.invalidLoadState; break; - case 115: // Invalid IndexURL - case 302: // Invalid Ifa Status - case 305: // Mraid Bridge Error - case 400: // Concurrent Playback Unsupported + case VungleErrorInvalidIndexURL: + case VungleErrorInvalidIfaStatus: + case VungleErrorMraidBridgeError: + case VungleErrorConcurrentPlaybackUnsupported: adapterError = MAAdapterError.adDisplayFailedError; break; - case 212: // Placement Sleep - case 10001: // Ad No Fill - case 10002: // AdLoad Too Frequently + case VungleErrorPlacementSleep: + case VungleErrorAdNoFill: + case VungleErrorAdLoadTooFrequently: adapterError = MAAdapterError.noFill; break; - case 217: // Ad response timeOut + case VungleErrorAdResponseTimedOut: adapterError = MAAdapterError.timeout; break; - case 220: // Server busy with retry after timer. - case 221: // Load ad during Server busy with retry after timer. - case 20001: // Ad Server Error + case VungleErrorAdResponseRetryAfter: + case VungleErrorAdLoadFailRetryAfter: + case VungleErrorAdServerError: adapterError = MAAdapterError.serverError; break; - case 304: // Ad Expired - case 307: // Ad Expired on play call. + case VungleErrorAdExpired: + case VungleErrorAdExpiredOnPlay: adapterError = MAAdapterError.adExpiredError; break; - case 600: // Native Asset Error + case VungleErrorNativeAssetError: adapterError = MAAdapterError.missingRequiredNativeAdAssets; break; - case 2000: // webView WebContent Process Did Terminate - case 2001: // webView Failed Navigation + case VungleErrorWebViewWebContentProcessDidTerminate: + case VungleErrorWebViewFailedNavigation: adapterError = MAAdapterError.webViewError; break; } @@ -823,7 +823,6 @@ - (void)rewardedAdWillPresent:(VungleRewarded *)rewarded - (void)rewardedAdDidPresent:(VungleRewarded *)rewarded { [self.parentAdapter log: @"Rewarded ad shown: %@", rewarded.placementId]; - [self.delegate didStartRewardedAdVideo]; } - (void)rewardedAdDidTrackImpression:(VungleRewarded *)rewarded @@ -863,8 +862,6 @@ - (void)rewardedAdWillClose:(VungleRewarded *)rewarded - (void)rewardedAdDidClose:(VungleRewarded *)rewarded { - [self.delegate didCompleteRewardedAdVideo]; - if ( [self hasGrantedReward] || [self.parentAdapter shouldAlwaysRewardUser] ) { MAReward *reward = [self.parentAdapter reward];