UNPKG

@embrace-io/react-native

Version:
30 lines (29 loc) 958 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const wizard_1 = require("../util/wizard"); const EmbraceLogger_1 = require("../../src/utils/EmbraceLogger"); const ios_1 = require("./ios"); const common_1 = require("./common"); const IOS_REGISTER_FIELDS = [ common_1.iosAppID, common_1.apiToken, common_1.iosProjectFolderName, common_1.packageJSON, ]; const IOS_STEPS = [ ios_1.addEmbraceInitializerSwift, ios_1.iosInitializeEmbrace, ios_1.iOSPodfilePatch, ios_1.iosPodfileKSCrashPatch, ios_1.patchXcodeBundlePhase, ios_1.addUploadBuildPhase, ]; const logger = new EmbraceLogger_1.default(console); logger.log("Initializing Setup Wizard for iOS"); const run = () => { const wizard = new wizard_1.default(); IOS_REGISTER_FIELDS.forEach(field => wizard.registerField(field)); IOS_STEPS.forEach(step => wizard.registerStep(step)); wizard.runSteps(); }; exports.default = run;