diff --git a/dist/plugins/actionsheet.js b/dist/plugins/actionsheet.js index c43da84ab..52f93bef6 100644 --- a/dist/plugins/actionsheet.js +++ b/dist/plugins/actionsheet.js @@ -1,4 +1,4 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); diff --git a/dist/plugins/ble.js b/dist/plugins/ble.js index 4c04d745d..a9f90408c 100644 --- a/dist/plugins/ble.js +++ b/dist/plugins/ble.js @@ -1,4 +1,4 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); diff --git a/dist/plugins/camera.js b/dist/plugins/camera.js index b4122a989..99f3b9567 100644 --- a/dist/plugins/camera.js +++ b/dist/plugins/camera.js @@ -1,4 +1,4 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); diff --git a/dist/plugins/contacts.js b/dist/plugins/contacts.js index 00342bdfc..eac971b94 100644 --- a/dist/plugins/contacts.js +++ b/dist/plugins/contacts.js @@ -1,4 +1,4 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); diff --git a/dist/plugins/device.js b/dist/plugins/device.js index 0fd6d634e..8f1979deb 100644 --- a/dist/plugins/device.js +++ b/dist/plugins/device.js @@ -1,4 +1,4 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); diff --git a/dist/plugins/geolocation.js b/dist/plugins/geolocation.js index 8a1cbaf65..e0789c293 100644 --- a/dist/plugins/geolocation.js +++ b/dist/plugins/geolocation.js @@ -1,4 +1,4 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); diff --git a/dist/plugins/statusbar.js b/dist/plugins/statusbar.js index dcf7cac1a..cbe88d9f1 100644 --- a/dist/plugins/statusbar.js +++ b/dist/plugins/statusbar.js @@ -1,4 +1,4 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); diff --git a/dist/plugins/toast.js b/dist/plugins/toast.js index ec55d3a72..06bd74ce2 100644 --- a/dist/plugins/toast.js +++ b/dist/plugins/toast.js @@ -1,4 +1,4 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); diff --git a/src/index.js b/src/index.js deleted file mode 100644 index 222b9b396..000000000 --- a/src/index.js +++ /dev/null @@ -1,22 +0,0 @@ -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -var DEVICE_READY_TIMEOUT = 2000; -__export(require('./plugins/actionsheet')); -__export(require('./plugins/ble')); -__export(require('./plugins/camera')); -__export(require('./plugins/contacts')); -__export(require('./plugins/device')); -__export(require('./plugins/geolocation')); -__export(require('./plugins/statusbar')); -__export(require('./plugins/toast')); -var didFireReady = false; -window.addEventListener('deviceready', function () { - didFireReady = true; -}); -setTimeout(function () { - if (!didFireReady && window.cordova) { - console.warn('Native: deviceready did not fire within ' + DEVICE_READY_TIMEOUT + 'ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.'); - } -}, DEVICE_READY_TIMEOUT); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/src/index.js.map b/src/index.js.map deleted file mode 100644 index 9df8eedd7..000000000 --- a/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAElC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,eAAe,CAAC,EAAA;AAC9B,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,oBAAoB,CAAC,EAAA;AACnC,iBAAc,kBAAkB,CAAC,EAAA;AACjC,iBAAc,uBAAuB,CAAC,EAAA;AACtC,iBAAc,qBAAqB,CAAC,EAAA;AACpC,iBAAc,iBAAiB,CAAC,EAAA;AAShC,IAAI,YAAY,GAAG,KAAK,CAAC;AACzB,MAAM,CAAC,gBAAgB,CAAC,aAAa,EAAE;IACrC,YAAY,GAAG,IAAI,CAAC;AACtB,CAAC,CAAC,CAAA;AAEF,UAAU,CAAC;IACT,EAAE,CAAA,CAAC,CAAC,YAAY,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;QACnC,OAAO,CAAC,IAAI,CAAC,0CAA0C,GAAG,oBAAoB,GAAG,0HAA0H,CAAC,CAAC;IAC/M,CAAC;AACH,CAAC,EAAE,oBAAoB,CAAC,CAAC"} \ No newline at end of file diff --git a/src/plugins/actionsheet.js b/src/plugins/actionsheet.js deleted file mode 100644 index c43da84ab..000000000 --- a/src/plugins/actionsheet.js +++ /dev/null @@ -1,36 +0,0 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); - switch (arguments.length) { - case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); - case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); - case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); - } -}; -var plugin_1 = require('./plugin'); -var ActionSheet = (function () { - function ActionSheet() { - } - ActionSheet.show = function (options) { }; - ; - ActionSheet.hide = function (options) { }; - ; - Object.defineProperty(ActionSheet, "show", - __decorate([ - plugin_1.Cordova() - ], ActionSheet, "show", Object.getOwnPropertyDescriptor(ActionSheet, "show"))); - Object.defineProperty(ActionSheet, "hide", - __decorate([ - plugin_1.Cordova() - ], ActionSheet, "hide", Object.getOwnPropertyDescriptor(ActionSheet, "hide"))); - ActionSheet = __decorate([ - plugin_1.Plugin({ - name: 'ActionSheet', - plugin: 'cordova-plugin-actionsheet', - pluginRef: 'plugins.actionsheet', - repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet' - }) - ], ActionSheet); - return ActionSheet; -})(); -exports.ActionSheet = ActionSheet; -//# sourceMappingURL=actionsheet.js.map \ No newline at end of file diff --git a/src/plugins/actionsheet.js.map b/src/plugins/actionsheet.js.map deleted file mode 100644 index 361fdeb82..000000000 --- a/src/plugins/actionsheet.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"actionsheet.js","sourceRoot":"","sources":["actionsheet.ts"],"names":["ActionSheet","ActionSheet.constructor","ActionSheet.show","ActionSheet.hide"],"mappings":";;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAYAC,CAACA;IAJQD,gBAAIA,GADXA,UACYA,OAAWA,IAAEE,CAACA;;IAGnBF,gBAAIA,GADXA,UACYA,OAAWA,IAAEG,CAACA;;IAJ1BH,sBACOA,mBAAIA;;YADVA,gBAAOA,EAAEA;WACHA,mBAAIA,kCAAJA,mBAAIA,IAAeA;IAE1BA,sBACOA,mBAAIA;;YADVA,gBAAOA,EAAEA;WACHA,mBAAIA,kCAAJA,mBAAIA,IAAeA;IAX5BA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,aAAaA;YACnBA,MAAMA,EAAEA,4BAA4BA;YACpCA,SAASA,EAAEA,qBAAqBA;YAChCA,IAAIA,EAAEA,8DAA8DA;SACrEA,CAACA;oBAODA;IAADA,kBAACA;AAADA,CAACA,AAZD,IAYC;AANY,mBAAW,cAMvB,CAAA"} \ No newline at end of file diff --git a/src/plugins/ble.js b/src/plugins/ble.js deleted file mode 100644 index 4c04d745d..000000000 --- a/src/plugins/ble.js +++ /dev/null @@ -1,71 +0,0 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); - switch (arguments.length) { - case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); - case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); - case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); - } -}; -var plugin_1 = require('./plugin'); -var BLE = (function () { - function BLE() { - } - BLE.scan = function (services, seconds) { }; - BLE.startScan = function (services) { }; - ; - BLE.stopScan = function () { }; - ; - BLE.connect = function (deviceId) { }; - ; - BLE.disconnect = function (deviceId) { }; - ; - BLE.read = function (deviceId, serviceUUID, characteristicUUID) { }; - ; - BLE.write = function (deviceId, serviceUUID, characteristicUUID, value) { }; - ; - BLE.writeWithoutResponse = function (deviceId, serviceUUID, characteristicUUID, value) { }; - ; - Object.defineProperty(BLE, "scan", - __decorate([ - plugin_1.Cordova() - ], BLE, "scan", Object.getOwnPropertyDescriptor(BLE, "scan"))); - Object.defineProperty(BLE, "startScan", - __decorate([ - plugin_1.Cordova() - ], BLE, "startScan", Object.getOwnPropertyDescriptor(BLE, "startScan"))); - Object.defineProperty(BLE, "stopScan", - __decorate([ - plugin_1.Cordova() - ], BLE, "stopScan", Object.getOwnPropertyDescriptor(BLE, "stopScan"))); - Object.defineProperty(BLE, "connect", - __decorate([ - plugin_1.Cordova() - ], BLE, "connect", Object.getOwnPropertyDescriptor(BLE, "connect"))); - Object.defineProperty(BLE, "disconnect", - __decorate([ - plugin_1.Cordova() - ], BLE, "disconnect", Object.getOwnPropertyDescriptor(BLE, "disconnect"))); - Object.defineProperty(BLE, "read", - __decorate([ - plugin_1.Cordova() - ], BLE, "read", Object.getOwnPropertyDescriptor(BLE, "read"))); - Object.defineProperty(BLE, "write", - __decorate([ - plugin_1.Cordova() - ], BLE, "write", Object.getOwnPropertyDescriptor(BLE, "write"))); - Object.defineProperty(BLE, "writeWithoutResponse", - __decorate([ - plugin_1.Cordova() - ], BLE, "writeWithoutResponse", Object.getOwnPropertyDescriptor(BLE, "writeWithoutResponse"))); - BLE = __decorate([ - plugin_1.Plugin({ - name: 'BluetoothLowEnergy', - plugin: 'cordova-plugin-ble-central', - pluginRef: 'ble', - pluginRepo: 'https://github.com/don/cordova-plugin-ble-central' - }) - ], BLE); - return BLE; -})(); -exports.BLE = BLE; -//# sourceMappingURL=ble.js.map \ No newline at end of file diff --git a/src/plugins/ble.js.map b/src/plugins/ble.js.map deleted file mode 100644 index 44723ab4b..000000000 --- a/src/plugins/ble.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ble.js","sourceRoot":"","sources":["ble.ts"],"names":["BLE","BLE.constructor","BLE.scan","BLE.startScan","BLE.stopScan","BLE.connect","BLE.disconnect","BLE.read","BLE.write","BLE.writeWithoutResponse"],"mappings":";;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IA8BAC,CAACA;IAtBQD,QAAIA,GADXA,UACYA,QAAcA,EAAEA,OAAcA,IAAGE,CAACA;IAGvCF,aAASA,GADhBA,UACiBA,QAAcA,IAAEG,CAACA;;IAG3BH,YAAQA,GADfA,cACkBI,CAACA;;IAGZJ,WAAOA,GADdA,UACeA,QAAeA,IAAEK,CAACA;;IAG1BL,cAAUA,GADjBA,UACkBA,QAAeA,IAAEM,CAACA;;IAG7BN,QAAIA,GADXA,UACYA,QAAeA,EAAEA,WAAkBA,EAAEA,kBAAyBA,IAAEO,CAACA;;IAGtEP,SAAKA,GADZA,UACaA,QAAeA,EAAEA,WAAkBA,EAAEA,kBAAyBA,EAAEA,KAAiBA,IAAEQ,CAACA;;IAG1FR,wBAAoBA,GAD3BA,UAC4BA,QAAeA,EAAEA,WAAkBA,EAAEA,kBAAyBA,EAAEA,KAAiBA,IAAES,CAACA;;IAtBhHT,sBACOA,WAAIA;;YADVA,gBAAOA,EAAEA;WACHA,WAAIA,kCAAJA,WAAIA,IAAmCA;IAE9CA,sBACOA,gBAASA;;YADfA,gBAAOA,EAAEA;WACHA,gBAASA,kCAATA,gBAASA,IAAkBA;IAElCA,sBACOA,eAAQA;;YADdA,gBAAOA,EAAEA;WACHA,eAAQA,kCAARA,eAAQA,IAAIA;IAEnBA,sBACOA,cAAOA;;YADbA,gBAAOA,EAAEA;WACHA,cAAOA,kCAAPA,cAAOA,IAAmBA;IAEjCA,sBACOA,iBAAUA;;YADhBA,gBAAOA,EAAEA;WACHA,iBAAUA,kCAAVA,iBAAUA,IAAmBA;IAEpCA,sBACOA,WAAIA;;YADVA,gBAAOA,EAAEA;WACHA,WAAIA,kCAAJA,WAAIA,IAAkEA;IAE7EA,sBACOA,YAAKA;;YADXA,gBAAOA,EAAEA;WACHA,YAAKA,kCAALA,YAAKA,IAAqFA;IAEjGA,sBACOA,2BAAoBA;;YAD1BA,gBAAOA,EAAEA;WACHA,2BAAoBA,kCAApBA,2BAAoBA,IAAqFA;IA7BlHA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,oBAAoBA;YAC1BA,MAAMA,EAAEA,4BAA4BA;YACpCA,SAASA,EAAEA,KAAKA;YAChBA,UAAUA,EAAEA,mDAAmDA;SAChEA,CAACA;YAyBDA;IAADA,UAACA;AAADA,CAACA,AA9BD,IA8BC;AAxBY,WAAG,MAwBf,CAAA"} \ No newline at end of file diff --git a/src/plugins/camera.js b/src/plugins/camera.js deleted file mode 100644 index b4122a989..000000000 --- a/src/plugins/camera.js +++ /dev/null @@ -1,38 +0,0 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); - switch (arguments.length) { - case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); - case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); - case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); - } -}; -var plugin_1 = require('./plugin'); -var Camera = (function () { - function Camera() { - } - Camera.getPicture = function (options) { }; - ; - Camera.cleanup = function () { }; - ; - Object.defineProperty(Camera, "getPicture", - __decorate([ - plugin_1.Cordova({ - // Not sure why this plugin has the success/err come first... - callbackOrder: 'reverse' - }) - ], Camera, "getPicture", Object.getOwnPropertyDescriptor(Camera, "getPicture"))); - Object.defineProperty(Camera, "cleanup", - __decorate([ - plugin_1.Cordova() - ], Camera, "cleanup", Object.getOwnPropertyDescriptor(Camera, "cleanup"))); - Camera = __decorate([ - plugin_1.Plugin({ - name: 'Camera', - plugin: 'cordova-plugin-camera', - pluginRef: 'navigator.camera' - }) - ], Camera); - return Camera; -})(); -exports.Camera = Camera; -//# sourceMappingURL=camera.js.map \ No newline at end of file diff --git a/src/plugins/camera.js.map b/src/plugins/camera.js.map deleted file mode 100644 index b4d055005..000000000 --- a/src/plugins/camera.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"camera.js","sourceRoot":"","sources":["camera.ts"],"names":["Camera","Camera.constructor","Camera.getPicture","Camera.cleanup"],"mappings":";;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAcAC,CAACA;IAJQD,iBAAUA,GAJjBA,UAIkBA,OAAWA,IAAEE,CAACA;;IAGzBF,cAAOA,GADdA,cACiBG,CAACA;;IAPlBH,sBAIOA,oBAAUA;;YAJhBA,gBAAOA,CAACA;gBACPA,6DAA6DA;gBAC7DA,aAAaA,EAAEA,SAASA;aACzBA,CAACA;WACKA,oBAAUA,kCAAVA,oBAAUA,IAAeA;IAEhCA,sBACOA,iBAAOA;;YADbA,gBAAOA,EAAEA;WACHA,iBAAOA,kCAAPA,iBAAOA,IAAIA;IAbpBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,QAAQA;YACdA,MAAMA,EAAEA,uBAAuBA;YAC/BA,SAASA,EAAEA,kBAAkBA;SAC9BA,CAACA;eAUDA;IAADA,aAACA;AAADA,CAACA,AAdD,IAcC;AATY,cAAM,SASlB,CAAA"} \ No newline at end of file diff --git a/src/plugins/contacts.js b/src/plugins/contacts.js deleted file mode 100644 index 00342bdfc..000000000 --- a/src/plugins/contacts.js +++ /dev/null @@ -1,48 +0,0 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); - switch (arguments.length) { - case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); - case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); - case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); - } -}; -var plugin_1 = require('./plugin'); -var Contacts = (function () { - function Contacts() { - } - Contacts.create = function (fields, options) { }; - ; - Contacts.find = function (fields, options) { }; - ; - Contacts.pickContact = function () { }; - ; - Object.defineProperty(Contacts, "create", - __decorate([ - plugin_1.Cordova({ - successIndex: 1, - errorIndex: 2 - }) - ], Contacts, "create", Object.getOwnPropertyDescriptor(Contacts, "create"))); - Object.defineProperty(Contacts, "find", - __decorate([ - plugin_1.Cordova({ - successIndex: 1, - errorIndex: 2 - }) - ], Contacts, "find", Object.getOwnPropertyDescriptor(Contacts, "find"))); - Object.defineProperty(Contacts, "pickContact", - __decorate([ - plugin_1.Cordova() - ], Contacts, "pickContact", Object.getOwnPropertyDescriptor(Contacts, "pickContact"))); - Contacts = __decorate([ - plugin_1.Plugin({ - name: 'Contacts', - plugin: 'cordova-plugin-contacts', - pluginRef: 'navigator.contacts', - repo: 'https://github.com/apache/cordova-plugin-contacts' - }) - ], Contacts); - return Contacts; -})(); -exports.Contacts = Contacts; -//# sourceMappingURL=contacts.js.map \ No newline at end of file diff --git a/src/plugins/contacts.js.map b/src/plugins/contacts.js.map deleted file mode 100644 index e414eaf28..000000000 --- a/src/plugins/contacts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"contacts.js","sourceRoot":"","sources":["contacts.ts"],"names":["Contacts","Contacts.constructor","Contacts.create","Contacts.find","Contacts.pickContact"],"mappings":";;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAsBAC,CAACA;IAVQD,eAAMA,GALbA,UAKcA,MAAeA,EAAEA,OAAWA,IAAEE,CAACA;;IAMtCF,aAAIA,GAJXA,UAIYA,MAAeA,EAAEA,OAAWA,IAAEG,CAACA;;IAGpCH,oBAAWA,GADlBA,cACqBI,CAACA;;IAdtBJ,sBAKOA,kBAAMA;;YALZA,gBAAOA,CAACA;gBACPA,YAAYA,EAAEA,CAACA;gBACfA,UAAUA,EAAEA,CAACA;aACdA,CAACA;WAEKA,kBAAMA,kCAANA,kBAAMA,IAAgCA;IAE7CA,sBAIOA,gBAAIA;;YAJVA,gBAAOA,CAACA;gBACPA,YAAYA,EAAEA,CAACA;gBACfA,UAAUA,EAAEA,CAACA;aACdA,CAACA;WACKA,gBAAIA,kCAAJA,gBAAIA,IAAgCA;IAE3CA,sBACOA,uBAAWA;;YADjBA,gBAAOA,EAAEA;WACHA,uBAAWA,kCAAXA,uBAAWA,IAAIA;IArBxBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,UAAUA;YAChBA,MAAMA,EAAEA,yBAAyBA;YACjCA,SAASA,EAAEA,oBAAoBA;YAC/BA,IAAIA,EAAEA,mDAAmDA;SAC1DA,CAACA;iBAiBDA;IAADA,eAACA;AAADA,CAACA,AAtBD,IAsBC;AAhBY,gBAAQ,WAgBpB,CAAA"} \ No newline at end of file diff --git a/src/plugins/device.js b/src/plugins/device.js deleted file mode 100644 index 0fd6d634e..000000000 --- a/src/plugins/device.js +++ /dev/null @@ -1,30 +0,0 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); - switch (arguments.length) { - case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); - case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); - case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); - } -}; -var plugin_1 = require('./plugin'); -var Device = (function () { - function Device() { - } - Device.getDevice = function () { - return window.device; - }; - Object.defineProperty(Device, "getDevice", - __decorate([ - plugin_1.RequiresPlugin - ], Device, "getDevice", Object.getOwnPropertyDescriptor(Device, "getDevice"))); - Device = __decorate([ - plugin_1.Plugin({ - name: 'Device', - plugin: 'cordova-plugin-device', - pluginRef: 'device' - }) - ], Device); - return Device; -})(); -exports.Device = Device; -//# sourceMappingURL=device.js.map \ No newline at end of file diff --git a/src/plugins/device.js.map b/src/plugins/device.js.map deleted file mode 100644 index 321e6006c..000000000 --- a/src/plugins/device.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"device.js","sourceRoot":"","sources":["device.ts"],"names":["Device","Device.constructor","Device.getDevice"],"mappings":";;;;;;;;AAAA,uBAAqC,UAAU,CAAC,CAAA;AAIhD;IAAAA;IAWAC,CAACA;IAHQD,gBAASA,GADhBA;QAEEE,MAAMA,CAACA,MAAMA,CAACA,MAAMA,CAACA;IACvBA,CAACA;IAHDF,sBACOA,mBAASA;;YADfA,uBAAcA;WACRA,mBAASA,kCAATA,mBAASA,IAEfA;IAVHA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,QAAQA;YACdA,MAAMA,EAAEA,uBAAuBA;YAC/BA,SAASA,EAAEA,QAAQA;SACpBA,CAACA;eAODA;IAADA,aAACA;AAADA,CAACA,AAXD,IAWC;AANY,cAAM,SAMlB,CAAA"} \ No newline at end of file diff --git a/src/plugins/file.js b/src/plugins/file.js deleted file mode 100644 index cae20034c..000000000 --- a/src/plugins/file.js +++ /dev/null @@ -1,23 +0,0 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); - switch (arguments.length) { - case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); - case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); - case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); - } -}; -var plugin_1 = require('./plugin'); -var File = (function () { - function File() { - } - File = __decorate([ - plugin_1.Plugin({ - name: 'File', - plugin: 'cordova-plugin-file', - pluginRef: 'cordova.file' - }) - ], File); - return File; -})(); -exports.File = File; -//# sourceMappingURL=file.js.map \ No newline at end of file diff --git a/src/plugins/file.js.map b/src/plugins/file.js.map deleted file mode 100644 index d1887339b..000000000 --- a/src/plugins/file.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file.js","sourceRoot":"","sources":["file.ts"],"names":["File","File.constructor"],"mappings":";;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAIzC;IAAAA;IAMAC,CAACA;IANDD;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,MAAMA;YACZA,MAAMA,EAAEA,qBAAqBA;YAC7BA,SAASA,EAAEA,cAAcA;SAC1BA,CAACA;aAEDA;IAADA,WAACA;AAADA,CAACA,AAND,IAMC;AADY,YAAI,OAChB,CAAA"} \ No newline at end of file diff --git a/src/plugins/geolocation.js b/src/plugins/geolocation.js deleted file mode 100644 index edaeedfc1..000000000 --- a/src/plugins/geolocation.js +++ /dev/null @@ -1,38 +0,0 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); - switch (arguments.length) { - case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); - case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); - case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); - } -}; -var plugin_1 = require('./plugin'); -var Device = (function () { - function Device() { - } - Device.getCurrentPosition = function (options) { }; - ; - Device.watchPosition = function (options) { }; - ; - Object.defineProperty(Device, "getCurrentPosition", - __decorate([ - plugin_1.Cordova() - ], Device, "getCurrentPosition", Object.getOwnPropertyDescriptor(Device, "getCurrentPosition"))); - Object.defineProperty(Device, "watchPosition", - __decorate([ - plugin_1.Cordova({ - observable: true, - clearFunction: 'clearWatch()' - }) - ], Device, "watchPosition", Object.getOwnPropertyDescriptor(Device, "watchPosition"))); - Device = __decorate([ - plugin_1.Plugin({ - name: 'Geolocation', - plugin: 'cordova-plugin-geolocation', - pluginRef: 'navigator.geolocation' - }) - ], Device); - return Device; -})(); -exports.Device = Device; -//# sourceMappingURL=geolocation.js.map \ No newline at end of file diff --git a/src/plugins/geolocation.js.map b/src/plugins/geolocation.js.map deleted file mode 100644 index 77517f7bb..000000000 --- a/src/plugins/geolocation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"geolocation.js","sourceRoot":"","sources":["geolocation.ts"],"names":["Device","Device.constructor","Device.getCurrentPosition","Device.watchPosition"],"mappings":";;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAMzC;IAAAA;IAeAC,CAACA;IARQD,yBAAkBA,GADzBA,UAC0BA,OAAWA,IAAEE,CAACA;;IAOjCF,oBAAaA,GAJpBA,UAIqBA,OAAWA,IAAEG,CAACA;;IARnCH,sBACOA,4BAAkBA;;YADxBA,gBAAOA,EAAEA;WACHA,4BAAkBA,kCAAlBA,4BAAkBA,IAAeA;IAGxCA,sBAIOA,uBAAaA;;YAJnBA,gBAAOA,CAACA;gBACPA,UAAUA,EAAEA,IAAIA;gBAChBA,aAAaA,EAAEA,cAAcA;aAC9BA,CAACA;WACKA,uBAAaA,kCAAbA,uBAAaA,IAAeA;IAdrCA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,aAAaA;YACnBA,MAAMA,EAAEA,4BAA4BA;YACpCA,SAASA,EAAEA,uBAAuBA;SACnCA,CAACA;eAWDA;IAADA,aAACA;AAADA,CAACA,AAfD,IAeC;AAVY,cAAM,SAUlB,CAAA"} \ No newline at end of file diff --git a/src/plugins/plugin.js b/src/plugins/plugin.js deleted file mode 100644 index 4983804f0..000000000 --- a/src/plugins/plugin.js +++ /dev/null @@ -1,154 +0,0 @@ -var util_1 = require('../util'); -var Rx_1 = require('@reactivex/rxjs/dist/cjs/Rx'); -exports.getPlugin = function (pluginRef) { - return util_1.get(window, pluginRef); -}; -exports.isInstalled = function (pluginRef) { - return !!exports.getPlugin(pluginRef); -}; -exports.pluginWarn = function (pluginName, method, plugin) { - if (method) { - console.warn('Native: tried calling ' + pluginName + '.' + method + - ', but the ' + pluginName + ' plugin is not installed. Install the ' + - plugin + ' plugin'); - } - else { - console.warn('Native: tried accessing the ' + pluginName + ' plugin but it\'s not installed. Install the ' + plugin + ' plugin'); - } -}; -exports.cordovaWarn = function (pluginName, method) { - if (method) { - console.warn('Native: tried calling ' + pluginName + '.' + method + ', but Cordova is not available. Make sure to include cordova.js or run in a device/simulator'); - } - else { - console.warn('Native: tried accessing the ' + pluginName + ' plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator'); - } -}; -function callCordovaPlugin(pluginObj, methodName, args, opts, resolve, reject) { - if (opts === void 0) { opts = {}; } - if (!window.cordova) { - exports.cordovaWarn(pluginObj.name, methodName); - reject({ - error: 'cordova_not_available' - }); - return; - } - // Try to figure out where the success/error callbacks need to be bound - // to our promise resolve/reject handlers. - // If the plugin method expects myMethod(success, err, options) - if (opts.callbackOrder == 'reverse') { - args[0] = resolve; - args[1] = reject; - } - else if (typeof opts.successIndex !== 'undefined' || typeof opts.errorIndex !== 'undefined') { - // If we've specified a success/error index - args.splice(opts.successIndex, 0, resolve); - args.splice(opts.errorIndex, 0, reject); - } - else { - // Otherwise, let's tack them on to the end of the argument list - // which is 90% of cases - args.push(resolve); - args.push(reject); - } - var pluginInstance = exports.getPlugin(pluginObj.pluginRef); - if (!pluginInstance) { - exports.pluginWarn(pluginObj.name, methodName, pluginObj.name); - reject({ - error: 'plugin_not_installed' - }); - return; - } - console.log('Cordova calling', pluginObj.name, methodName, args); - return util_1.get(window, pluginObj.pluginRef)[methodName].apply(pluginObj, args); -} -function wrapPromise(pluginObj, methodName, args, opts) { - if (opts === void 0) { opts = {}; } - return new Promise(function (resolve, reject) { - callCordovaPlugin(pluginObj, methodName, args, opts, resolve, reject); - }); -} -function wrapObservable(pluginObj, methodName, args, opts) { - if (opts === void 0) { opts = {}; } - return Rx_1.Observable.create(function (observer) { - var pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, observer.onNext, observer.onError); - return function () { - return util_1.get(window, pluginObj.pluginRef)[opts.clearFunction].apply(pluginObj, pluginResult); - }; - }); -} -exports.wrap = function (pluginObj, methodName, opts) { - if (opts === void 0) { opts = {}; } - return function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i - 0] = arguments[_i]; - } - if (opts.observable) { - console.log("Wrapping observable"); - return wrapObservable(pluginObj, methodName, args, opts); - } - else { - return wrapPromise(pluginObj, methodName, args, opts); - } - }; -}; -/** - * Class decorator specifying Plugin metadata. Required for all plugins. - */ -function Plugin(config) { - return function (cls) { - // Add these fields to the class - for (var k in config) { - cls[k] = config[k]; - } - return cls; - }; -} -exports.Plugin = Plugin; -/** - * Wrap a stub function in a call to a Cordova plugin, checking if both Cordova - * and the required plugin are installed. - */ -function Cordova(opts) { - if (opts === void 0) { opts = {}; } - return function (target, methodName, descriptor) { - var originalMethod = descriptor.value; - return { - value: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i - 0] = arguments[_i]; - } - return exports.wrap(this, methodName, opts).apply(this, args); - } - }; - }; -} -exports.Cordova = Cordova; -/** - * Before calling the original method, ensure Cordova and the plugin are installed. - */ -function RequiresPlugin(target, key, descriptor) { - var originalMethod = descriptor.value; - descriptor.value = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i - 0] = arguments[_i]; - } - console.log('Calling', this); - if (!window.cordova) { - exports.cordovaWarn(this.name, null); - return; - } - var pluginInstance = exports.getPlugin(this.pluginRef); - if (!pluginInstance) { - exports.pluginWarn(this.name, null, this.name); - return; - } - originalMethod.apply(this, args); - }; - return descriptor; -} -exports.RequiresPlugin = RequiresPlugin; -//# sourceMappingURL=plugin.js.map \ No newline at end of file diff --git a/src/plugins/plugin.js.map b/src/plugins/plugin.js.map deleted file mode 100644 index 2be95fe78..000000000 --- a/src/plugins/plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"plugin.js","sourceRoot":"","sources":["plugin.ts"],"names":["callCordovaPlugin","wrapPromise","wrapObservable","Plugin","Cordova","RequiresPlugin"],"mappings":"A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,CAAAA;AACHA,CAACA;AAVe,eAAO,UAUtB,CAAA;AAED;;GAEG;AACH,wBAA+B,MAAgB,EAAE,GAAW,EAAE,UAAwC;IACpGC,IAAIA,cAAcA,GAAGA,UAAUA,CAACA,KAAKA,CAACA;IAEtCA,UAAUA,CAACA,KAAKA,GAAGA;QAAS,cAAc;aAAd,WAAc,CAAd,sBAAc,CAAd,IAAc;YAAd,6BAAc;;QACxC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC7B,EAAE,CAAA,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;YACnB,mBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAC7B,MAAM,CAAC;QACT,CAAC;QAED,IAAI,cAAc,GAAG,iBAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC/C,EAAE,CAAA,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;YACnB,kBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YACvC,MAAM,CAAC;QACT,CAAC;QACD,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC,CAAAA;IAEDA,MAAMA,CAACA,UAAUA,CAACA;AACpBA,CAACA;AAnBe,sBAAc,iBAmB7B,CAAA"} \ No newline at end of file diff --git a/src/plugins/statusbar.js b/src/plugins/statusbar.js deleted file mode 100644 index dcf7cac1a..000000000 --- a/src/plugins/statusbar.js +++ /dev/null @@ -1,77 +0,0 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); - switch (arguments.length) { - case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); - case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); - case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); - } -}; -var plugin_1 = require('./plugin'); -var StatusBar = (function () { - function StatusBar() { - } - StatusBar.overlaysWebView = function (doOverlay) { }; - ; - StatusBar.styleDefault = function () { }; - ; - StatusBar.styleLightContent = function () { }; - ; - StatusBar.styleBlackTranslucent = function () { }; - ; - StatusBar.styleBlackOpaque = function () { }; - ; - StatusBar.backgroundColorByName = function (colorName) { }; - ; - StatusBar.backgroundColorByHexString = function (hexString) { }; - ; - StatusBar.hide = function () { }; - ; - StatusBar.show = function () { }; - ; - Object.defineProperty(StatusBar, "overlaysWebView", - __decorate([ - plugin_1.Cordova() - ], StatusBar, "overlaysWebView", Object.getOwnPropertyDescriptor(StatusBar, "overlaysWebView"))); - Object.defineProperty(StatusBar, "styleDefault", - __decorate([ - plugin_1.Cordova() - ], StatusBar, "styleDefault", Object.getOwnPropertyDescriptor(StatusBar, "styleDefault"))); - Object.defineProperty(StatusBar, "styleLightContent", - __decorate([ - plugin_1.Cordova() - ], StatusBar, "styleLightContent", Object.getOwnPropertyDescriptor(StatusBar, "styleLightContent"))); - Object.defineProperty(StatusBar, "styleBlackTranslucent", - __decorate([ - plugin_1.Cordova() - ], StatusBar, "styleBlackTranslucent", Object.getOwnPropertyDescriptor(StatusBar, "styleBlackTranslucent"))); - Object.defineProperty(StatusBar, "styleBlackOpaque", - __decorate([ - plugin_1.Cordova() - ], StatusBar, "styleBlackOpaque", Object.getOwnPropertyDescriptor(StatusBar, "styleBlackOpaque"))); - Object.defineProperty(StatusBar, "backgroundColorByName", - __decorate([ - plugin_1.Cordova() - ], StatusBar, "backgroundColorByName", Object.getOwnPropertyDescriptor(StatusBar, "backgroundColorByName"))); - Object.defineProperty(StatusBar, "backgroundColorByHexString", - __decorate([ - plugin_1.Cordova() - ], StatusBar, "backgroundColorByHexString", Object.getOwnPropertyDescriptor(StatusBar, "backgroundColorByHexString"))); - Object.defineProperty(StatusBar, "hide", - __decorate([ - plugin_1.Cordova() - ], StatusBar, "hide", Object.getOwnPropertyDescriptor(StatusBar, "hide"))); - Object.defineProperty(StatusBar, "show", - __decorate([ - plugin_1.Cordova() - ], StatusBar, "show", Object.getOwnPropertyDescriptor(StatusBar, "show"))); - StatusBar = __decorate([ - plugin_1.Plugin({ - name: 'StatusBar', - plugin: 'cordova-plugin-statusbar', - pluginRef: 'StatusBar' - }) - ], StatusBar); - return StatusBar; -})(); -exports.StatusBar = StatusBar; -//# sourceMappingURL=statusbar.js.map \ No newline at end of file diff --git a/src/plugins/statusbar.js.map b/src/plugins/statusbar.js.map deleted file mode 100644 index 4a4cd0321..000000000 --- a/src/plugins/statusbar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"statusbar.js","sourceRoot":"","sources":["statusbar.ts"],"names":["StatusBar","StatusBar.constructor","StatusBar.overlaysWebView","StatusBar.styleDefault","StatusBar.styleLightContent","StatusBar.styleBlackTranslucent","StatusBar.styleBlackOpaque","StatusBar.backgroundColorByName","StatusBar.backgroundColorByHexString","StatusBar.hide","StatusBar.show"],"mappings":";;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAwBAC,CAACA;IAjBQD,yBAAeA,GADtBA,UACuBA,SAAiBA,IAAEE,CAACA;;IAEpCF,sBAAYA,GADnBA,cACsBG,CAACA;;IAEhBH,2BAAiBA,GADxBA,cAC2BI,CAACA;;IAErBJ,+BAAqBA,GAD5BA,cAC+BK,CAACA;;IAEzBL,0BAAgBA,GADvBA,cAC0BM,CAACA;;IAEpBN,+BAAqBA,GAD5BA,UAC6BA,SAAgBA,IAAEO,CAACA;;IAEzCP,oCAA0BA,GADjCA,UACkCA,SAAgBA,IAAEQ,CAACA;;IAE9CR,cAAIA,GADXA,cACcS,CAACA;;IAERT,cAAIA,GADXA,cACcU,CAACA;;IAjBfV,sBACOA,4BAAeA;;YADrBA,gBAAOA,EAAEA;WACHA,4BAAeA,kCAAfA,4BAAeA,IAAqBA;IAC3CA,sBACOA,yBAAYA;;YADlBA,gBAAOA,EAAEA;WACHA,yBAAYA,kCAAZA,yBAAYA,IAAIA;IACvBA,sBACOA,8BAAiBA;;YADvBA,gBAAOA,EAAEA;WACHA,8BAAiBA,kCAAjBA,8BAAiBA,IAAIA;IAC5BA,sBACOA,kCAAqBA;;YAD3BA,gBAAOA,EAAEA;WACHA,kCAAqBA,kCAArBA,kCAAqBA,IAAIA;IAChCA,sBACOA,6BAAgBA;;YADtBA,gBAAOA,EAAEA;WACHA,6BAAgBA,kCAAhBA,6BAAgBA,IAAIA;IAC3BA,sBACOA,kCAAqBA;;YAD3BA,gBAAOA,EAAEA;WACHA,kCAAqBA,kCAArBA,kCAAqBA,IAAoBA;IAChDA,sBACOA,uCAA0BA;;YADhCA,gBAAOA,EAAEA;WACHA,uCAA0BA,kCAA1BA,uCAA0BA,IAAoBA;IACrDA,sBACOA,iBAAIA;;YADVA,gBAAOA,EAAEA;WACHA,iBAAIA,kCAAJA,iBAAIA,IAAIA;IACfA,sBACOA,iBAAIA;;YADVA,gBAAOA,EAAEA;WACHA,iBAAIA,kCAAJA,iBAAIA,IAAIA;IAvBjBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,WAAWA;YACjBA,MAAMA,EAAEA,0BAA0BA;YAClCA,SAASA,EAAEA,WAAWA;SACvBA,CAACA;kBAoBDA;IAADA,gBAACA;AAADA,CAACA,AAxBD,IAwBC;AAnBY,iBAAS,YAmBrB,CAAA"} \ No newline at end of file diff --git a/src/plugins/toast.js b/src/plugins/toast.js deleted file mode 100644 index ec55d3a72..000000000 --- a/src/plugins/toast.js +++ /dev/null @@ -1,36 +0,0 @@ -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); - switch (arguments.length) { - case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); - case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); - case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); - } -}; -var plugin_1 = require('./plugin'); -var Toast = (function () { - function Toast() { - } - Toast.hide = function () { }; - ; - Toast.showWithOptions = function (options) { }; - ; - Object.defineProperty(Toast, "hide", - __decorate([ - plugin_1.Cordova() - ], Toast, "hide", Object.getOwnPropertyDescriptor(Toast, "hide"))); - Object.defineProperty(Toast, "showWithOptions", - __decorate([ - plugin_1.Cordova() - ], Toast, "showWithOptions", Object.getOwnPropertyDescriptor(Toast, "showWithOptions"))); - Toast = __decorate([ - plugin_1.Plugin({ - name: 'Toast', - plugin: 'cordova-plugin-x-toast', - pluginRef: 'plugins.toast', - repo: 'https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin' - }) - ], Toast); - return Toast; -})(); -exports.Toast = Toast; -//# sourceMappingURL=toast.js.map \ No newline at end of file diff --git a/src/plugins/toast.js.map b/src/plugins/toast.js.map deleted file mode 100644 index 118137ac7..000000000 --- a/src/plugins/toast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toast.js","sourceRoot":"","sources":["toast.ts"],"names":["Toast","Toast.constructor","Toast.hide","Toast.showWithOptions"],"mappings":";;;;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAYAC,CAACA;IAJQD,UAAIA,GADXA,cACcE,CAACA;;IAGRF,qBAAeA,GADtBA,UACuBA,OAAWA,IAAEG,CAACA;;IAJrCH,sBACOA,aAAIA;;YADVA,gBAAOA,EAAEA;WACHA,aAAIA,kCAAJA,aAAIA,IAAIA;IAEfA,sBACOA,wBAAeA;;YADrBA,gBAAOA,EAAEA;WACHA,wBAAeA,kCAAfA,wBAAeA,IAAeA;IAXvCA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,OAAOA;YACbA,MAAMA,EAAEA,wBAAwBA;YAChCA,SAASA,EAAEA,eAAeA;YAC1BA,IAAIA,EAAEA,yDAAyDA;SAChEA,CAACA;cAODA;IAADA,YAACA;AAADA,CAACA,AAZD,IAYC;AANY,aAAK,QAMjB,CAAA"} \ No newline at end of file diff --git a/src/util.js b/src/util.js deleted file mode 100644 index 19dd6ac9c..000000000 --- a/src/util.js +++ /dev/null @@ -1,12 +0,0 @@ -function get(obj, path) { - for (var i = 0, path = path.split('.'), len = path.length; i < len; i++) { - if (!obj) { - return null; - } - obj = obj[path[i]]; - } - return obj; -} -exports.get = get; -; -//# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/src/util.js.map b/src/util.js.map deleted file mode 100644 index 28c70d6e8..000000000 --- a/src/util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["util.ts"],"names":["get"],"mappings":"AAAA,aAAoB,GAAG,EAAE,IAAI;IAC3BA,GAAGA,CAAAA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,IAAIA,GAAGA,IAAIA,CAACA,KAAKA,CAACA,GAAGA,CAACA,EAAEA,GAAGA,GAAGA,IAAIA,CAACA,MAAMA,EAAEA,CAACA,GAAGA,GAAGA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;QACvEA,EAAEA,CAAAA,CAACA,CAACA,GAAGA,CAACA,CAACA,CAACA;YAACA,MAAMA,CAACA,IAAIA,CAACA;QAACA,CAACA;QACzBA,GAAGA,GAAGA,GAAGA,CAACA,IAAIA,CAACA,CAACA,CAACA,CAACA,CAACA;IACrBA,CAACA;IACDA,MAAMA,CAACA,GAAGA,CAACA;AACbA,CAACA;AANe,WAAG,MAMlB,CAAA;AAAA,CAAC"} \ No newline at end of file