GT2/GT2-iOS/node_modules/react-native/local-cli/link/android/patches/makeBuildPatch.js

12 lines
288 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
module.exports = function makeBuildPatch(name) {
const installPattern = new RegExp(
`\\s{4}(compile)(\\(|\\s)(project)\\(\\\':${name}\\\'\\)(\\)|\\s)`
);
return {
installPattern,
pattern: /[^ \t]dependencies {\n/,
patch: ` compile project(':${name}')\n`
};
};