From a14a3d74882b6035b7d85137491f2dee4eabef6e Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 7 Feb 2024 15:57:13 -0800 Subject: [PATCH] Added prefix dma_ in constants and moved DMA params to user_data for /v2/events --- BranchSDK/BNCRequestFactory.m | 5 +++-- BranchSDK/BranchConstants.m | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/BranchSDK/BNCRequestFactory.m b/BranchSDK/BNCRequestFactory.m index 873dee64d..c1eb0f729 100644 --- a/BranchSDK/BNCRequestFactory.m +++ b/BranchSDK/BNCRequestFactory.m @@ -187,8 +187,6 @@ - (NSDictionary *)dataForEventWithEventDictionary:(NSMutableDictionary *)diction // TODO: refactor to simply request values for event [self addReferringURLsToJSON:json forEndpoint:@"/v2/event"]; - // Add DMA Compliance Params for Google - [self addDMAConsentParamsToJSON:json]; return json; } @@ -560,6 +558,9 @@ - (NSDictionary *)v2dictionary { dictionary[@"sdk"] = @"ios"; } + // Add DMA Compliance Params for Google + [self addDMAConsentParamsToJSON:dictionary]; + return dictionary; } diff --git a/BranchSDK/BranchConstants.m b/BranchSDK/BranchConstants.m index 14cdda7e4..764c9ffe3 100644 --- a/BranchSDK/BranchConstants.m +++ b/BranchSDK/BranchConstants.m @@ -162,7 +162,7 @@ NSString * const BRANCH_REQUEST_KEY_VALUE_POSTBACK_SEQUENCE_INDEX_1 = @"postback-sequence-index-1"; NSString * const BRANCH_REQUEST_KEY_VALUE_POSTBACK_SEQUENCE_INDEX_2 = @"postback-sequence-index-2"; -NSString * const BRANCH_REQUEST_KEY_EEA_REGION = @"eea_region"; -NSString * const BRANCH_REQUEST_KEY_AD_PEROSALIZATION_CONSENT = @"ad_personalization_consent"; -NSString * const BRANCH_REQUEST_KEY_AD_USER_DATA_USAGE_CONSENT = @"ad_user_data_usage_consent"; +NSString * const BRANCH_REQUEST_KEY_EEA_REGION = @"dma_eea_region"; +NSString * const BRANCH_REQUEST_KEY_AD_PEROSALIZATION_CONSENT = @"dma_ad_personalization_consent"; +NSString * const BRANCH_REQUEST_KEY_AD_USER_DATA_USAGE_CONSENT = @"dma_ad_user_data_usage_consent";