UNPKG

react-native-keys

Version:
20 lines (19 loc) 761 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withAndroidGradleProperties = void 0; const config_plugins_1 = require("@expo/config-plugins"); const PICK_FIRST_KEY = 'android.packagingOptions.pickFirsts'; const withAndroidGradleProperties = (config) => { return (0, config_plugins_1.withGradleProperties)(config, (config) => { const pickFirst = config.modResults.find((item) => item.key === PICK_FIRST_KEY); if (!pickFirst) { config.modResults.push({ type: 'property', key: PICK_FIRST_KEY, value: '**/libcrypto.so', }); } return config; }); }; exports.withAndroidGradleProperties = withAndroidGradleProperties;