simform-pocket-cli
Version:
Pocket Deploy command-line utility
23 lines • 719 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getApkName = void 0;
const AppConst_1 = __importDefault(require("./AppConst"));
/**
* Gets the app name from the label.
* @param {string | string[]} label - The label to get the app name.
*/
const getApkName = (label) => {
if (Array.isArray(label)) {
return label?.[0];
}
else if (typeof label === 'string') {
return label;
}
else
return AppConst_1.default.appDefaultName;
};
exports.getApkName = getApkName;
//# sourceMappingURL=CommonUtils.js.map