Skip to content

Commit

Permalink
GoogleAdManager/10.9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Aug 5, 2023
1 parent 0f2990b commit 2d4c3e6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 24 deletions.
10 changes: 4 additions & 6 deletions GoogleAdManager/AppLovinMediationGoogleAdManagerAdapter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Pod::Spec.new do |s|

s.authors = 'AppLovin Corporation'
s.name = 'AppLovinMediationGoogleAdManagerAdapter'
s.version = '10.8.0.0'
s.platform = :ios, '10.0'
s.version = '10.9.0.0'
s.platform = :ios, '11.0'
s.summary = 'Google Ad Manager adapter used for mediation with the AppLovin MAX SDK'
s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed"
s.license =
Expand All @@ -20,15 +20,13 @@ LICENSE

s.source =
{
:http => "#{s.version}" =~ /beta/ ?
"https://artifacts.applovin.com/ios/com/applovin/mediation/beta/googleadmanager-adapter/#{s.name}-#{s.version}.zip" :
"https://artifacts.applovin.com/ios/com/applovin/mediation/googleadmanager-adapter/#{s.name}-#{s.version}.zip",
:http => "https://artifacts.applovin.com/ios/com/applovin/mediation/googleadmanager-adapter/#{s.name}-#{s.version}.zip",
:type => 'zip'
}

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

s.dependency 'Google-Mobile-Ads-SDK', '= 10.8.0'
s.dependency 'Google-Mobile-Ads-SDK', '= 10.9.0'
s.dependency 'AppLovinSDK'

s.description = <<-DESC
Expand Down
6 changes: 6 additions & 0 deletions GoogleAdManager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 10.9.0.0
* Certified with GoogleAdManager SDK 10.9.0.
* Updated minimum Xcode requirement to 14.1.
* Fix deprecation warnings regarding `sdkVersion` and `tagForChildDirectedTreatment`.
* Updated the minimum required iOS version to 11.0 to match GoogleAdManager SDK.

## 10.8.0.0
* Certified with GoogleAdManager SDK 10.8.0.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -347,7 +347,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = NO;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -377,7 +377,7 @@
"\"${PODS_XCFRAMEWORKS_BUILD_DIR}/GoogleAppMeasurement/WithoutAdIdSupport\"",
"\"${PODS_XCFRAMEWORKS_BUILD_DIR}/GoogleUserMessagingPlatform\"",
);
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -408,7 +408,7 @@
"\"${PODS_XCFRAMEWORKS_BUILD_DIR}/GoogleAppMeasurement/WithoutAdIdSupport\"",
"\"${PODS_XCFRAMEWORKS_BUILD_DIR}/GoogleUserMessagingPlatform\"",
);
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import "ALGoogleAdManagerMediationAdapter.h"
#import <GoogleMobileAds/GoogleMobileAds.h>

#define ADAPTER_VERSION @"10.8.0.0"
#define ADAPTER_VERSION @"10.9.0.0"

#define TITLE_LABEL_TAG 1
#define MEDIA_VIEW_CONTAINER_TAG 2
Expand Down Expand Up @@ -131,7 +131,6 @@ @interface ALGoogleAdManagerMediationAdapter ()
@end

@implementation ALGoogleAdManagerMediationAdapter
static NSString *ALGoogleSDKVersion;

#pragma mark - MAAdapter Methods

Expand All @@ -143,13 +142,7 @@ - (void)initializeWithParameters:(id<MAAdapterInitializationParameters>)paramete

- (NSString *)SDKVersion
{
if ( ALGoogleSDKVersion ) return ALGoogleSDKVersion;

dispatchSyncOnMainQueue(^{
ALGoogleSDKVersion = [GADMobileAds sharedInstance].sdkVersion;
});

return ALGoogleSDKVersion;
return GADGetStringFromVersionNumber([GADMobileAds sharedInstance].versionNumber);
}

- (NSString *)adapterVersion
Expand Down Expand Up @@ -745,11 +738,7 @@ - (CGFloat)adaptiveBannerWidthFromParameters:(id<MAAdapterParameters>)parameters

- (void)setRequestConfigurationWithParameters:(id<MAAdapterParameters>)parameters
{
NSNumber *isAgeRestrictedUser = [parameters isAgeRestrictedUser];
if ( isAgeRestrictedUser )
{
[[GADMobileAds sharedInstance].requestConfiguration tagForChildDirectedTreatment: isAgeRestrictedUser.boolValue];
}
[GADMobileAds sharedInstance].requestConfiguration.tagForChildDirectedTreatment = [parameters isAgeRestrictedUser];
}

- (GAMRequest *)createAdRequestWithParameters:(id<MAAdapterParameters>)parameters
Expand Down

0 comments on commit 2d4c3e6

Please sign in to comment.