Skip to content

Commit

Permalink
UnityAds/4.9.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Nov 13, 2023
1 parent b66868e commit 54d5b92
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
6 changes: 3 additions & 3 deletions UnityAds/AppLovinMediationUnityAdsAdapter.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 = 'AppLovinMediationUnityAdsAdapter'
s.version = '4.9.1.0'
s.platform = :ios, '9.0'
s.version = '4.9.2.0'
s.platform = :ios, '10.0'
s.summary = 'Unity 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 @@ -26,7 +26,7 @@ s.source =

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

s.dependency 'UnityAds', '= 4.9.1'
s.dependency 'UnityAds', '= 4.9.2'
s.dependency 'AppLovinSDK'
s.swift_version = '5.0'

Expand Down
4 changes: 4 additions & 0 deletions UnityAds/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 4.9.2.0
* Certified with UnityAds SDK 4.9.2.
* Update the minimum required iOS version to 10.0 in Pod Spec to match UnityAds SDK.

## 4.9.1.0
* Certified with UnityAds SDK 4.9.1.

Expand Down
8 changes: 4 additions & 4 deletions UnityAds/UnityAdsAdapter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,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 = 10.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -329,7 +329,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 = 10.0;
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = NO;
SDKROOT = iphoneos;
Expand All @@ -346,7 +346,7 @@
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = X8JXXK4FF5;
ENABLE_BITCODE = NO;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -364,7 +364,7 @@
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = X8JXXK4FF5;
ENABLE_BITCODE = NO;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
8 changes: 4 additions & 4 deletions UnityAds/UnityAdsAdapter/ALUnityAdsMediationAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import "ALUnityAdsMediationAdapter.h"
#import <UnityAds/UnityAds.h>

#define ADAPTER_VERSION @"4.9.1.0"
#define ADAPTER_VERSION @"4.9.2.0"

@interface ALUnityAdsInitializationDelegate : NSObject <UnityAdsInitializationDelegate>
@property (nonatomic, weak) ALUnityAdsMediationAdapter *parentAdapter;
Expand Down Expand Up @@ -397,15 +397,15 @@ - (void)updatePrivacyConsent:(id<MAAdapterParameters>)parameters
{
UADSMetaData *privacyConsentMetaData = [[UADSMetaData alloc] init];
NSNumber *hasUserConsent = [parameters hasUserConsent];
if ( hasUserConsent )
if ( hasUserConsent != nil )
{
[privacyConsentMetaData set: @"gdpr.consent" value: @(hasUserConsent.boolValue)];
[privacyConsentMetaData commit];
}

// CCPA compliance - https://unityads.unity3d.com/help/legal/gdpr
NSNumber *isDoNotSell = [parameters isDoNotSell];
if ( isDoNotSell )
if ( isDoNotSell != nil )
{
[privacyConsentMetaData set: @"privacy.consent" value: @(!isDoNotSell.boolValue)]; // isDoNotSell means user has opted out and is equivalent to NO.
[privacyConsentMetaData commit];
Expand All @@ -415,7 +415,7 @@ - (void)updatePrivacyConsent:(id<MAAdapterParameters>)parameters
[privacyConsentMetaData commit];

NSNumber *isAgeRestrictedUser = [parameters isAgeRestrictedUser];
if ( isAgeRestrictedUser )
if ( isAgeRestrictedUser != nil )
{
[privacyConsentMetaData set: @"user.nonbehavioral" value: @(isAgeRestrictedUser.boolValue)];
[privacyConsentMetaData commit];
Expand Down

0 comments on commit 54d5b92

Please sign in to comment.