xref: /expo/packages/expo-dev-client/plugin/build/withGeneratedIosScheme.js (revision 8a78d98e)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3    return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6exports.setGeneratedIosScheme = exports.withGeneratedIosScheme = void 0;
7const config_plugins_1 = require("@expo/config-plugins");
8const getDefaultScheme_1 = __importDefault(require("./getDefaultScheme"));
9const withGeneratedIosScheme = (config) => {
10    return (0, config_plugins_1.withInfoPlist)(config, (config) => {
11        config.modResults = setGeneratedIosScheme(config, config.modResults);
12        return config;
13    });
14};
15exports.withGeneratedIosScheme = withGeneratedIosScheme;
16function setGeneratedIosScheme(config, infoPlist) {
17    // Generate a cross-platform scheme used to launch the dev client.
18    const scheme = (0, getDefaultScheme_1.default)(config);
19    if (!config_plugins_1.IOSConfig.Scheme.hasScheme(scheme, infoPlist)) {
20        infoPlist = config_plugins_1.IOSConfig.Scheme.appendScheme(scheme, infoPlist);
21    }
22    return infoPlist;
23}
24exports.setGeneratedIosScheme = setGeneratedIosScheme;
25

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026