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

8 lines
271 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
const fs = require('fs');
const makeBuildPatch = require('./patches/makeBuildPatch');
module.exports = function isInstalled(config, name) {
const buildGradle = fs.readFileSync(config.buildGradlePath);
return makeBuildPatch(name).installPattern.test(buildGradle);
};