UNPKG

@armanatz/expo-hms-location

Version:

Expo config plugin to configure @hmscore/react-native-hms-location on prebuild

20 lines (19 loc) 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_plugins_1 = require("expo/config-plugins"); const actions_1 = require("./actions"); function withHMSLocation(config, options) { const { agConnectServicesFile, isBackgroundLocationEnabled, enableBouncyCastleFix, } = options; if (agConnectServicesFile) { config = (0, actions_1.withAGConnectServicesFile)(config, agConnectServicesFile); config = (0, actions_1.withManifestAppId)(config, agConnectServicesFile); } else { console.error('!! withHMSLocationAndroid: agConnectServicesFile is not provided. Ignore this message if you see it while running expo-doctor. Otherwise, please provide the path to your agconnect-services.json file !!'); } config = (0, actions_1.withLocationPermissions)(config, isBackgroundLocationEnabled); config = (0, actions_1.withMavenRepo)(config); config = (0, actions_1.withHMSLocationSDK)(config, enableBouncyCastleFix); return config; } exports.default = (0, config_plugins_1.createRunOncePlugin)(withHMSLocation, '@armanatz/expo-hms-location', '1.0.0');