Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
Summary: Bug Fix

Differential Revision: D54789818

fbshipit-source-id: 3725463a1e69b742bff6957d5e4e7a398af9b138
  • Loading branch information
ryantobinmeta authored and facebook-github-bot committed Mar 12, 2024
1 parent 86105db commit 0ce95c9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ - (void)processLoadRequestResponse:(id)result error:(nullable NSError *)error
}

NSDictionary<NSString *, id> *resultDictionary = [FBSDKTypeUtility dictionaryValue:result];
NSDictionary<NSString *, id> *domainInfoField = [FBSDKTypeUtility dictionaryValue:resultDictionary[DOMAIN_CONFIGURATION_DOMAIN_INFO_FIELD]];
NSArray<NSDictionary<NSString *, id> *> *domainInfoDataArray = [FBSDKTypeUtility arrayValue:domainInfoField[@"data"]];
NSArray<NSDictionary<NSString *, id> *> *domainInfoDataArray = [FBSDKTypeUtility arrayValue:resultDictionary[@"data"]];
NSDictionary<NSString *, id> *endpoints = [FBSDKTypeUtility array:domainInfoDataArray objectAtIndex:0];
NSArray<NSDictionary<NSString *, id> *> *domainInfoArray = [FBSDKTypeUtility arrayValue:endpoints[@"endpoints"]];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,36 @@ final class DomainConfigurationManagerTests: XCTestCase {
// swiftlint:enable implicitly_unwrapped_optional

let sampleResult: [String: Any] = [
"id": 2020399148181142,
"server_domain_infos": [
"data": [
[
"endpoints": [
[
"key": "activities",
"value": [
"att_opt_in_domain_prefix": kEndpoint1URLPrefix,
"att_opt_out_domain_prefix": kEndpoint2URLPrefix,
],
"data": [
[
"endpoints": [
[
"key": "activities",
"value": [
"att_opt_in_domain_prefix": kEndpoint1URLPrefix,
"att_opt_out_domain_prefix": kEndpoint2URLPrefix,
],
[
"key": "custom_audience_third_party_id",
"value": [
"att_opt_in_domain_prefix": kEndpoint1URLPrefix,
"att_opt_out_domain_prefix": kEndpoint1URLPrefix,
],
],
[
"key": "custom_audience_third_party_id",
"value": [
"att_opt_in_domain_prefix": kEndpoint1URLPrefix,
"att_opt_out_domain_prefix": kEndpoint1URLPrefix,
],
[
"key": "app_indexing_session",
"value": [
"att_opt_in_domain_prefix": kEndpoint1URLPrefix,
"att_opt_out_domain_prefix": kEndpoint1URLPrefix,
],
],
[
"key": "app_indexing_session",
"value": [
"att_opt_in_domain_prefix": kEndpoint1URLPrefix,
"att_opt_out_domain_prefix": kEndpoint1URLPrefix,
],
[
"key": "default_config",
"value": [
"default_domain_prefix": kEndpoint2URLPrefix,
"default_alternative_domain_prefix": kEndpoint1URLPrefix,
"enable_for_early_versions": false,
],
],
[
"key": "default_config",
"value": [
"default_domain_prefix": kEndpoint2URLPrefix,
"default_alternative_domain_prefix": kEndpoint1URLPrefix,
"enable_for_early_versions": false,
],
],
],
Expand Down

0 comments on commit 0ce95c9

Please sign in to comment.