-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge in MOBILE-SDK/app_mobile-sdk-ios from v8.11.0 to master * commit '813547c7007981c4580d078557a119c9a64e2cc7': Updated SDK version Pull request #946: 6273926 [iOS] Added DSA Support Readme file udpate ios Fixed framework build issue
- Loading branch information
Showing
26 changed files
with
637 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Pod::Spec.new do |s| | ||
|
||
s.name = "AppNexusSDK" | ||
s.version = "8.10.2" | ||
s.version = "8.11.0" | ||
s.platform = :ios, "12.0" | ||
|
||
s.summary = "AppNexus iOS Mobile Advertising SDK" | ||
|
@@ -10,7 +10,7 @@ Our mobile advertising SDK gives developers a fast and convenient way to monetiz | |
DESC | ||
|
||
s.homepage = "https://github.com/appnexus/mobile-sdk-ios" | ||
s.source = { :git => "https://github.com/appnexus/mobile-sdk-ios.git", :tag => "#{s.version}" } | ||
s.source = { :git => "https://github.com/appnexus/mobile-sdk-ios.git", :branch => "master" } | ||
s.author = { "AppNexus Mobile Engineering" => "[email protected]" } | ||
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" } | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* Copyright 2024 APPNEXUS INC | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#import "ANDSAResponseInfo.h" | ||
#import "ANDSATransparencyInfo.h" | ||
|
||
@implementation ANDSAResponseInfo | ||
|
||
/** | ||
* Process the DSA response from ad object. | ||
* | ||
* @param dsaObject NSDictionary that contains info of DSA. | ||
* @return ANDSAResponseInfo if no issue happened during processing. | ||
*/ | ||
+ (instancetype)dsaObjectFromAdObject:(NSDictionary *)dsaObject { | ||
if (!dsaObject || ![dsaObject isKindOfClass:[NSDictionary class]]) { | ||
return nil; | ||
} | ||
|
||
ANDSAResponseInfo *dsaResponseInfo = [[ANDSAResponseInfo alloc] init]; | ||
|
||
NSString *behalf = dsaObject[@"behalf"]; | ||
if (behalf && [behalf isKindOfClass:[NSString class]]) { | ||
dsaResponseInfo.behalf = behalf; | ||
} | ||
|
||
NSString *paid = dsaObject[@"paid"]; | ||
if (paid && [paid isKindOfClass:[NSString class]]) { | ||
dsaResponseInfo.paid = paid; | ||
} | ||
|
||
NSArray *transparencyArray = dsaObject[@"transparency"]; | ||
if (transparencyArray && [transparencyArray isKindOfClass:[NSArray class]]) { | ||
NSMutableArray<ANDSATransparencyInfo *> *transparencyList = [NSMutableArray array]; | ||
|
||
for (NSDictionary *transparencyObject in transparencyArray) { | ||
if ([transparencyObject isKindOfClass:[NSDictionary class]]) { | ||
NSString *domain = transparencyObject[@"domain"]; | ||
NSArray<NSNumber *> *dsaparams = transparencyObject[@"dsaparams"]; | ||
|
||
ANDSATransparencyInfo *transparencyInfo = [[ANDSATransparencyInfo alloc] initWithDomain:domain andDSAParams:dsaparams]; | ||
[transparencyList addObject:transparencyInfo]; | ||
} | ||
} | ||
|
||
dsaResponseInfo.transparencyList = transparencyList; | ||
} | ||
|
||
NSInteger adRender = [dsaObject[@"adrender"] intValue]; | ||
if (adRender >= 0) { | ||
dsaResponseInfo.adRender = adRender; | ||
} | ||
|
||
return dsaResponseInfo; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* Copyright 2024 APPNEXUS INC | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#import "ANDSASettings.h" | ||
|
||
@implementation ANDSASettings | ||
|
||
+ (instancetype)sharedInstance { | ||
static dispatch_once_t onceToken; | ||
static ANDSASettings *dsaSettingsInstance; | ||
dispatch_once(&onceToken, ^{ | ||
dsaSettingsInstance = [[ANDSASettings alloc] init]; | ||
dsaSettingsInstance.dsaRequired = -1; | ||
dsaSettingsInstance.pubRender = -1; | ||
dsaSettingsInstance.dataToPub = -1; | ||
}); | ||
return dsaSettingsInstance; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* Copyright 2024 APPNEXUS INC | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#import "ANDSATransparencyInfo.h" | ||
|
||
@implementation ANDSATransparencyInfo | ||
|
||
/** | ||
* Initializes an ANDSATransparencyInfo instance with the specified domain and DSA params. | ||
*/ | ||
- (instancetype)initWithDomain:(NSString *)domain andDSAParams:(NSArray<NSNumber *> *)dsaparams { | ||
self = [super init]; | ||
if (self) { | ||
_domain = domain; | ||
_dsaparams = dsaparams; | ||
} | ||
return self; | ||
} | ||
|
||
@end |
Oops, something went wrong.