Skip to content

Commit a3ddd8c

Browse files
authored
feat: add option to exclude dir from app-thinning-catalog (#581)
1 parent 54c9eb0 commit a3ddd8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/tiappxml.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ function toXml(dom, parent, name, value) {
7070
break;
7171

7272
case 'ios':
73+
if (Object.prototype.hasOwnProperty.call(value, 'exclude-dir-from-asset-catalog')) {
74+
dom.create('exclude-dir-from-asset-catalog', { nodeValue: !!value['exclude-dir-from-asset-catalog'] }, node);
75+
}
76+
7377
if (Object.prototype.hasOwnProperty.call(value, 'enable-launch-screen-storyboard')) {
7478
dom.create('enable-launch-screen-storyboard', { nodeValue: !!value['enable-launch-screen-storyboard'] }, node);
7579
}
@@ -443,6 +447,7 @@ function toJS(obj, doc) {
443447
var ios = obj.ios = {};
444448
xml.forEachElement(node, function (elem) {
445449
switch (elem.tagName) {
450+
case 'exclude-dir-from-asset-catalog':
446451
case 'enable-launch-screen-storyboard':
447452
case 'enablecoverage':
448453
case 'enablemdfind':

0 commit comments

Comments
 (0)