expo-pod-pinner
Version:
The Pod Pinner plugin allows you to modify your Podfile in a managed workflow.
15 lines (14 loc) • 557 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const withPodPinnerIos_1 = require("./withPodPinnerIos");
const helpers_1 = require("../support/helpers");
const withPodPinner = (config, props) => {
// if props are undefined, throw error
if (!props) {
throw new Error('You are trying to use the Pod Pinner plugin without any props.');
}
(0, helpers_1.validatePluginProps)(props);
config = (0, withPodPinnerIos_1.withPodPinnerIos)(config, props);
return config;
};
exports.default = withPodPinner;