Skip to content

Commit

Permalink
add useNewJSONSource support to get new source
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaykumar0339 committed Dec 21, 2024
1 parent bf5e5be commit 55c217e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/commands/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const commands = {
} = await this.settings.getSettings();
const hasExcludedAttributes = _.isString(excludedAttributes) && !_.isEmpty(excludedAttributes);
if (useNewJSONSource) {
return await this.mobileGetSource('newJson');
const srcTree = await this.mobileGetSource('newJson');
return getSourceXml(getTreeForXML(srcTree));
}
else if (useJSONSource) {
const srcTree = await this.mobileGetSource('json', hasExcludedAttributes ? excludedAttributes : undefined);
Expand Down

0 comments on commit 55c217e

Please sign in to comment.