nativescript-jailbreak-detector
Version:
This plugin checks for root in android devices as well as for jailbreak in IOS devices
27 lines • 948 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var observable_1 = require("tns-core-modules/data/observable");
var app = require("tns-core-modules/application");
var dialogs = require("tns-core-modules/ui/dialogs");
var Common = (function (_super) {
__extends(Common, _super);
function Common() {
return _super.call(this) || this;
}
return Common;
}(observable_1.Observable));
exports.Common = Common;
var Utils = (function () {
function Utils() {
}
Utils.SUCCESS_MSG = function () {
var msg = "Your plugin is working on " + (app.android ? 'Android' : 'iOS') + ".";
setTimeout(function () {
dialogs.alert(msg + " For real. It's really working :)").then(function () { return console.log("Dialog closed."); });
}, 2000);
return msg;
};
return Utils;
}());
exports.Utils = Utils;
//# sourceMappingURL=jailbreak-detector.common.js.map
;