@anwar1909/react-native-background-geolocation
Version:
Optimized background location tracking
17 lines (13 loc) • 511 B
JavaScript
const fs = require('fs');
const config = require('./config');
function forAndroid() {
const installPattern = new RegExp(`(include)\\s\\\':${config.commonModuleName}\\\'`);
const settingsGradle = fs.readFileSync(config.settingsGradlePath);
return installPattern.test(settingsGradle);
}
function forIos() {
// currently we only change Info.plist and changes are only applied when necessary
// no need to do check, so returning false here
return false;
}
module.exports = { forAndroid, forIos };