react-native-vision-camera
Version:
A powerful, high-performance React Native Camera library.
16 lines (15 loc) • 678 B
JavaScript
import { withDangerousMod } from '@expo/config-plugins';
import { writeToPodfile } from './writeToPodfile';
/**
* Set the `enableLocation` flag inside of the XcodeProject.
* This is used to enable location APIs.
* If location is disabled, the CLLocation APIs are not used in the codebase.
* This is useful if you don't use Location and apple review is unhappy about CLLocation usage.
*/
export const withEnableLocationIOS = (c, enableLocation) => {
return withDangerousMod(c, ['ios', config => {
writeToPodfile(config.modRequest.projectRoot, '$VCEnableLocation', String(enableLocation));
return config;
}]);
};
//# sourceMappingURL=withEnableLocationIOS.js.map