Skip to content

Commit

Permalink
chore: add af_currency to eventValue root via config (#1368)
Browse files Browse the repository at this point in the history
Co-authored-by: Krishna Chaitanya <[email protected]>
  • Loading branch information
yashasvibajpai and krishna2020 authored May 16, 2024
1 parent 194c7f5 commit 9279fc6
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/configurations/destinations/af/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"sharingFilter",
"useRichEventName",
"addPropertiesAtRoot",
"afCurrencyAtRoot",
"androidAppId",
"appleAppId",
"blacklistedEvents",
Expand Down
1 change: 1 addition & 0 deletions src/configurations/destinations/af/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"useRichEventName": { "type": "boolean", "default": false },
"addPropertiesAtRoot": { "type": "boolean", "default": false },
"afCurrencyAtRoot": { "type": "boolean", "default": false },
"sharingFilter": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
Expand Down
15 changes: 15 additions & 0 deletions src/configurations/destinations/af/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@
"footerNote": "To send the custom properties to the root of eventValue.",
"default": false
},
{
"type": "checkbox",
"label": "Add af_currency to root of eventValue",
"value": "afCurrencyAtRoot",
"footerNote": "af_currency is added at the root of eventValue, outside properties object.",
"default": false,
"preRequisites": {
"featureFlags": [
{
"configKey": "AMP_appsflyer_add_prop_to_root",
"value": true
}
]
}
},
{
"type": "textInput",
"label": "Sharing Filter",
Expand Down
16 changes: 16 additions & 0 deletions test/data/validation/destinations/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,21 @@
},
"result": false,
"err": ["consentManagement.android.0.provider must be equal to one of the allowed values"]
},
{
"config": {
"devKey": "KPH1PgXXXXt12LgFnQ8EI",
"useRichEventName": false,
"sharingFilter": "all",
"useNativeSDK": {
"reactnative": false
},
"afCurrencyAtRoot": {
"android": true
},
"appleAppId": "1565920403"
},
"result": false,
"err": ["afCurrencyAtRoot must be boolean"]
}
]

0 comments on commit 9279fc6

Please sign in to comment.