Skip to content

Commit

Permalink
feat: added GCM support for 5 destinations - Batch 13 (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnab-p authored Jun 20, 2024
1 parent 55af8c7 commit af7909f
Show file tree
Hide file tree
Showing 16 changed files with 2,375 additions and 56 deletions.
7 changes: 4 additions & 3 deletions src/configurations/destinations/lotame_mobile/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"blacklistedEvents",
"whitelistedEvents",
"eventFilteringOption",
"oneTrustCookieCategories"
"oneTrustCookieCategories",
"consentManagement"
],
"excludeKeys": [],
"supportedSourceTypes": ["android", "ios"],
Expand All @@ -29,8 +30,8 @@
"eventFilteringOption",
"oneTrustCookieCategories"
],
"android": ["useNativeSDK", "connectionMode"],
"ios": ["useNativeSDK", "connectionMode"]
"android": ["useNativeSDK", "connectionMode", "consentManagement"],
"ios": ["useNativeSDK", "connectionMode", "consentManagement"]
},
"secretKeys": []
}
Expand Down
93 changes: 92 additions & 1 deletion src/configurations/destinations/lotame_mobile/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,98 @@
"label": "Category ID",
"required": false
}
]
],
"preRequisites": {
"featureFlags": [
{
"configKey": "AMP_enable-gcm",
"value": false
},
{
"configKey": "AMP_enable-gcm"
}
],
"featureFlagsCondition": "or"
}
},
{
"type": "dynamicCustomForm",
"value": "consentManagement",
"label": "Consent management settings",
"footerNote": "The support for category names is deprecated. We recommend using the category IDs instead of the names as IDs are unique and less likely to change over time, making them a more reliable choice.",
"customFields": [
{
"type": "singleSelect",
"label": "Consent management provider",
"value": "provider",
"options": [
{
"name": "Custom",
"value": "custom"
},
{
"name": "Ketch",
"value": "ketch"
},
{
"name": "OneTrust",
"value": "oneTrust"
}
],
"defaultOption": {
"name": "OneTrust",
"value": "oneTrust"
},
"required": true
},
{
"type": "singleSelect",
"label": "the required consent logic",
"value": "resolutionStrategy",
"options": [
{
"name": "AND",
"value": "and"
},
{
"name": "OR",
"value": "or"
}
],
"required": true,
"variant": "badge",
"preRequisites": {
"fields": [
{
"configKey": "provider",
"value": "custom"
}
]
}
},
{
"type": "dynamicCustomForm",
"value": "consents",
"label": "Enter consent category ID’s",
"customFields": [
{
"type": "textInput",
"placeholder": "Marketing",
"value": "consent",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$",
"required": false
}
]
}
],
"preRequisites": {
"featureFlags": [
{
"configKey": "AMP_enable-gcm",
"value": true
}
]
}
}
]
}
Expand Down
32 changes: 20 additions & 12 deletions src/configurations/destinations/lytics/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"blacklistedEvents",
"whitelistedEvents",
"oneTrustCookieCategories",
"eventFilteringOption"
"eventFilteringOption",
"consentManagement"
],
"excludeKeys": [],
"supportedSourceTypes": [
Expand Down Expand Up @@ -55,17 +56,24 @@
"eventFilteringOption",
"oneTrustCookieCategories"
],
"web": ["useNativeSDK", "accountId", "blockload", "loadid", "connectionMode"],
"android": ["connectionMode"],
"ios": ["connectionMode"],
"unity": ["connectionMode"],
"amp": ["connectionMode"],
"cloud": ["connectionMode"],
"warehouse": ["connectionMode"],
"reactnative": ["connectionMode"],
"flutter": ["connectionMode"],
"cordova": ["connectionMode"],
"shopify": ["connectionMode"]
"web": [
"useNativeSDK",
"accountId",
"blockload",
"loadid",
"connectionMode",
"consentManagement"
],
"android": ["connectionMode", "consentManagement"],
"ios": ["connectionMode", "consentManagement"],
"unity": ["connectionMode", "consentManagement"],
"amp": ["connectionMode", "consentManagement"],
"cloud": ["connectionMode", "consentManagement"],
"warehouse": ["connectionMode", "consentManagement"],
"reactnative": ["connectionMode", "consentManagement"],
"flutter": ["connectionMode", "consentManagement"],
"cordova": ["connectionMode", "consentManagement"],
"shopify": ["connectionMode", "consentManagement"]
},
"secretKeys": ["apiKey"]
}
Expand Down
93 changes: 92 additions & 1 deletion src/configurations/destinations/lytics/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,98 @@
"label": "Category ID",
"required": false
}
]
],
"preRequisites": {
"featureFlags": [
{
"configKey": "AMP_enable-gcm",
"value": false
},
{
"configKey": "AMP_enable-gcm"
}
],
"featureFlagsCondition": "or"
}
},
{
"type": "dynamicCustomForm",
"value": "consentManagement",
"label": "Consent management settings",
"footerNote": "The support for category names is deprecated. We recommend using the category IDs instead of the names as IDs are unique and less likely to change over time, making them a more reliable choice.",
"customFields": [
{
"type": "singleSelect",
"label": "Consent management provider",
"value": "provider",
"options": [
{
"name": "Custom",
"value": "custom"
},
{
"name": "Ketch",
"value": "ketch"
},
{
"name": "OneTrust",
"value": "oneTrust"
}
],
"defaultOption": {
"name": "OneTrust",
"value": "oneTrust"
},
"required": true
},
{
"type": "singleSelect",
"label": "the required consent logic",
"value": "resolutionStrategy",
"options": [
{
"name": "AND",
"value": "and"
},
{
"name": "OR",
"value": "or"
}
],
"required": true,
"variant": "badge",
"preRequisites": {
"fields": [
{
"configKey": "provider",
"value": "custom"
}
]
}
},
{
"type": "dynamicCustomForm",
"value": "consents",
"label": "Enter consent category ID’s",
"customFields": [
{
"type": "textInput",
"placeholder": "Marketing",
"value": "consent",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$",
"required": false
}
]
}
],
"preRequisites": {
"featureFlags": [
{
"configKey": "AMP_enable-gcm",
"value": true
}
]
}
}
]
}
Expand Down
24 changes: 12 additions & 12 deletions src/configurations/destinations/mailchimp/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"supportsVisualMapper": true,
"transformAtV1": "router",
"saveDestinationResponse": true,
"includeKeys": ["oneTrustCookieCategories"],
"includeKeys": ["oneTrustCookieCategories", "consentManagement"],
"excludeKeys": [],
"supportedSourceTypes": [
"android",
Expand Down Expand Up @@ -43,17 +43,17 @@
"enableMergeFields",
"oneTrustCookieCategories"
],
"android": ["connectionMode"],
"ios": ["connectionMode"],
"web": ["connectionMode"],
"unity": ["connectionMode"],
"amp": ["connectionMode"],
"cloud": ["connectionMode"],
"warehouse": ["connectionMode"],
"reactnative": ["connectionMode"],
"flutter": ["connectionMode"],
"cordova": ["connectionMode"],
"shopify": ["connectionMode"]
"android": ["connectionMode", "consentManagement"],
"ios": ["connectionMode", "consentManagement"],
"web": ["connectionMode", "consentManagement"],
"unity": ["connectionMode", "consentManagement"],
"amp": ["connectionMode", "consentManagement"],
"cloud": ["connectionMode", "consentManagement"],
"warehouse": ["connectionMode", "consentManagement"],
"reactnative": ["connectionMode", "consentManagement"],
"flutter": ["connectionMode", "consentManagement"],
"cordova": ["connectionMode", "consentManagement"],
"shopify": ["connectionMode", "consentManagement"]
},
"secretKeys": ["apiKey"]
}
Expand Down
Loading

0 comments on commit af7909f

Please sign in to comment.