1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | function getName(config) {
|
4 | return typeof config.name === 'string' ? config.name : null;
|
5 | }
|
6 | exports.getName = getName;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | function setDisplayName(configOrName, infoPlist) {
|
12 | let name = null;
|
13 | if (typeof configOrName === 'string') {
|
14 | name = configOrName;
|
15 | }
|
16 | else {
|
17 | name = getName(configOrName);
|
18 | }
|
19 | if (!name) {
|
20 | return infoPlist;
|
21 | }
|
22 | return Object.assign(Object.assign({}, infoPlist), { CFBundleDisplayName: name });
|
23 | }
|
24 | exports.setDisplayName = setDisplayName;
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | function setName(config, infoPlist) {
|
30 | let name = getName(config);
|
31 | if (!name) {
|
32 | return infoPlist;
|
33 | }
|
34 | return Object.assign(Object.assign({}, infoPlist), { CFBundleName: name });
|
35 | }
|
36 | exports.setName = setName;
|
37 |
|
\ | No newline at end of file |