Skip to content

Commit

Permalink
SDK v7.6.2
Browse files Browse the repository at this point in the history
* commit 'f5a6c2d7d011de486ba740df8f93716300f4dff2':
  SDK release 7.6.2
  Implement AppTrackingTransparency framework for iOS 14 Official release
  • Loading branch information
asharmaa committed Sep 17, 2020
2 parents 615eb19 + f5a6c2d commit e2c1e0c
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AppNexusSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "AppNexusSDK"
s.version = "7.6.1"
s.version = "7.6.2"
s.platform = :ios, "9.0"

s.summary = "AppNexus iOS Mobile Advertising SDK"
Expand Down
7 changes: 7 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 7.6.2
### New Feature
+ MS-4433: Support for determining app-tracking permission status based on trackingAuthorizationStatus enum values (authorized, denied) [https://wiki.xandr.com/x/3Ie1Bg]

### Improvements/Bug Fixes
+ MS-4523: Changed sizesThatShouldConstrainToSuperview to a block (Github #54)

## 7.6.1
### Improvements/Bug Fixes
+ MS-4520: Rollback iOS 14 AppTrackingTransparency changes (Please refer https://wiki.xandr.com/x/3Ie1Bg for the latest updates on Xandr Mobile SDK's support for iOS 14)
Expand Down
8 changes: 4 additions & 4 deletions sdk/AppNexusSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
MARKETING_VERSION = 7.6.1;
MARKETING_VERSION = 7.6.2;
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_BUNDLE_IDENTIFIER = "corp.appnexus.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1563,7 +1563,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
MARKETING_VERSION = 7.6.1;
MARKETING_VERSION = 7.6.2;
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = "corp.appnexus.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1715,7 +1715,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
MARKETING_VERSION = 7.6.1;
MARKETING_VERSION = 7.6.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.appnexus.AppNexusNativeSDK;
Expand Down Expand Up @@ -1760,7 +1760,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
MARKETING_VERSION = 7.6.1;
MARKETING_VERSION = 7.6.2;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.appnexus.AppNexusNativeSDK;
Expand Down
2 changes: 1 addition & 1 deletion sdk/sourcefiles/internal/ANGlobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define AN_ERROR_TABLE @"errors"

#define AN_DEFAULT_PLACEMENT_ID @"default_placement_id"
#define AN_SDK_VERSION @"7.6.1"
#define AN_SDK_VERSION @"7.6.2"


#define APPNEXUS_BANNER_SIZE CGSizeMake(320, 50)
Expand Down
15 changes: 14 additions & 1 deletion sdk/sourcefiles/internal/ANUniversalTagRequestBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
#import "ANMultiAdRequest+PrivateMethods.h"
#import "ANSDKSettings.h"
#import "ANOMIDImplementation.h"
#if __has_include(<AppTrackingTransparency/AppTrackingTransparency.h>)
#import <AppTrackingTransparency/AppTrackingTransparency.h>
#endif

#pragma mark - Private constants.

Expand Down Expand Up @@ -621,7 +624,17 @@ -(void)getAdFramework:(NSMutableDictionary *)tag{


//
deviceDict[@"limit_ad_tracking"] = [NSNumber numberWithBool:!ANAdvertisingTrackingEnabled()];
if (@available(iOS 14, *)) {
#if __has_include(<AppTrackingTransparency/AppTrackingTransparency.h>)
if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized){
deviceDict[@"limit_ad_tracking"] = [NSNumber numberWithBool:false];
}else if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusDenied){
deviceDict[@"limit_ad_tracking"] = [NSNumber numberWithBool:true];
}
#endif
}else{
deviceDict[@"limit_ad_tracking"] = [NSNumber numberWithBool:!ANAdvertisingTrackingEnabled()];
}

NSDictionary<NSString *, id> *deviceId = [self deviceId];
if (deviceId) {
Expand Down

0 comments on commit e2c1e0c

Please sign in to comment.