react-native/local-cli/link/android/isInstalled.js

9 lines
245 B
JavaScript

const fs = require('fs');
const makeBuildPatch = require('./patches/makeBuildPatch');
module.exports = function isInstalled(config, name) {
return fs
.readFileSync(config.buildGradlePath)
.indexOf(makeBuildPatch(name).patch) > -1;
};