Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bin/www/codePushUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ var CodePushUtil = (function () {
var errorMessage = message || "" + " " + CodePushUtil.getErrorMessage(error);
console.error(CodePushUtil.TAG + " " + errorMessage);
};
CodePushUtil.TAG = "[CodePush]";
CodePushUtil.invokeErrorCallback = function (error, errorCallback) {
CodePushUtil.logError(null, error);
errorCallback && errorCallback(error);
};
return CodePushUtil;
}());
CodePushUtil.TAG = "[CodePush]";
CodePushUtil.invokeErrorCallback = function (error, errorCallback) {
CodePushUtil.logError(null, error);
errorCallback && errorCallback(error);
};
module.exports = CodePushUtil;
35 changes: 20 additions & 15 deletions bin/www/localPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@


"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var Package = require("./package");
var NativeAppInfo = require("./nativeAppInfo");
var FileUtil = require("./fileUtil");
Expand All @@ -21,7 +26,7 @@ var Sdk = require("./sdk");
var LocalPackage = (function (_super) {
__extends(LocalPackage, _super);
function LocalPackage() {
_super.apply(this, arguments);
return _super !== null && _super.apply(this, arguments) || this;
}
LocalPackage.prototype.install = function (installSuccess, errorCallback, installOptions) {
var _this = this;
Expand Down Expand Up @@ -372,15 +377,15 @@ var LocalPackage = (function (_super) {
}
return LocalPackage.DefaultInstallOptions;
};
LocalPackage.RootDir = "codepush";
LocalPackage.DownloadDir = LocalPackage.RootDir + "/download";
LocalPackage.DownloadUnzipDir = LocalPackage.DownloadDir + "/unzipped";
LocalPackage.DeployDir = LocalPackage.RootDir + "/deploy";
LocalPackage.VersionsDir = LocalPackage.DeployDir + "/versions";
LocalPackage.PackageUpdateFileName = "update.zip";
LocalPackage.PackageInfoFile = "currentPackage.json";
LocalPackage.OldPackageInfoFile = "oldPackage.json";
LocalPackage.DiffManifestFile = "hotcodepush.json";
return LocalPackage;
}(Package));
LocalPackage.RootDir = "codepush";
LocalPackage.DownloadDir = LocalPackage.RootDir + "/download";
LocalPackage.DownloadUnzipDir = LocalPackage.DownloadDir + "/unzipped";
LocalPackage.DeployDir = LocalPackage.RootDir + "/deploy";
LocalPackage.VersionsDir = LocalPackage.DeployDir + "/versions";
LocalPackage.PackageUpdateFileName = "update.zip";
LocalPackage.PackageInfoFile = "currentPackage.json";
LocalPackage.OldPackageInfoFile = "oldPackage.json";
LocalPackage.DiffManifestFile = "hotcodepush.json";
module.exports = LocalPackage;
17 changes: 11 additions & 6 deletions bin/www/remotePackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@


"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var LocalPackage = require("./localPackage");
var Package = require("./package");
var NativeAppInfo = require("./nativeAppInfo");
Expand All @@ -21,7 +26,7 @@ var Sdk = require("./sdk");
var RemotePackage = (function (_super) {
__extends(RemotePackage, _super);
function RemotePackage() {
_super.apply(this, arguments);
return _super !== null && _super.apply(this, arguments) || this;
}
RemotePackage.prototype.download = function (successCallback, errorCallback, downloadProgress) {
var _this = this;
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<keywords>cordova,code,push</keywords>
<repo>https://github.com/Microsoft/cordova-plugin-code-push.git</repo>

<dependency id="code-push" version=">=1.8.0-beta" />
<dependency id="code-push" version=">=1.9.0-beta" />
<dependency id="cordova-plugin-file" version=">=4.3.0" />
<dependency id="cordova-plugin-file-transfer" version=">=1.3.0" />
<dependency id="cordova-plugin-zip" version=">=3.0.0" />
Expand Down
Loading