newrelic-react-native-agent
Version:
A New Relic Mobile Agent for React Native
18 lines (16 loc) • 783 B
JavaScript
/**
* Copyright (c) 2022-present New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
;
Object.defineProperty(exports, "__esModule", { value: true });
const config_plugins_1 = require("@expo/config-plugins");
const android_1 = require("./android");
const projectPackage = require('newrelic-react-native-agent/package.json');
/**
* A config plugin for configuring `newrelic-react-native-agent`
*/
const withNewRelicRNAgent = config => {
return (0, config_plugins_1.withPlugins)(config, [android_1.withBuildscriptDependency, android_1.withApplyNewRelicPlugin, android_1.withNetworkAcessPermission]);
};
exports.default = (0, config_plugins_1.createRunOncePlugin)(withNewRelicRNAgent, projectPackage.name, projectPackage.version);