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

9 lines
178 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
const fs = require('fs');
module.exports = function revokePatch(file, patch) {
fs.writeFileSync(file, fs
.readFileSync(file, 'utf8')
.replace(patch.patch, '')
);
};