cordova-plugin-ionic
Advanced tools
Comparing version 1.1.6 to 1.1.7
Changelog | ||
====== | ||
## 1.1.7 | ||
* When the app is a `DEBUG` build, the deploy feature will show a prompt and ask whether to apply updates | ||
## 1.1.6 | ||
@@ -5,0 +9,0 @@ |
{ | ||
"name": "cordova-plugin-ionic", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"cordova": { | ||
@@ -14,3 +14,3 @@ "id": "cordova-plugin-ionic", | ||
"cordovaDependencies": { | ||
"1.1.5": { | ||
"1.1.7": { | ||
"cordova-plugin-splashscreen": ">=4.0.0" | ||
@@ -17,0 +17,0 @@ } |
var exec = require('cordova/exec'); | ||
/** | ||
* LIVE UPDATE API | ||
* | ||
* The plugin API for the live updates feature. | ||
*/ | ||
var IonicDeploy = { | ||
@@ -7,2 +12,5 @@ init: function(app_id, server_host, success, failure) { | ||
}, | ||
debug: function(success, failure) { | ||
exec(success, failure, 'IonicDeploy', 'showDebug', []); | ||
}, | ||
check: function(app_id, channel_tag, success, failure) { | ||
@@ -37,2 +45,8 @@ exec(success, failure, 'IonicDeploy', 'check', [app_id, channel_tag]); | ||
/** | ||
* BASE API | ||
* | ||
* All features of the Ionic Cordova plugin are registered here, along with some low level error tracking features used | ||
* by the monitoring service. | ||
*/ | ||
var IonicCordova = { | ||
@@ -57,2 +71,17 @@ enableCrashLogging: function(success, fail) { | ||
/** | ||
* DEBUG DIALOG | ||
* | ||
* Right now this is just used for live updates, but all manner of functionality could be added in the case where the | ||
* app is a debug build. | ||
*/ | ||
function onDeviceReady() { | ||
IonicCordova.deploy.debug(function(success) { | ||
console.log("SUCCESS", success); | ||
}, function(fail) { | ||
console.log("FAIL", fail); | ||
}) | ||
} | ||
document.addEventListener("deviceready", onDeviceReady, false); | ||
module.exports = IonicCordova; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
887044
80