UNPKG

@anwar1909/react-native-background-geolocation

Version:
23 lines (19 loc) 781 B
const path = require('path'); const config = require('./config'); const isInstalled = require('./isInstalled'); if (isInstalled.forAndroid()) { const revokePatch = require('@react-native-community/cli/build/commands/link/android/patches/revokePatch').default; const makeSettingsPatch = require('@react-native-community/cli/build/commands/link/android/patches/makeSettingsPatch').default; revokePatch( config.settingsGradlePath, makeSettingsPatch( config.commonModuleName, { sourceDir: path.join(config.moduleDir, 'android', config.commonModuleDir) }, config ) ); } if (isInstalled.forIos()) { // we should remove background modes and usage descriptions here // It will destroy all project customizations, so we rather leave it as is. }