UNPKG

expo-finance-kit

Version:

Native Expo module for Apple FinanceKit - Access financial data from Apple Card and other accounts

21 lines (20 loc) 766 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withBackgroundModes = void 0; const config_plugins_1 = require("@expo/config-plugins"); const withBackgroundModes = (config, { backgroundModes }) => { return (0, config_plugins_1.withInfoPlist)(config, (config) => { // Add background modes if (!config.modResults.UIBackgroundModes) { config.modResults.UIBackgroundModes = []; } const existingModes = config.modResults.UIBackgroundModes; for (const mode of backgroundModes) { if (!existingModes.includes(mode)) { existingModes.push(mode); } } return config; }); }; exports.withBackgroundModes = withBackgroundModes;