expo-pod-pinner
Version:
The Pod Pinner plugin allows you to modify your Podfile in a managed workflow.
26 lines (25 loc) • 683 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PLUGIN_PROPS = exports.isSpecEntry = exports.isPodEntry = void 0;
function isPodEntry(entry) {
if (typeof entry !== "object") {
return false;
}
for (const [podName, version] of Object.entries(entry)) {
if (typeof podName !== "string" || typeof version !== "string") {
return false;
}
}
return true;
}
exports.isPodEntry = isPodEntry;
function isSpecEntry(entry) {
// Spec and Pod have the same types
return isPodEntry(entry);
}
exports.isSpecEntry = isSpecEntry;
exports.PLUGIN_PROPS = [
"targetName",
"pods",
"specs",
];