Skip to content

Commit

Permalink
feat: add sprig mobile device mode support (#1764)
Browse files Browse the repository at this point in the history
  • Loading branch information
1abhishekpandey authored Oct 24, 2024
1 parent 0de7e21 commit 8f81c06
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/configurations/destinations/sprig/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
],
"excludeKeys": [],
"supportedConnectionModes": {
"android": ["cloud"],
"ios": ["cloud"],
"android": ["cloud", "device"],
"ios": ["cloud", "device"],
"web": ["device", "cloud"],
"unity": ["cloud"],
"amp": ["cloud"],
Expand Down Expand Up @@ -57,12 +57,14 @@
"ketchConsentPurposes"
],
"android": [
"useNativeSDK",
"connectionMode",
"consentManagement",
"oneTrustCookieCategories",
"ketchConsentPurposes"
],
"ios": [
"useNativeSDK",
"connectionMode",
"consentManagement",
"oneTrustCookieCategories",
Expand Down
10 changes: 8 additions & 2 deletions src/configurations/destinations/sprig/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"properties": {
"web": {
"type": "boolean"
},
"android": {
"type": "boolean"
},
"ios": {
"type": "boolean"
}
}
},
Expand All @@ -17,11 +23,11 @@
"properties": {
"android": {
"type": "string",
"enum": ["cloud"]
"enum": ["cloud", "device"]
},
"ios": {
"type": "string",
"enum": ["cloud"]
"enum": ["cloud", "device"]
},
"web": {
"type": "string",
Expand Down
15 changes: 14 additions & 1 deletion src/configurations/destinations/sprig/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,21 @@
{
"configKey": "connectionModes.webDevice",
"value": true
},
{
"configKey": "connectionModes.mobileDevice",
"value": true
},
{
"configKey": "connectionMode.android",
"value": "device"
},
{
"configKey": "connectionMode.ios",
"value": "device"
}
]
],
"condition": "or"
}
}
]
Expand Down

0 comments on commit 8f81c06

Please sign in to comment.