GT2/GT2-iOS/node_modules/react-native/local-cli/link/windows/patches/makeSolutionPatch.js

13 lines
429 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
module.exports = function makeSolutionPatch(windowsConfig) {
const solutionInsert = `Project("{${windowsConfig.projectGUID.toUpperCase()}}") = "${windowsConfig.projectName}", "${windowsConfig.relativeProjPath}", "{${windowsConfig.pathGUID.toUpperCase()}}"
EndProject
`;
return {
pattern: 'Global',
patch: solutionInsert,
unpatch: new RegExp(`Project.+${windowsConfig.projectName}.+\\s+EndProject\\s+`),
};
};