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

9 lines
245 B
JavaScript
Raw Normal View History

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;
};