UNPKG

@dynatrace/react-native-plugin

Version:

This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.

22 lines (21 loc) 908 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.reactOptions = void 0; const nodePath = require("path"); const PathsConstants_1 = require("../../scripts/PathsConstants"); const CustomArgumentUtil_1 = require("../util/CustomArgumentUtil"); const config = require("../../scripts/Config"); const customArguments = (0, CustomArgumentUtil_1.readCustomArguments)(); let reactOptions; exports.reactOptions = reactOptions; try { if (customArguments.isCustomConfigurationPathSet()) { exports.reactOptions = reactOptions = config.readConfig(nodePath.join(PathsConstants_1.default.getApplicationPath(), customArguments.getCustomConfigurationPath())); } else { exports.reactOptions = reactOptions = config.readConfig(nodePath.join(PathsConstants_1.default.getConfigFilePath())); } } catch (_a) { exports.reactOptions = reactOptions = undefined; }