@capillarytech/creatives-library 8.0.107 → 8.0.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.107",
4
+ "version": "8.0.108",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -740,7 +740,10 @@ export class Creatives extends React.Component {
740
740
  forEach(androidContent.custom, (customKeyValue) => {
741
741
  custom[customKeyValue.key] = customKeyValue.value;
742
742
  });
743
- androidContent.custom = custom;
743
+ //skipping it for MPUSH as custom key is already in the reqd format for hydra sdk
744
+ if (channel !== constants.MOBILE_PUSH) {
745
+ androidContent.custom = custom;
746
+ }
744
747
  templateData.androidContent = androidContent;
745
748
  templateData.androidContent.type = get(channelTemplate, 'definition.mode', '').toUpperCase();
746
749
  templateData.androidContent.deviceType = 'ANDROID';
@@ -756,7 +759,10 @@ export class Creatives extends React.Component {
756
759
  forEach(iosContent.custom, (customKeyValue) => {
757
760
  custom[customKeyValue.key] = customKeyValue.value;
758
761
  });
759
- iosContent.custom = custom;
762
+ //skipping it for MPUSH as custom key is already in the reqd format for hydra sdk
763
+ if (channel !== constants.MOBILE_PUSH) {
764
+ iosContent.custom = custom;
765
+ }
760
766
  templateData.iosContent = iosContent;
761
767
  templateData.iosContent.type = get(channelTemplate, 'definition.mode').toUpperCase();
762
768
  templateData.iosContent.deviceType = IOS.toUpperCase();