"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const lib_1 = require("../../lib");
const angular_utility_1 = require("../../lib/angular-utility");
/**
 * https://github.com/bamlab/fastlane-plugin-cordova
 * https://ionic.zone/fastlane/build-your-project-with-cordova-plugin
 * @param _options
 */
function default_1(_options) {
    return (tree, _context) => {
        let sourceTemplates = schematics_1.url('files');
        let project = lib_1.loadProject(tree, _context);
        lib_1.shell.execSync('fastlane init');
        lib_1.shell.execSync('fastlane add_plugin cordova');
        return angular_utility_1.applyWithOverwriteRule(sourceTemplates, [
            schematics_1.template(Object.assign({}, project.toTemplate(), { shortDescription: '', fullDescription: '' })),
        ], _options.overwrite);
    };
}
exports.default = default_1;
//# sourceMappingURL=index.js.map