amis-rpc-design/node_modules/@react-native-community/cli-platform-ios/build/tools/getConfigurationScheme.js
2023-10-07 19:42:30 +08:00

22 lines
596 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getConfigurationScheme = getConfigurationScheme;
var _getBuildConfigurationFromXcScheme = require("./getBuildConfigurationFromXcScheme");
function getConfigurationScheme({
scheme,
mode
}, sourceDir) {
if (scheme && mode) {
return mode;
}
const configuration = mode || 'Debug';
if (scheme) {
return (0, _getBuildConfigurationFromXcScheme.getBuildConfigurationFromXcScheme)(scheme, configuration, sourceDir);
}
return configuration;
}
//# sourceMappingURL=getConfigurationScheme.ts.map