@dynatrace/cordova-plugin
Version:
This plugin gives you the ability to use the Dynatrace instrumentation in your hybrid application (Cordova, Ionic, ..). It uses the Mobile Agent, the JavaScript Agent. The Mobile Agent will give you all device specific values containing lifecycle informat
17 lines (16 loc) • 709 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var ConfigurationUtil_1 = require("./config/ConfigurationUtil");
var InstallHelper_1 = require("./helpers/InstallHelper");
var PathHelper_1 = require("./helpers/PathHelper");
module.exports = (function (context) {
if ((0, PathHelper_1.isCapacitorApp)()) {
return new Promise(function (resolve) {
(0, InstallHelper_1.modifyPackageJsonCap)(true, (0, InstallHelper_1.isOptOut)((0, InstallHelper_1.parsedNpmConfig)())).then(function () {
(0, ConfigurationUtil_1.checkConfiguration)().then(function () {
resolve('');
});
});
});
}
})();