diff --git a/dist/esm/fileUtil.js b/dist/esm/fileUtil.js index f04b2d00..96975446 100644 --- a/dist/esm/fileUtil.js +++ b/dist/esm/fileUtil.js @@ -83,10 +83,10 @@ export class FileUtil { for (let i = 0; i < files.length; i++) { const file = files[i]; // @ts-ignore - if (ignoreList.includes(file)) + if (ignoreList.includes(file.name)) continue; - const sourcePath = sourceDir.path + "/" + file; - const destPath = destinationDir.path + "/" + file; + const sourcePath = sourceDir.path + "/" + file.name; + const destPath = destinationDir.path + "/" + file.name; const source = Object.assign(Object.assign({}, sourceDir), { path: sourcePath }); const destination = Object.assign(Object.assign({}, destinationDir), { path: destPath }); if (yield FileUtil.directoryExists(source.directory, source.path)) { // is directory diff --git a/dist/esm/fileUtil.js.map b/dist/esm/fileUtil.js.map index 1f438e81..09819574 100644 --- a/dist/esm/fileUtil.js.map +++ b/dist/esm/fileUtil.js.map @@ -1 +1 @@ -{"version":3,"file":"fileUtil.js","sourceRoot":"","sources":["../../src/fileUtil.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAiB,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIvF;;GAEG;AACH,MAAM,OAAO,QAAQ;IACV,MAAM,CAAO,eAAe,CAAC,SAAoB,EAAE,IAAY;;YAClE,IAAI;gBACA,MAAM,UAAU,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;gBAC9D,qDAAqD;gBACrD,aAAa;gBACb,OAAO,UAAU,CAAC,IAAI,KAAK,WAAW,IAAI,UAAU,CAAC,IAAI,KAAK,qBAAqB,CAAC;aACvF;YAAC,OAAO,KAAK,EAAE;gBACZ,OAAO,KAAK,CAAC;aAChB;QACL,CAAC;KAAA;IAEM,MAAM,CAAC,qBAAqB,CAAC,OAAe,EAAE,IAAY,EAAE,iBAA0B,EAAE,QAAwB;QACnH,QAAQ,CAAC,iBAAiB,CAAC,OAAO,EAAE,SA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AM,CAAO,QAAQ,CAAC,SAAoB,EAAE,IAAY;;YAC3D,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;YACvF,OAAO,MAAM,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;IAEM,MAAM,CAAC,YAAY,CAAC,IAAY;QACnC,OAAO,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/remotePackage.js.map b/dist/esm/remotePackage.js.map index a5f6e1fa..5840bc8c 100644 --- a/dist/esm/remotePackage.js.map +++ b/dist/esm/remotePackage.js.map @@ -1 +1 @@ -{"version":3,"file":"remotePackage.js","sourceRoot":"","sources":["../../src/remotePackage.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAmD,OAAO,EAAE,MAAM,WAAW,CAAC;AACrF,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAExD;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,OAAO;IAA1C;;QAEU,kBAAa,GAAY,KAAK,CAAC;IAoFzC,CAAC;IA7EC;;;;;OAKG;IACU,QAAQ,CAAC,gBAAoD;;YACxE,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;YAC9C,IAAI,C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Y,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YAChC,YAAY,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;YAC1C,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;YAC5C,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;YAC5C,YAAY,CAAC,UAAU,GAAG,KAAK,CAAC;YAChC,YAAY,CAAC,aAAa,GAAG,aAAa,CAAC;YAC3C,YAAY,CAAC,SAAS,GAAG,QAAQ,CAAC;YAElC,YAAY,CAAC,UAAU,CAAC,4BAA4B,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;YACrF,GAAG,CAAC,oBAAoB,CAAC,YAAY,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;YAEnE,OAAO,YAAY,CAAC;QACtB,CAAC;KAAA;IAED;;OAEG;IACU,aAAa;;YACxB,iCAAiC;YACjC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC7B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;gBAC3B,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACF"} \ No newline at end of file diff --git a/dist/plugin.js b/dist/plugin.js index bd3ffa19..be8bb45d 100644 --- a/dist/plugin.js +++ b/dist/plugin.js @@ -173,10 +173,10 @@ var capacitorPlugin = (function (exports, acquisitionSdk, filesystem, core, devi for (let i = 0; i < files.length; i++) { const file = files[i]; // @ts-ignore - if (ignoreList.includes(file)) + if (ignoreList.includes(file.name)) continue; - const sourcePath = sourceDir.path + "/" + file; - const destPath = destinationDir.path + "/" + file; + const sourcePath = sourceDir.path + "/" + file.name; + const destPath = destinationDir.path + "/" + file.name; const source = Object.assign(Object.assign({}, sourceDir), { path: sourcePath }); const destination = Object.assign(Object.assign({}, destinationDir), { path: destPath }); if (yield FileUtil.directoryExists(source.directory, source.path)) { // is directory diff --git a/dist/plugin.js.map b/dist/plugin.js.map index 139c1f3a..bd78207b 100644 --- a/dist/plugin.js.map +++ b/dist/plugin.js.map @@ -1 +1 @@ -{"version":3,"file":"plugin.js","sources":["esm/codePushUtil.js","esm/installMode.js","esm/fileUtil.js","esm/nativeCodePushPlugin.js","esm/nativeAppInfo.js","esm/package.js","esm/httpRequester.js","esm/sdk.js","esm/localPackage.js","esm/remotePackage.js","esm/syncStatus.js","esm/codePush.js"],"sourcesContent":["/**\n * Callback / error / logging utilities.\n */\nexport class CodePushUtil {\n /**\n * Performs a copy of all members of fromParameter to toParameter, with the condition that they are unassigned or null in toParameter.\n */\n static copyUnassignedMembers(fromParameter, toParameter) {\n for (let key in fromParameter) {\n if (toParameter[key] === undefined || toParameter[key] === null) {\n toParameter[key] = fromParameter[key];\n }\n }\n }\n /**\n * Given two Cordova style callbacks for success and error, this function returns a node.js\n * style callback where the error is the first parameter and the result the second.\n */\n static getNodeStyleCallbackFor(successCallback, errorCallback) {\n return (error, result) => {\n if (error) {\n errorCallback && errorCallback(error);\n }\n else {\n successCallback && successCallback(result);\n }\n };\n }\n /**\n * Gets the message of an error, if any. Otherwise it returns the empty string.\n */\n static getErrorMessage(e) {\n return e && e.message || e && e.toString() || \"\";\n }\n /**\n * Logs a message using the CodePush tag.\n */\n static logMessage(msg) {\n console.log(CodePushUtil.TAG + \" \" + msg);\n }\n /**\n * Logs an error message using the CodePush tag.\n */\n static logError(message, error) {\n const errorMessage = `${message || \"\"} ${CodePushUtil.getErrorMessage(error)}`;\n const stackTrace = error && error.stack ? `. StackTrace: ${error.stack}` : \"\";\n console.error(`${CodePushUtil.TAG} ${errorMessage}${stackTrace}`);\n }\n}\n/**\n * Tag used for logging to the console.\n */\nCodePushUtil.TAG = \"[CodePush]\";\n/**\n * Logs the error to the console and then forwards it to the provided ErrorCallback, if any.\n * TODO: remove me\n */\nCodePushUtil.invokeErrorCallback = (error, errorCallback) => {\n CodePushUtil.logError(null, error);\n errorCallback && errorCallback(error);\n};\n/**\n * Logs the error to the console and then throws the error.\n */\nCodePushUtil.throwError = (error) => {\n CodePushUtil.logError(null, error);\n throw error;\n};\n//# sourceMappingURL=codePushUtil.js.map","/**\n * Defines the available install modes for updates.\n */\nexport var InstallMode;\n(function (InstallMode) {\n /**\n * The update will be applied to the running application immediately. The application will be reloaded with the new content immediately.\n */\n InstallMode[InstallMode[\"IMMEDIATE\"] = 0] = \"IMMEDIATE\";\n /**\n * The update is downloaded but not installed immediately. The new content will be available the next time the application is started.\n */\n InstallMode[InstallMode[\"ON_NEXT_RESTART\"] = 1] = \"ON_NEXT_RESTART\";\n /**\n * The udpate is downloaded but not installed immediately. The new content will be available the next time the application is resumed or restarted, whichever event happends first.\n */\n InstallMode[InstallMode[\"ON_NEXT_RESUME\"] = 2] = \"ON_NEXT_RESUME\";\n})(InstallMode || (InstallMode = {}));\n//# sourceMappingURL=installMode.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { Directory, Filesystem, Encoding } from \"@capacitor/filesystem\";\n/**\n * File utilities for CodePush.\n */\nexport class FileUtil {\n static directoryExists(directory, path) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const statResult = yield Filesystem.stat({ directory, path });\n // directory for Android, NSFileTypeDirectory for iOS\n // @ts-ignore\n return statResult.type === \"directory\" || statResult.type === \"NSFileTypeDirectory\";\n }\n catch (error) {\n return false;\n }\n });\n }\n static writeStringToDataFile(content, path, createIfNotExists, callback) {\n FileUtil.writeStringToFile(content, Directory.Data, path, createIfNotExists, callback);\n }\n static fileExists(directory, path) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const statResult = yield Filesystem.stat({ directory, path });\n // file for Android, NSFileTypeRegular for iOS\n // @ts-ignore\n return statResult.type === \"file\" || statResult.type === \"NSFileTypeRegular\";\n }\n catch (error) {\n return false;\n }\n });\n }\n /**\n * Makes sure the given directory exists and is empty.\n */\n static cleanDataDirectory(path) {\n return __awaiter(this, void 0, void 0, function* () {\n if (yield FileUtil.dataDirectoryExists(path)) {\n yield FileUtil.deleteDataDirectory(path);\n }\n yield Filesystem.mkdir({ directory: Directory.Data, path, recursive: true });\n const appDir = yield Filesystem.getUri({ directory: Directory.Data, path });\n return appDir.uri;\n });\n }\n static getUri(fsDir, path) {\n return __awaiter(this, void 0, void 0, function* () {\n const result = yield Filesystem.getUri({ directory: fsDir, path });\n return result.uri;\n });\n }\n static getDataUri(path) {\n return FileUtil.getUri(Directory.Data, path);\n }\n static dataDirectoryExists(path) {\n return FileUtil.directoryExists(Directory.Data, path);\n }\n static copyDirectoryEntriesTo(sourceDir, destinationDir, ignoreList = []) {\n return __awaiter(this, void 0, void 0, function* () {\n /*\n Native-side exception occurs while trying to copy “.DS_Store” and “__MACOSX” entries generated by macOS, so just skip them\n */\n if (ignoreList.indexOf(\".DS_Store\") === -1) {\n ignoreList.push(\".DS_Store\");\n }\n if (ignoreList.indexOf(\"__MACOSX\") === -1) {\n ignoreList.push(\"__MACOSX\");\n }\n // @capacitor/filesystem plugin throw error when destination directory already exists.\n if (yield FileUtil.directoryExists(destinationDir.directory, destinationDir.path)) {\n const { files } = yield Filesystem.readdir(sourceDir);\n for (let i = 0; i < files.length; i++) {\n const file = files[i];\n // @ts-ignore\n if (ignoreList.includes(file))\n continue;\n const sourcePath = sourceDir.path + \"/\" + file;\n const destPath = destinationDir.path + \"/\" + file;\n const source = Object.assign(Object.assign({}, sourceDir), { path: sourcePath });\n const destination = Object.assign(Object.assign({}, destinationDir), { path: destPath });\n if (yield FileUtil.directoryExists(source.directory, source.path)) { // is directory\n yield FileUtil.copyDirectoryEntriesTo(source, destination);\n }\n else { // is file\n yield FileUtil.copy(source, destination);\n }\n }\n }\n else {\n yield FileUtil.copy(sourceDir, destinationDir);\n }\n });\n }\n static copy(source, destination) {\n return __awaiter(this, void 0, void 0, function* () {\n yield Filesystem.copy({ directory: source.directory, from: source.path, to: destination.path, toDirectory: destination.directory });\n });\n }\n /**\n * Recursively deletes the contents of a directory.\n */\n static deleteDataDirectory(path) {\n return __awaiter(this, void 0, void 0, function* () {\n yield Filesystem.rmdir({ directory: Directory.Data, path, recursive: true }).then(() => null);\n });\n }\n /**\n * Deletes a given set of files from a directory.\n */\n static deleteEntriesFromDataDirectory(dirPath, filesToDelete) {\n return __awaiter(this, void 0, void 0, function* () {\n for (const file of filesToDelete) {\n const path = dirPath + \"/\" + file;\n const fileExists = yield FileUtil.fileExists(Directory.Data, path);\n if (!fileExists)\n continue;\n try {\n yield Filesystem.deleteFile({ directory: Directory.Data, path });\n }\n catch (error) {\n /* If delete fails, silently continue */\n console.log(\"Could not delete file: \" + path);\n }\n }\n });\n }\n /**\n * Writes a string to a file.\n */\n static writeStringToFile(data, directory, path, createIfNotExists, callback) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n yield Filesystem.writeFile({ directory, path, data, encoding: Encoding.UTF8 });\n callback(null, null);\n }\n catch (error) {\n callback(new Error(\"Could write the current package information file. Error code: \" + error.code), null);\n }\n });\n }\n static readFile(directory, path) {\n return __awaiter(this, void 0, void 0, function* () {\n const result = yield Filesystem.readFile({ directory, path, encoding: Encoding.UTF8 });\n return result.data;\n });\n }\n static readDataFile(path) {\n return FileUtil.readFile(Directory.Data, path);\n }\n}\n//# sourceMappingURL=fileUtil.js.map","// Type definitions for Apache Cordova CodePush plugin.\n// Project: https://github.com/Microsoft/cordova-plugin-code-push\n//\n// Copyright (c) Microsoft Corporation\n// All rights reserved.\n// Licensed under the MIT license.\nimport { registerPlugin } from \"@capacitor/core\";\nexport const CodePush = /*#__PURE__*/ registerPlugin(\"CodePush\");\n//# sourceMappingURL=nativeCodePushPlugin.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { CodePush as NativeCodePush } from \"./nativeCodePushPlugin\";\nconst DefaultServerUrl = \"https://codepush.appcenter.ms/\";\n/**\n * Provides information about the native app.\n */\nexport class NativeAppInfo {\n /**\n * Gets the application build timestamp.\n */\n static getApplicationBuildTime() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getNativeBuildTime();\n return result.value;\n }\n catch (e) {\n throw new Error(\"Could not get application timestamp.\");\n }\n });\n }\n /**\n * Gets the application version.\n */\n static getApplicationVersion() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getAppVersion();\n return result.value;\n }\n catch (e) {\n throw new Error(\"Could not get application version.\");\n }\n });\n }\n /**\n * Gets a hash of the `public` folder contents compiled in the app store binary.\n */\n static getBinaryHash() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getBinaryHash();\n return result.value;\n }\n catch (e) {\n throw new Error(\"Could not get binary hash.\");\n }\n });\n }\n /**\n * Gets the server URL from config.xml by calling into the native platform.\n */\n static getServerURL() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getServerURL();\n return result.value;\n }\n catch (e) {\n return DefaultServerUrl;\n }\n });\n }\n /**\n * Gets the deployment key from config.xml by calling into the native platform.\n */\n static getDeploymentKey() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getDeploymentKey();\n return result.value;\n }\n catch (e) {\n throw new Error(\"Deployment key not found.\");\n }\n });\n }\n /**\n * Checks if a package update was previously attempted but failed for a given package hash.\n * Every reverted update is stored such that the application developer has the option to ignore\n * updates that previously failed. This way, an infinite update loop can be prevented in case of a bad update package.\n */\n static isFailedUpdate(packageHash) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.isFailedUpdate({ packageHash });\n return result.value;\n }\n catch (e) {\n /* In case of an error, return false. */\n return false;\n }\n });\n }\n /**\n * Checks if this is the first application run of a package after it has been applied.\n * The didUpdateCallback callback can be used for migrating data from the old app version to the new one.\n *\n * @param packageHash The hash value of the package.\n * @returns Whether it is the first run after an update.\n */\n static isFirstRun(packageHash) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.isFirstRun({ packageHash });\n return result.value;\n }\n catch (e) {\n /* In case of an error, return false. */\n return false;\n }\n });\n }\n /**\n * Checks with the native side if there is a pending update.\n */\n static isPendingUpdate() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.isPendingUpdate();\n return result.value;\n }\n catch (e) {\n /* In case of an error, return false. */\n return false;\n }\n });\n }\n}\n//# sourceMappingURL=nativeAppInfo.js.map","/**\n * Base class for CodePush packages.\n */\nexport class Package {\n}\n//# sourceMappingURL=package.js.map","import { CapacitorHttp as NativeHttp } from \"@capacitor/core\";\n/**\n * XMLHttpRequest-based implementation of Http.Requester.\n */\nexport class HttpRequester {\n constructor(contentType) {\n this.contentType = contentType;\n }\n request(verb, url, callbackOrRequestBody, callback) {\n var requestBody;\n var requestCallback = callback;\n // request(verb, url, callback)\n if (!requestCallback && typeof callbackOrRequestBody === \"function\") {\n requestCallback = callbackOrRequestBody;\n }\n // request(verb, url, requestBody, callback)\n if (typeof callbackOrRequestBody === \"string\") {\n requestBody = callbackOrRequestBody;\n }\n if (typeof requestBody === \"string\") {\n try {\n requestBody = JSON.parse(requestBody); // if it is stringify JSON string, parse\n }\n catch (e) {\n // do nothing\n }\n }\n var methodName = this.getHttpMethodName(verb);\n if (methodName === null) {\n return requestCallback(new Error(\"Method Not Allowed\"), null);\n }\n const headers = {\n \"X-CodePush-Plugin-Name\": \"cordova-plugin-code-push\",\n \"X-CodePush-Plugin-Version\": \"1.11.13\",\n \"X-CodePush-SDK-Version\": \"3.1.5\"\n };\n if (this.contentType) {\n headers[\"Content-Type\"] = this.contentType;\n }\n const options = {\n method: methodName,\n url,\n headers\n };\n if (methodName === \"GET\") {\n options.params = requestBody;\n }\n else {\n options.data = requestBody;\n }\n NativeHttp.request(options).then((nativeRes) => {\n if (typeof nativeRes.data === \"object\")\n nativeRes.data = JSON.stringify(nativeRes.data);\n var response = { statusCode: nativeRes.status, body: nativeRes.data };\n requestCallback && requestCallback(null, response);\n });\n }\n /**\n * Gets the HTTP method name as a string.\n * The reason for which this is needed is because the Http.Verb enum corresponds to integer values from native runtime.\n */\n getHttpMethodName(verb) {\n switch (verb) {\n case 0 /* GET */:\n return \"GET\";\n case 4 /* DELETE */:\n return \"DELETE\";\n case 1 /* HEAD */:\n return \"HEAD\";\n case 8 /* PATCH */:\n return \"PATCH\";\n case 2 /* POST */:\n return \"POST\";\n case 3 /* PUT */:\n return \"PUT\";\n case 5 /* TRACE */:\n case 6 /* OPTIONS */:\n case 7 /* CONNECT */:\n default:\n return null;\n }\n }\n}\n//# sourceMappingURL=httpRequester.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { AcquisitionManager } from \"code-push/script/acquisition-sdk\";\nimport { HttpRequester } from \"./httpRequester\";\nimport { NativeAppInfo } from \"./nativeAppInfo\";\nimport { Device } from \"@capacitor/device\";\n/**\n * Interacts with the CodePush Acquisition SDK.\n */\nexport class Sdk {\n /**\n * Reads the CodePush configuration and creates an AcquisitionManager instance using it.\n */\n static getAcquisitionManager(userDeploymentKey, contentType) {\n return __awaiter(this, void 0, void 0, function* () {\n const resolveManager = () => {\n if (userDeploymentKey !== Sdk.DefaultConfiguration.deploymentKey || contentType) {\n var customConfiguration = {\n deploymentKey: userDeploymentKey || Sdk.DefaultConfiguration.deploymentKey,\n serverUrl: Sdk.DefaultConfiguration.serverUrl,\n ignoreAppVersion: Sdk.DefaultConfiguration.ignoreAppVersion,\n appVersion: Sdk.DefaultConfiguration.appVersion,\n clientUniqueId: Sdk.DefaultConfiguration.clientUniqueId\n };\n var requester = new HttpRequester(contentType);\n var customAcquisitionManager = new AcquisitionManager(requester, customConfiguration);\n return Promise.resolve(customAcquisitionManager);\n }\n else if (Sdk.DefaultConfiguration.deploymentKey) {\n return Promise.resolve(Sdk.DefaultAcquisitionManager);\n }\n else {\n return Promise.reject(new Error(\"No deployment key provided, please provide a default one in your config.xml or specify one in the call to checkForUpdate() or sync().\"));\n }\n };\n if (Sdk.DefaultAcquisitionManager) {\n return resolveManager();\n }\n else {\n let serverUrl = null;\n try {\n serverUrl = yield NativeAppInfo.getServerURL();\n }\n catch (e) {\n throw new Error(\"Could not get the CodePush configuration. Please check your config.xml file.\");\n }\n let appVersion = null;\n try {\n appVersion = yield NativeAppInfo.getApplicationVersion();\n }\n catch (e) {\n throw new Error(\"Could not get the app version. Please check your config.xml file.\");\n }\n let deploymentKey = null;\n try {\n deploymentKey = yield NativeAppInfo.getDeploymentKey();\n }\n catch (e) { }\n const device = yield Device.getId();\n Sdk.DefaultConfiguration = {\n deploymentKey,\n serverUrl,\n ignoreAppVersion: false,\n appVersion,\n clientUniqueId: device.uuid\n };\n if (deploymentKey) {\n Sdk.DefaultAcquisitionManager = new AcquisitionManager(new HttpRequester(), Sdk.DefaultConfiguration);\n }\n return resolveManager();\n }\n });\n }\n /**\n * Reports the deployment status to the CodePush server.\n */\n static reportStatusDeploy(pkg, status, currentDeploymentKey, previousLabelOrAppVersion, previousDeploymentKey, callback) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const acquisitionManager = yield Sdk.getAcquisitionManager(currentDeploymentKey, \"application/json\");\n acquisitionManager.reportStatusDeploy(pkg, status, previousLabelOrAppVersion, previousDeploymentKey, callback);\n }\n catch (e) {\n callback && callback(e);\n }\n });\n }\n /**\n * Reports the download status to the CodePush server.\n */\n static reportStatusDownload(pkg, deploymentKey, callback) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const acquisitionManager = yield Sdk.getAcquisitionManager(deploymentKey, \"application/json\");\n acquisitionManager.reportStatusDownload(pkg, callback);\n }\n catch (e) {\n callback && callback(new Error(\"An error occured while reporting the download status. \" + e));\n }\n });\n }\n}\n//# sourceMappingURL=sdk.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { Directory, Filesystem } from \"@capacitor/filesystem\";\nimport { AcquisitionStatus } from \"code-push/script/acquisition-sdk\";\nimport { CodePushUtil } from \"./codePushUtil\";\nimport { FileUtil } from \"./fileUtil\";\nimport { InstallMode } from \"./installMode\";\nimport { NativeAppInfo } from \"./nativeAppInfo\";\nimport { CodePush as NativeCodePush } from \"./nativeCodePushPlugin\";\nimport { Package } from \"./package\";\nimport { Sdk } from \"./sdk\";\n/**\n * Defines a local package.\n *\n * !! THIS TYPE IS READ FROM NATIVE CODE AS WELL. ANY CHANGES TO THIS INTERFACE NEEDS TO BE UPDATED IN NATIVE CODE !!\n */\nexport class LocalPackage extends Package {\n /**\n * Applies this package to the application. The application will be reloaded with this package and on every application launch this package will be loaded.\n * On the first run after the update, the application will wait for a codePush.notifyApplicationReady() call. Once this call is made, the install operation is considered a success.\n * Otherwise, the install operation will be marked as failed, and the application is reverted to its previous version on the next run.\n *\n * @param installOptions Optional parameter used for customizing the installation behavior.\n */\n install(installOptions) {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {\n try {\n CodePushUtil.logMessage(\"Installing update\");\n if (!installOptions) {\n installOptions = LocalPackage.getDefaultInstallOptions();\n }\n else {\n CodePushUtil.copyUnassignedMembers(LocalPackage.getDefaultInstallOptions(), installOptions);\n }\n var installError = (error) => {\n CodePushUtil.invokeErrorCallback(error, reject);\n Sdk.reportStatusDeploy(this, AcquisitionStatus.DeploymentFailed, this.deploymentKey);\n };\n let unzipDir;\n try {\n unzipDir = yield FileUtil.cleanDataDirectory(LocalPackage.DownloadUnzipDir);\n }\n catch (error) {\n installError(error);\n return;\n }\n try {\n yield NativeCodePush.unzip({ zipFile: this.localPath, targetDirectory: unzipDir });\n }\n catch (unzipError) {\n installError(new Error(\"Could not unzip package\" + CodePushUtil.getErrorMessage(unzipError)));\n return;\n }\n try {\n const newPackageLocation = LocalPackage.VersionsDir + \"/\" + this.packageHash;\n const deploymentResult = yield LocalPackage.handleDeployment(newPackageLocation);\n yield this.verifyPackage(deploymentResult);\n this.localPath = deploymentResult.deployDir;\n this.finishInstall(deploymentResult.deployDir, installOptions, resolve, installError);\n }\n catch (error) {\n installError(error);\n }\n }\n catch (e) {\n installError && installError(new Error(\"An error occured while installing the package. \" + CodePushUtil.getErrorMessage(e)));\n }\n }));\n });\n }\n verifyPackage(deploymentResult) {\n return new Promise((resolve, reject) => {\n var deployDir = deploymentResult.deployDir;\n var verificationFail = (error) => {\n reject(error);\n };\n var verify = (isSignatureVerificationEnabled, isSignatureAppearedInBundle, publicKey, signature) => {\n if (isSignatureVerificationEnabled) {\n if (isSignatureAppearedInBundle) {\n this.verifyHash(deployDir, this.packageHash, verificationFail, () => {\n this.verifySignature(deployDir, this.packageHash, publicKey, signature, verificationFail, resolve);\n });\n }\n else {\n var errorMessage = \"Error! Public key was provided but there is no JWT signature within app bundle to verify. \" +\n \"Possible reasons, why that might happen: \\n\" +\n \"1. You've been released CodePush bundle update using version of CodePush CLI that is not support code signing.\\n\" +\n \"2. You've been released CodePush bundle update without providing --privateKeyPath option.\";\n reject(new Error(errorMessage));\n }\n }\n else {\n if (isSignatureAppearedInBundle) {\n CodePushUtil.logMessage(\"Warning! JWT signature exists in codepush update but code integrity check couldn't be performed because there is no public key configured. \" +\n \"Please ensure that public key is properly configured within your application.\");\n // verifyHash\n this.verifyHash(deployDir, this.packageHash, verificationFail, resolve);\n }\n else {\n if (deploymentResult.isDiffUpdate) {\n // verifyHash\n this.verifyHash(deployDir, this.packageHash, verificationFail, resolve);\n }\n else {\n resolve();\n }\n }\n }\n };\n if (deploymentResult.isDiffUpdate) {\n CodePushUtil.logMessage(\"Applying diff update\");\n }\n else {\n CodePushUtil.logMessage(\"Applying full update\");\n }\n var isSignatureVerificationEnabled, isSignatureAppearedInBundle;\n var publicKey;\n this.getPublicKey((error, publicKeyResult) => {\n if (error) {\n reject(new Error(\"Error reading public key. \" + error));\n return;\n }\n publicKey = publicKeyResult;\n isSignatureVerificationEnabled = !!publicKey;\n this.getSignatureFromUpdate(deploymentResult.deployDir, (error, signature) => {\n if (error) {\n reject(new Error(\"Error reading signature from update. \" + error));\n return;\n }\n isSignatureAppearedInBundle = !!signature;\n verify(isSignatureVerificationEnabled, isSignatureAppearedInBundle, publicKey, signature);\n });\n });\n });\n }\n getPublicKey(callback) {\n var success = (publicKey) => {\n callback(null, publicKey);\n };\n var fail = (error) => {\n callback(error, null);\n };\n NativeCodePush.getPublicKey().then(result => success(result.value || null), fail);\n }\n getSignatureFromUpdate(deployDir, callback) {\n return __awaiter(this, void 0, void 0, function* () {\n const filePath = deployDir + \"/public/.codepushrelease\";\n if (!(yield FileUtil.fileExists(Directory.Data, filePath))) {\n // signature absents in the bundle\n callback(null, null);\n return;\n }\n try {\n const signature = yield FileUtil.readFile(Directory.Data, filePath);\n callback(null, signature);\n }\n catch (error) {\n // error reading signature file from bundle\n callback(error, null);\n }\n });\n }\n verifyHash(deployDir, newUpdateHash, errorCallback, successCallback) {\n var packageHashSuccess = (computedHash) => {\n if (computedHash !== newUpdateHash) {\n errorCallback(new Error(\"The update contents failed the data integrity check.\"));\n return;\n }\n CodePushUtil.logMessage(\"The update contents succeeded the data integrity check.\");\n successCallback();\n };\n var packageHashFail = (error) => {\n errorCallback(new Error(\"Unable to compute hash for package: \" + error));\n };\n CodePushUtil.logMessage(\"Verifying hash for folder path: \" + deployDir);\n NativeCodePush.getPackageHash({ path: deployDir }).then(result => packageHashSuccess(result.value), packageHashFail);\n }\n verifySignature(deployDir, newUpdateHash, publicKey, signature, errorCallback, successCallback) {\n var decodeSignatureSuccess = (contentHash) => {\n if (contentHash !== newUpdateHash) {\n errorCallback(new Error(\"The update contents failed the code signing check.\"));\n return;\n }\n CodePushUtil.logMessage(\"The update contents succeeded the code signing check.\");\n successCallback();\n };\n var decodeSignatureFail = (error) => {\n errorCallback(new Error(\"Unable to verify signature for package: \" + error));\n };\n CodePushUtil.logMessage(\"Verifying signature for folder path: \" + deployDir);\n NativeCodePush.decodeSignature({ publicKey, signature }).then(result => decodeSignatureSuccess(result.value), decodeSignatureFail);\n }\n finishInstall(deployDir, installOptions, installSuccess, installError) {\n function backupPackageInformationFileIfNeeded(backupIfNeededDone) {\n return __awaiter(this, void 0, void 0, function* () {\n const pendingUpdate = yield NativeAppInfo.isPendingUpdate();\n if (pendingUpdate) {\n // Don't back up the currently installed update since it hasn't been \"confirmed\"\n backupIfNeededDone(null, null);\n }\n else {\n try {\n yield LocalPackage.backupPackageInformationFile();\n backupIfNeededDone(null, null);\n }\n catch (err) {\n backupIfNeededDone(err, null);\n }\n }\n });\n }\n LocalPackage.getCurrentOrDefaultPackage().then((oldPackage) => {\n backupPackageInformationFileIfNeeded((backupError) => {\n /* continue on error, current package information is missing if this is the first update */\n this.writeNewPackageMetadata().then(() => {\n var invokeSuccessAndInstall = () => {\n CodePushUtil.logMessage(\"Install succeeded.\");\n var installModeToUse = this.isMandatory ? installOptions.mandatoryInstallMode : installOptions.installMode;\n if (installModeToUse === InstallMode.IMMEDIATE) {\n /* invoke success before navigating */\n installSuccess && installSuccess(installModeToUse);\n /* no need for callbacks, the javascript context will reload */\n NativeCodePush.install({\n startLocation: deployDir,\n installMode: installModeToUse,\n minimumBackgroundDuration: installOptions.minimumBackgroundDuration\n });\n }\n else {\n NativeCodePush.install({\n startLocation: deployDir,\n installMode: installModeToUse,\n minimumBackgroundDuration: installOptions.minimumBackgroundDuration\n }).then(() => { installSuccess && installSuccess(installModeToUse); }, () => { installError && installError(); });\n }\n };\n var preInstallSuccess = () => {\n /* package will be cleaned up after success, on the native side */\n invokeSuccessAndInstall();\n };\n var preInstallFailure = (preInstallError) => {\n CodePushUtil.logError(\"Preinstall failure.\", preInstallError);\n var error = new Error(\"An error has occured while installing the package. \" + CodePushUtil.getErrorMessage(preInstallError));\n installError && installError(error);\n };\n NativeCodePush.preInstall({ startLocation: deployDir }).then(preInstallSuccess, preInstallFailure);\n }, (writeMetadataError) => {\n installError && installError(writeMetadataError);\n });\n });\n }, installError);\n }\n static handleDeployment(newPackageLocation) {\n return __awaiter(this, void 0, void 0, function* () {\n const manifestFile = {\n directory: Directory.Data,\n path: LocalPackage.DownloadUnzipDir + \"/\" + LocalPackage.DiffManifestFile\n };\n const isDiffUpdate = yield FileUtil.fileExists(manifestFile.directory, manifestFile.path);\n if (!(yield FileUtil.directoryExists(Directory.Data, LocalPackage.VersionsDir))) {\n // If directory not exists, create recursive folder\n yield Filesystem.mkdir({\n path: LocalPackage.VersionsDir,\n directory: Directory.Data,\n recursive: true\n });\n }\n if (isDiffUpdate) {\n yield LocalPackage.handleDiffDeployment(newPackageLocation, manifestFile);\n }\n else {\n yield LocalPackage.handleCleanDeployment(newPackageLocation);\n }\n return { deployDir: newPackageLocation, isDiffUpdate };\n });\n }\n writeNewPackageMetadata() {\n return __awaiter(this, void 0, void 0, function* () {\n const timestamp = yield NativeAppInfo.getApplicationBuildTime().catch(buildTimeError => {\n CodePushUtil.logError(\"Could not get application build time. \" + buildTimeError);\n });\n const appVersion = yield NativeAppInfo.getApplicationVersion().catch(appVersionError => {\n CodePushUtil.logError(\"Could not get application version.\" + appVersionError);\n });\n const currentPackageMetadata = {\n nativeBuildTime: timestamp,\n localPath: this.localPath,\n appVersion: appVersion,\n deploymentKey: this.deploymentKey,\n description: this.description,\n isMandatory: this.isMandatory,\n packageSize: this.packageSize,\n label: this.label,\n packageHash: this.packageHash,\n isFirstRun: false,\n failedInstall: false,\n install: undefined\n };\n return new Promise((resolve, reject) => {\n LocalPackage.writeCurrentPackageInformation(currentPackageMetadata, error => error ? reject(error) : resolve());\n });\n });\n }\n static handleCleanDeployment(newPackageLocation) {\n return __awaiter(this, void 0, void 0, function* () {\n // no diff manifest\n const source = { directory: Directory.Data, path: LocalPackage.DownloadUnzipDir };\n const target = { directory: Directory.Data, path: newPackageLocation };\n // TODO: create destination directory if it doesn't exist\n return FileUtil.copyDirectoryEntriesTo(source, target);\n });\n }\n static copyCurrentPackage(newPackageLocation, ignoreList) {\n return __awaiter(this, void 0, void 0, function* () {\n const currentPackagePath = yield new Promise(resolve => {\n LocalPackage.getPackage(LocalPackage.PackageInfoFile, (currentPackage) => resolve(currentPackage.localPath), () => resolve());\n });\n newPackageLocation = currentPackagePath ? newPackageLocation : newPackageLocation + \"/public\";\n // https://github.com/ionic-team/capacitor/pull/2514 Directory.Application variable was removed. (TODO - for check)\n const source = currentPackagePath ? { directory: Directory.Data, path: currentPackagePath } : { directory: Directory.Data, path: \"public\" };\n const target = { directory: Directory.Data, path: newPackageLocation };\n return FileUtil.copyDirectoryEntriesTo(source, target, ignoreList);\n });\n }\n static handleDiffDeployment(newPackageLocation, diffManifest) {\n return __awaiter(this, void 0, void 0, function* () {\n let manifest;\n try {\n yield LocalPackage.copyCurrentPackage(newPackageLocation, [\".codepushrelease\"]);\n yield LocalPackage.handleCleanDeployment(newPackageLocation);\n /* delete files mentioned in the manifest */\n const content = yield FileUtil.readFile(diffManifest.directory, diffManifest.path);\n manifest = JSON.parse(content);\n yield FileUtil.deleteEntriesFromDataDirectory(newPackageLocation, manifest.deletedFiles);\n }\n catch (error) {\n throw new Error(\"Cannot perform diff-update.\");\n }\n });\n }\n /**\n * Writes the given local package information to the current package information file.\n * @param packageInfoMetadata The object to serialize.\n * @param callback In case of an error, this function will be called with the error as the fist parameter.\n */\n static writeCurrentPackageInformation(packageInfoMetadata, callback) {\n var content = JSON.stringify(packageInfoMetadata);\n FileUtil.writeStringToDataFile(content, LocalPackage.RootDir + \"/\" + LocalPackage.PackageInfoFile, true, callback);\n }\n /**\n * Backs up the current package information to the old package information file.\n * This file is used for recovery in case of an update going wrong.\n * @param callback In case of an error, this function will be called with the error as the fist parameter.\n */\n static backupPackageInformationFile() {\n return __awaiter(this, void 0, void 0, function* () {\n const source = {\n directory: Directory.Data,\n path: LocalPackage.RootDir + \"/\" + LocalPackage.PackageInfoFile\n };\n const destination = {\n directory: Directory.Data,\n path: LocalPackage.RootDir + \"/\" + LocalPackage.OldPackageInfoFile\n };\n return FileUtil.copy(source, destination);\n });\n }\n /**\n * Get the previous package information.\n *\n * @param packageSuccess Callback invoked with the old package information.\n * @param packageError Optional callback invoked in case of an error.\n */\n static getOldPackage(packageSuccess, packageError) {\n LocalPackage.getPackage(LocalPackage.OldPackageInfoFile, packageSuccess, packageError);\n }\n /**\n * Reads package information from a given file.\n *\n * @param packageFile The package file name.\n * @param packageSuccess Callback invoked with the package information.\n * @param packageError Optional callback invoked in case of an error.\n */\n static getPackage(packageFile, packageSuccess, packageError) {\n return __awaiter(this, void 0, void 0, function* () {\n var handleError = (e) => {\n packageError && packageError(new Error(\"Cannot read package information. \" + CodePushUtil.getErrorMessage(e)));\n };\n try {\n const content = yield FileUtil.readDataFile(LocalPackage.RootDir + \"/\" + packageFile);\n const packageInfo = JSON.parse(content);\n LocalPackage.getLocalPackageFromMetadata(packageInfo).then(packageSuccess, packageError);\n }\n catch (e) {\n handleError(e);\n }\n });\n }\n static getLocalPackageFromMetadata(metadata) {\n return __awaiter(this, void 0, void 0, function* () {\n if (!metadata) {\n throw new Error(\"Invalid package metadata.\");\n }\n const installFailed = yield NativeAppInfo.isFailedUpdate(metadata.packageHash);\n const isFirstRun = yield NativeAppInfo.isFirstRun(metadata.packageHash);\n const localPackage = new LocalPackage();\n localPackage.appVersion = metadata.appVersion;\n localPackage.deploymentKey = metadata.deploymentKey;\n localPackage.description = metadata.description;\n localPackage.isMandatory = metadata.isMandatory;\n localPackage.failedInstall = installFailed;\n localPackage.isFirstRun = isFirstRun;\n localPackage.label = metadata.label;\n localPackage.localPath = metadata.localPath;\n localPackage.packageHash = metadata.packageHash;\n localPackage.packageSize = metadata.packageSize;\n return localPackage;\n });\n }\n static getCurrentOrDefaultPackage() {\n return LocalPackage.getPackageInfoOrDefault(LocalPackage.PackageInfoFile);\n }\n static getOldOrDefaultPackage() {\n return __awaiter(this, void 0, void 0, function* () {\n return LocalPackage.getPackageInfoOrDefault(LocalPackage.OldPackageInfoFile);\n });\n }\n static getPackageInfoOrDefault(packageFile) {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve, reject) => {\n const packageFailure = () => __awaiter(this, void 0, void 0, function* () {\n /**\n * For the default package we need the app version,\n * and ideally the hash of the binary contents.\n */\n let appVersion;\n try {\n appVersion = yield NativeAppInfo.getApplicationVersion();\n }\n catch (appVersionError) {\n CodePushUtil.logError(\"Could not get application version.\" + appVersionError);\n reject(appVersionError);\n return;\n }\n const defaultPackage = new LocalPackage();\n defaultPackage.appVersion = appVersion;\n try {\n defaultPackage.packageHash = yield NativeAppInfo.getBinaryHash();\n }\n catch (binaryHashError) {\n CodePushUtil.logError(\"Could not get binary hash.\" + binaryHashError);\n }\n resolve(defaultPackage);\n });\n LocalPackage.getPackage(packageFile, resolve, packageFailure);\n });\n });\n }\n static getPackageInfoOrNull(packageFile, packageSuccess, packageError) {\n LocalPackage.getPackage(packageFile, packageSuccess, packageSuccess.bind(null, null));\n }\n /**\n * Returns the default options for the CodePush install operation.\n * If the options are not defined yet, the static DefaultInstallOptions member will be instantiated.\n */\n static getDefaultInstallOptions() {\n if (!LocalPackage.DefaultInstallOptions) {\n LocalPackage.DefaultInstallOptions = {\n installMode: InstallMode.ON_NEXT_RESTART,\n minimumBackgroundDuration: 0,\n mandatoryInstallMode: InstallMode.IMMEDIATE\n };\n }\n return LocalPackage.DefaultInstallOptions;\n }\n}\nLocalPackage.RootDir = \"codepush\";\nLocalPackage.DownloadDir = LocalPackage.RootDir + \"/download\";\nLocalPackage.DownloadUnzipDir = LocalPackage.DownloadDir + \"/unzipped\";\nLocalPackage.DeployDir = LocalPackage.RootDir + \"/deploy\";\nLocalPackage.VersionsDir = LocalPackage.DeployDir + \"/versions\";\nLocalPackage.PackageUpdateFileName = \"update.zip\";\nLocalPackage.PackageInfoFile = \"currentPackage.json\";\nLocalPackage.OldPackageInfoFile = \"oldPackage.json\";\nLocalPackage.DiffManifestFile = \"hotcodepush.json\";\n//# sourceMappingURL=localPackage.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { CodePushUtil } from \"./codePushUtil\";\nimport { LocalPackage } from \"./localPackage\";\nimport { NativeAppInfo } from \"./nativeAppInfo\";\nimport { Package } from \"./package\";\nimport { Sdk } from \"./sdk\";\nimport { Directory, Filesystem } from \"@capacitor/filesystem\";\nimport { FileUtil } from \"./fileUtil\";\nimport { CapacitorHttp as Http } from \"@capacitor/core\";\n/**\n * Defines a remote package, which represents an update package available for download.\n */\nexport class RemotePackage extends Package {\n constructor() {\n super(...arguments);\n this.isDownloading = false;\n }\n /**\n * Downloads the package update from the CodePush service.\n * TODO: implement download progress\n *\n * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter.\n */\n download(downloadProgress) {\n return __awaiter(this, void 0, void 0, function* () {\n CodePushUtil.logMessage(\"Downloading update\");\n if (!this.downloadUrl) {\n CodePushUtil.throwError(new Error(\"The remote package does not contain a download URL.\"));\n }\n this.isDownloading = true;\n const file = LocalPackage.DownloadDir + \"/\" + LocalPackage.PackageUpdateFileName;\n const fullPath = yield FileUtil.getUri(Directory.Data, file);\n try {\n // create directory if not exists\n if (!(yield FileUtil.directoryExists(Directory.Data, LocalPackage.DownloadDir))) {\n yield Filesystem.mkdir({\n path: LocalPackage.DownloadDir,\n directory: Directory.Data,\n recursive: true,\n });\n }\n // delete file if it exists\n if (yield FileUtil.fileExists(Directory.Data, file)) {\n yield Filesystem.deleteFile({ directory: Directory.Data, path: file });\n }\n const downloadedFile = yield Http.get({\n url: this.downloadUrl,\n method: \"GET\",\n responseType: \"blob\"\n });\n yield Filesystem.writeFile({\n data: downloadedFile.data,\n path: file,\n directory: Directory.Data,\n });\n }\n catch (e) {\n CodePushUtil.throwError(new Error(\"An error occured while downloading the package. \" + (e && e.message) ? e.message : \"\"));\n }\n finally {\n this.isDownloading = false;\n }\n const installFailed = yield NativeAppInfo.isFailedUpdate(this.packageHash);\n const localPackage = new LocalPackage();\n localPackage.deploymentKey = this.deploymentKey;\n localPackage.description = this.description;\n localPackage.label = this.label;\n localPackage.appVersion = this.appVersion;\n localPackage.isMandatory = this.isMandatory;\n localPackage.packageHash = this.packageHash;\n localPackage.isFirstRun = false;\n localPackage.failedInstall = installFailed;\n localPackage.localPath = fullPath;\n CodePushUtil.logMessage(\"Package download success: \" + JSON.stringify(localPackage));\n Sdk.reportStatusDownload(localPackage, localPackage.deploymentKey);\n return localPackage;\n });\n }\n /**\n * Aborts the current download session, previously started with download().\n */\n abortDownload() {\n return __awaiter(this, void 0, void 0, function* () {\n // TODO: implement download abort\n return new Promise((resolve) => {\n this.isDownloading = false;\n resolve();\n });\n });\n }\n}\n//# sourceMappingURL=remotePackage.js.map","/**\n * Defines the possible result and intermediate statuses of the window.codePush.sync operation.\n * The result statuses are final, mutually exclusive statuses of the sync operation. The operation will end with only one of the possible result statuses.\n * The intermediate statuses are not final, one or more of them can happen before sync ends, based on the options you use and user interaction.\n *\n * NOTE: Adding new statuses or changing old statuses requires an update to CodePush.sync(), which must know which callbacks are results and which are not!\n * Also, don't forget to change the TestMessage module in ServerUtils!\n * AND THE codePush.d.ts (typings) file!!!\n */\nexport var SyncStatus;\n(function (SyncStatus) {\n /**\n * Result status - the application is up to date.\n */\n SyncStatus[SyncStatus[\"UP_TO_DATE\"] = 0] = \"UP_TO_DATE\";\n /**\n * Result status - an update is available, it has been downloaded, unzipped and copied to the deployment folder.\n * After the completion of the callback invoked with SyncStatus.UPDATE_INSTALLED, the application will be reloaded with the updated code and resources.\n */\n SyncStatus[SyncStatus[\"UPDATE_INSTALLED\"] = 1] = \"UPDATE_INSTALLED\";\n /**\n * Result status - an optional update is available, but the user declined to install it. The update was not downloaded.\n */\n SyncStatus[SyncStatus[\"UPDATE_IGNORED\"] = 2] = \"UPDATE_IGNORED\";\n /**\n * Result status - an error happened during the sync operation. This might be an error while communicating with the server, downloading or unziping the update.\n * The console logs should contain more information about what happened. No update has been applied in this case.\n */\n SyncStatus[SyncStatus[\"ERROR\"] = 3] = \"ERROR\";\n /**\n * Result status - there is an ongoing sync in progress, so this attempt to sync has been aborted.\n */\n SyncStatus[SyncStatus[\"IN_PROGRESS\"] = 4] = \"IN_PROGRESS\";\n /**\n * Intermediate status - the plugin is about to check for updates.\n */\n SyncStatus[SyncStatus[\"CHECKING_FOR_UPDATE\"] = 5] = \"CHECKING_FOR_UPDATE\";\n /**\n * Intermediate status - a user dialog is about to be displayed. This status will be reported only if user interaction is enabled.\n */\n SyncStatus[SyncStatus[\"AWAITING_USER_ACTION\"] = 6] = \"AWAITING_USER_ACTION\";\n /**\n * Intermediate status - the update packages is about to be downloaded.\n */\n SyncStatus[SyncStatus[\"DOWNLOADING_PACKAGE\"] = 7] = \"DOWNLOADING_PACKAGE\";\n /**\n * Intermediate status - the update package is about to be installed.\n */\n SyncStatus[SyncStatus[\"INSTALLING_UPDATE\"] = 8] = \"INSTALLING_UPDATE\";\n})(SyncStatus || (SyncStatus = {}));\n//# sourceMappingURL=syncStatus.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { AcquisitionStatus } from \"code-push/script/acquisition-sdk\";\nimport { CodePushUtil } from \"./codePushUtil\";\nimport { InstallMode } from \"./installMode\";\nimport { LocalPackage } from \"./localPackage\";\nimport { NativeAppInfo } from \"./nativeAppInfo\";\nimport { CodePush as NativeCodePush } from \"./nativeCodePushPlugin\";\nimport { RemotePackage } from \"./remotePackage\";\nimport { Sdk } from \"./sdk\";\nimport { SyncStatus } from \"./syncStatus\";\nimport { Dialog } from \"@capacitor/dialog\";\n/**\n * This is the entry point to Cordova CodePush SDK.\n * It provides the following features to the app developer:\n * - polling the server for new versions of the app\n * - notifying the plugin that the application loaded successfully after an update\n * - getting information about the currently deployed package\n */\nclass CodePush {\n /**\n * Notifies the plugin that the update operation succeeded and that the application is ready.\n * Calling this function is required on the first run after an update. On every subsequent application run, calling this function is a noop.\n * If using sync API, calling this function is not required since sync calls it internally.\n */\n notifyApplicationReady() {\n return NativeCodePush.notifyApplicationReady();\n }\n /**\n * Reloads the application. If there is a pending update package installed using ON_NEXT_RESTART or ON_NEXT_RESUME modes, the update\n * will be immediately visible to the user. Otherwise, calling this function will simply reload the current version of the application.\n */\n restartApplication() {\n return NativeCodePush.restartApplication();\n }\n /**\n * Reports an application status back to the server.\n * !!! This function is called from the native side, please make changes accordingly. !!!\n */\n reportStatus(status, label, appVersion, deploymentKey, lastVersionLabelOrAppVersion, lastVersionDeploymentKey) {\n if (((!label && appVersion === lastVersionLabelOrAppVersion) || label === lastVersionLabelOrAppVersion)\n && deploymentKey === lastVersionDeploymentKey) {\n // No-op since the new appVersion and label is exactly the same as the previous\n // (the app might have been updated via a direct or HockeyApp deployment).\n return;\n }\n var createPackageForReporting = (label, appVersion) => {\n return {\n /* The SDK only reports the label and appVersion.\n The rest of the properties are added for type safety. */\n label, appVersion, deploymentKey,\n description: null, isMandatory: false,\n packageHash: null, packageSize: null,\n failedInstall: false\n };\n };\n var reportDone = (error) => {\n var reportArgs = {\n status,\n label,\n appVersion,\n deploymentKey,\n lastVersionLabelOrAppVersion,\n lastVersionDeploymentKey\n };\n if (error) {\n CodePushUtil.logError(`An error occurred while reporting status: ${JSON.stringify(reportArgs)}`, error);\n NativeCodePush.reportFailed({ statusReport: reportArgs });\n }\n else {\n CodePushUtil.logMessage(`Reported status: ${JSON.stringify(reportArgs)}`);\n NativeCodePush.reportSucceeded({ statusReport: reportArgs });\n }\n };\n switch (status) {\n case ReportStatus.STORE_VERSION:\n Sdk.reportStatusDeploy(null, AcquisitionStatus.DeploymentSucceeded, deploymentKey, lastVersionLabelOrAppVersion, lastVersionDeploymentKey, reportDone);\n break;\n case ReportStatus.UPDATE_CONFIRMED:\n Sdk.reportStatusDeploy(createPackageForReporting(label, appVersion), AcquisitionStatus.DeploymentSucceeded, deploymentKey, lastVersionLabelOrAppVersion, lastVersionDeploymentKey, reportDone);\n break;\n case ReportStatus.UPDATE_ROLLED_BACK:\n Sdk.reportStatusDeploy(createPackageForReporting(label, appVersion), AcquisitionStatus.DeploymentFailed, deploymentKey, lastVersionLabelOrAppVersion, lastVersionDeploymentKey, reportDone);\n break;\n }\n }\n /**\n * Get the current package information.\n *\n * @returns The currently deployed package information.\n */\n getCurrentPackage() {\n return __awaiter(this, void 0, void 0, function* () {\n const pendingUpdate = yield NativeAppInfo.isPendingUpdate();\n var packageInfoFile = pendingUpdate ? LocalPackage.OldPackageInfoFile : LocalPackage.PackageInfoFile;\n return new Promise((resolve, reject) => {\n LocalPackage.getPackageInfoOrNull(packageInfoFile, resolve, reject);\n });\n });\n }\n /**\n * Gets the pending package information, if any. A pending package is one that has been installed but the application still runs the old code.\n * This happens only after a package has been installed using ON_NEXT_RESTART or ON_NEXT_RESUME mode, but the application was not restarted/resumed yet.\n */\n getPendingPackage() {\n return __awaiter(this, void 0, void 0, function* () {\n const pendingUpdate = yield NativeAppInfo.isPendingUpdate();\n if (!pendingUpdate)\n return null;\n return new Promise((resolve, reject) => {\n LocalPackage.getPackageInfoOrNull(LocalPackage.PackageInfoFile, resolve, reject);\n });\n });\n }\n /**\n * Checks with the CodePush server if an update package is available for download.\n *\n * @param querySuccess Callback invoked in case of a successful response from the server.\n * The callback takes one RemotePackage parameter. A non-null package is a valid update.\n * A null package means the application is up to date for the current native application version.\n * @param queryError Optional callback invoked in case of an error.\n * @param deploymentKey Optional deployment key that overrides the config.xml setting.\n */\n checkForUpdate(querySuccess, queryError, deploymentKey) {\n try {\n const callback = (error, remotePackageOrUpdateNotification) => __awaiter(this, void 0, void 0, function* () {\n if (error) {\n CodePushUtil.invokeErrorCallback(error, queryError);\n }\n else {\n const appUpToDate = () => {\n CodePushUtil.logMessage(\"App is up to date.\");\n querySuccess && querySuccess(null);\n };\n if (remotePackageOrUpdateNotification) {\n if (remotePackageOrUpdateNotification.updateAppVersion) {\n /* There is an update available for a different version. In the current version of the plugin, we treat that as no update. */\n CodePushUtil.logMessage(\"An update is available, but it is targeting a newer binary version than you are currently running.\");\n appUpToDate();\n }\n else {\n /* There is an update available for the current version. */\n var remotePackage = remotePackageOrUpdateNotification;\n const installFailed = yield NativeAppInfo.isFailedUpdate(remotePackage.packageHash);\n var result = new RemotePackage();\n result.appVersion = remotePackage.appVersion;\n result.deploymentKey = deploymentKey; // server does not send back the deployment key\n result.description = remotePackage.description;\n result.downloadUrl = remotePackage.downloadUrl;\n result.isMandatory = remotePackage.isMandatory;\n result.label = remotePackage.label;\n result.packageHash = remotePackage.packageHash;\n result.packageSize = remotePackage.packageSize;\n result.failedInstall = installFailed;\n CodePushUtil.logMessage(\"An update is available. \" + JSON.stringify(result));\n querySuccess && querySuccess(result);\n }\n }\n else {\n appUpToDate();\n }\n }\n });\n const queryUpdate = () => __awaiter(this, void 0, void 0, function* () {\n try {\n const acquisitionManager = yield Sdk.getAcquisitionManager(deploymentKey);\n const localPackage = yield LocalPackage.getCurrentOrDefaultPackage();\n try {\n const currentBinaryVersion = yield NativeAppInfo.getApplicationVersion();\n localPackage.appVersion = currentBinaryVersion;\n }\n catch (e) {\n /* Nothing to do */\n /* TODO : Why ? */\n }\n CodePushUtil.logMessage(\"Checking for update.\");\n acquisitionManager.queryUpdateWithCurrentPackage(localPackage, callback);\n }\n catch (e) {\n CodePushUtil.invokeErrorCallback(e, queryError);\n }\n });\n if (deploymentKey) {\n queryUpdate();\n }\n else {\n NativeAppInfo.getDeploymentKey()\n .then((defaultDeploymentKey) => {\n deploymentKey = defaultDeploymentKey;\n queryUpdate();\n }, (deploymentKeyError) => {\n CodePushUtil.invokeErrorCallback(deploymentKeyError, queryError);\n });\n }\n }\n catch (e) {\n CodePushUtil.invokeErrorCallback(new Error(\"An error occurred while querying for updates.\" + CodePushUtil.getErrorMessage(e)), queryError);\n }\n }\n /**\n * Convenience method for installing updates in one method call.\n * This method is provided for simplicity, and its behavior can be replicated by using window.codePush.checkForUpdate(), RemotePackage's download() and LocalPackage's install() methods.\n * If another sync is already running, it yields SyncStatus.IN_PROGRESS.\n *\n * The algorithm of this method is the following:\n * - Checks for an update on the CodePush server.\n * - If an update is available\n * - If the update is mandatory and the alertMessage is set in options, the user will be informed that the application will be updated to the latest version.\n * The update package will then be downloaded and applied.\n * - If the update is not mandatory and the confirmMessage is set in options, the user will be asked if they want to update to the latest version.\n * If they decline, the syncCallback will be invoked with SyncStatus.UPDATE_IGNORED.\n * - Otherwise, the update package will be downloaded and applied with no user interaction.\n * - If no update is available on the server, the syncCallback will be invoked with the SyncStatus.UP_TO_DATE.\n * - If an error occurs during checking for update, downloading or installing it, the syncCallback will be invoked with the SyncStatus.ERROR.\n *\n * @param syncOptions Optional SyncOptions parameter configuring the behavior of the sync operation.\n * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter.\n */\n sync(syncOptions, downloadProgress) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield new Promise((resolve, reject) => {\n /* Check if a sync is already in progress */\n if (CodePush.SyncInProgress) {\n /* A sync is already in progress */\n CodePushUtil.logMessage(\"Sync already in progress.\");\n resolve(SyncStatus.IN_PROGRESS);\n }\n /* Create a callback that resets the SyncInProgress flag when the sync is complete\n * If the sync status is a result status, then the sync must be complete and the flag must be updated\n * Otherwise, do not change the flag and trigger the syncCallback as usual\n */\n const syncCallbackAndUpdateSyncInProgress = (err, result) => {\n if (err) {\n syncOptions.onSyncError && syncOptions.onSyncError(err);\n CodePush.SyncInProgress = false;\n reject(err);\n }\n else {\n /* Call the user's callback */\n syncOptions.onSyncStatusChanged && syncOptions.onSyncStatusChanged(result);\n /* Check if the sync operation is over */\n switch (result) {\n case SyncStatus.ERROR:\n case SyncStatus.UP_TO_DATE:\n case SyncStatus.UPDATE_IGNORED:\n case SyncStatus.UPDATE_INSTALLED:\n /* The sync has completed */\n CodePush.SyncInProgress = false;\n resolve(result);\n break;\n default:\n /* The sync is not yet complete, so do nothing */\n break;\n }\n }\n };\n /* Begin the sync */\n CodePush.SyncInProgress = true;\n this.syncInternal(syncCallbackAndUpdateSyncInProgress, syncOptions, downloadProgress);\n });\n });\n }\n /**\n * Convenience method for installing updates in one method call.\n * This method is provided for simplicity, and its behavior can be replicated by using window.codePush.checkForUpdate(), RemotePackage's download() and LocalPackage's install() methods.\n *\n * A helper function for the sync function. It does not check if another sync is ongoing.\n *\n * @param syncCallback Optional callback to be called with the status of the sync operation.\n * The callback will be called only once, and the possible statuses are defined by the SyncStatus enum.\n * @param syncOptions Optional SyncOptions parameter configuring the behavior of the sync operation.\n * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter.\n *\n */\n syncInternal(syncCallback, syncOptions, downloadProgress) {\n /* No options were specified, use default */\n const defaultSyncOptions = this.getDefaultSyncOptions();\n if (!syncOptions) {\n syncOptions = defaultSyncOptions;\n }\n else {\n /* Some options were specified */\n /* Handle dialog options */\n const defaultDialogOptions = this.getDefaultUpdateDialogOptions();\n if (syncOptions.updateDialog) {\n if (typeof syncOptions.updateDialog !== typeof ({})) {\n /* updateDialog set to true condition, use default options */\n syncOptions.updateDialog = defaultDialogOptions;\n }\n else {\n /* some options were specified, merge with default */\n CodePushUtil.copyUnassignedMembers(defaultDialogOptions, syncOptions.updateDialog);\n }\n }\n /* Handle other options. Dialog options will not be overwritten. */\n CodePushUtil.copyUnassignedMembers(defaultSyncOptions, syncOptions);\n }\n this.notifyApplicationReady();\n const onError = (error) => {\n CodePushUtil.logError(\"An error occurred during sync.\", error);\n syncCallback && syncCallback(error, SyncStatus.ERROR);\n };\n const onInstallSuccess = (appliedWhen) => {\n switch (appliedWhen) {\n case InstallMode.ON_NEXT_RESTART:\n CodePushUtil.logMessage(\"Update is installed and will be run on the next app restart.\");\n break;\n case InstallMode.ON_NEXT_RESUME:\n if (syncOptions.minimumBackgroundDuration > 0) {\n CodePushUtil.logMessage(`Update is installed and will be run after the app has been in the background for at least ${syncOptions.minimumBackgroundDuration} seconds.`);\n }\n else {\n CodePushUtil.logMessage(\"Update is installed and will be run when the app next resumes.\");\n }\n break;\n }\n syncCallback && syncCallback(null, SyncStatus.UPDATE_INSTALLED);\n };\n const onDownloadSuccess = (localPackage) => {\n syncCallback && syncCallback(null, SyncStatus.INSTALLING_UPDATE);\n localPackage.install(syncOptions).then(onInstallSuccess, onError);\n };\n const downloadAndInstallUpdate = (remotePackage) => {\n syncCallback && syncCallback(null, SyncStatus.DOWNLOADING_PACKAGE);\n remotePackage.download(downloadProgress).then(onDownloadSuccess, onError);\n };\n const onUpdate = (remotePackage) => __awaiter(this, void 0, void 0, function* () {\n if (remotePackage === null) {\n /* Then the app is up to date */\n syncCallback && syncCallback(null, SyncStatus.UP_TO_DATE);\n }\n else {\n if (remotePackage.failedInstall && syncOptions.ignoreFailedUpdates) {\n CodePushUtil.logMessage(\"An update is available, but it is being ignored due to have been previously rolled back.\");\n syncCallback && syncCallback(null, SyncStatus.UPDATE_IGNORED);\n }\n else {\n if (syncOptions.updateDialog) {\n CodePushUtil.logMessage(\"Awaiting user action.\");\n syncCallback && syncCallback(null, SyncStatus.AWAITING_USER_ACTION);\n const dlgOpts = syncOptions.updateDialog;\n if (remotePackage.isMandatory) {\n /* Alert user */\n const message = dlgOpts.appendReleaseDescription ?\n dlgOpts.mandatoryUpdateMessage + dlgOpts.descriptionPrefix + remotePackage.description :\n dlgOpts.mandatoryUpdateMessage;\n yield Dialog.alert({\n message,\n title: dlgOpts.updateTitle,\n buttonTitle: dlgOpts.mandatoryContinueButtonLabel\n });\n downloadAndInstallUpdate(remotePackage);\n }\n else {\n /* Confirm update with user */\n const message = dlgOpts.appendReleaseDescription ?\n dlgOpts.optionalUpdateMessage + dlgOpts.descriptionPrefix + remotePackage.description\n : dlgOpts.optionalUpdateMessage;\n const confirmResult = yield Dialog.confirm({\n message,\n title: dlgOpts.updateTitle,\n okButtonTitle: dlgOpts.optionalInstallButtonLabel,\n cancelButtonTitle: dlgOpts.optionalIgnoreButtonLabel\n });\n if (confirmResult.value === true) {\n /* Install */\n downloadAndInstallUpdate(remotePackage);\n }\n else {\n /* Cancel */\n CodePushUtil.logMessage(\"User cancelled the update.\");\n syncCallback && syncCallback(null, SyncStatus.UPDATE_IGNORED);\n }\n }\n }\n else {\n /* No user interaction */\n downloadAndInstallUpdate(remotePackage);\n }\n }\n }\n });\n syncCallback && syncCallback(null, SyncStatus.CHECKING_FOR_UPDATE);\n this.checkForUpdate(onUpdate, onError, syncOptions.deploymentKey);\n }\n /**\n * Returns the default options for the CodePush sync operation.\n * If the options are not defined yet, the static DefaultSyncOptions member will be instantiated.\n */\n getDefaultSyncOptions() {\n if (!CodePush.DefaultSyncOptions) {\n CodePush.DefaultSyncOptions = {\n ignoreFailedUpdates: true,\n installMode: InstallMode.ON_NEXT_RESTART,\n minimumBackgroundDuration: 0,\n mandatoryInstallMode: InstallMode.IMMEDIATE,\n updateDialog: false,\n deploymentKey: undefined\n };\n }\n return CodePush.DefaultSyncOptions;\n }\n /**\n * Returns the default options for the update dialog.\n * Please note that the dialog is disabled by default.\n */\n getDefaultUpdateDialogOptions() {\n if (!CodePush.DefaultUpdateDialogOptions) {\n CodePush.DefaultUpdateDialogOptions = {\n updateTitle: \"Update available\",\n mandatoryUpdateMessage: \"An update is available that must be installed.\",\n mandatoryContinueButtonLabel: \"Continue\",\n optionalUpdateMessage: \"An update is available. Would you like to install it?\",\n optionalInstallButtonLabel: \"Install\",\n optionalIgnoreButtonLabel: \"Ignore\",\n appendReleaseDescription: false,\n descriptionPrefix: \" Description: \"\n };\n }\n return CodePush.DefaultUpdateDialogOptions;\n }\n}\n/**\n * Defines the application statuses reported from the native layer.\n * !!! This enum is defined in native code as well, please make changes accordingly. !!!\n */\nvar ReportStatus;\n(function (ReportStatus) {\n ReportStatus[ReportStatus[\"STORE_VERSION\"] = 0] = \"STORE_VERSION\";\n ReportStatus[ReportStatus[\"UPDATE_CONFIRMED\"] = 1] = \"UPDATE_CONFIRMED\";\n ReportStatus[ReportStatus[\"UPDATE_ROLLED_BACK\"] = 2] = \"UPDATE_ROLLED_BACK\";\n})(ReportStatus || (ReportStatus = {}));\nexport const codePush = new CodePush();\nwindow.codePush = codePush;\n//# sourceMappingURL=codePush.js.map"],"names":["InstallMode","__awaiter","this","Filesystem","Directory","Encoding","CodePush","registerPlugin","NativeCodePush","NativeHttp","AcquisitionManager","device","Device","AcquisitionStatus","Http","Dialog"],"mappings":";;;IAAA;IACA;IACA;IACO,MAAM,YAAY,CAAC;IAC1B;IACA;IACA;IACA,IAAI,OAAO,qBAAqB,CAAC,aAAa,EAAE,WAAW,EAAE;IAC7D,QAAQ,KAAK,IAAI,GAAG,IAAI,aAAa,EAAE;IACvC,YAAY,IAAI,WAAW,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,WAAW,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE;IAC7E,gBAAgB,WAAW,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IACtD,aAAa;IACb,SAAS;IACT,KAAK;IACL;IACA;IACA;IACA;IACA,IAAI,OAAO,uBAAuB,CAAC,eAAe,EAAE,aAAa,EAAE;IACnE,QAAQ,OAAO,CAAC,KAAK,EAAE,MAAM,KAAK;IAClC,YAAY,IAAI,KAAK,EAAE;IACvB,gBAAgB,aAAa,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;IACtD,aAAa;IACb,iBAAiB;IACjB,gBAAgB,eAAe,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;IAC3D,aAAa;IACb,SAAS,CAAC;IACV,KAAK;IACL;IACA;IACA;IACA,IAAI,OAAO,eAAe,CAAC,CAAC,EAAE;IAC9B,QAAQ,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzD,KAAK;IAC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kBAAkB,CAAC;IAC5E,IAAI,YAAY,CAAC,YAAY,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAoB,CAAC;IAChF,CAAC,EAAE,YAAY,KAAK,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AAC5B,UAAC,QAAQ,GAAG,IAAI,QAAQ,GAAG;IACvC,MAAM,CAAC,QAAQ,GAAG,QAAQ;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"plugin.js","sources":["esm/codePushUtil.js","esm/installMode.js","esm/fileUtil.js","esm/nativeCodePushPlugin.js","esm/nativeAppInfo.js","esm/package.js","esm/httpRequester.js","esm/sdk.js","esm/localPackage.js","esm/remotePackage.js","esm/syncStatus.js","esm/codePush.js"],"sourcesContent":["/**\n * Callback / error / logging utilities.\n */\nexport class CodePushUtil {\n /**\n * Performs a copy of all members of fromParameter to toParameter, with the condition that they are unassigned or null in toParameter.\n */\n static copyUnassignedMembers(fromParameter, toParameter) {\n for (let key in fromParameter) {\n if (toParameter[key] === undefined || toParameter[key] === null) {\n toParameter[key] = fromParameter[key];\n }\n }\n }\n /**\n * Given two Cordova style callbacks for success and error, this function returns a node.js\n * style callback where the error is the first parameter and the result the second.\n */\n static getNodeStyleCallbackFor(successCallback, errorCallback) {\n return (error, result) => {\n if (error) {\n errorCallback && errorCallback(error);\n }\n else {\n successCallback && successCallback(result);\n }\n };\n }\n /**\n * Gets the message of an error, if any. Otherwise it returns the empty string.\n */\n static getErrorMessage(e) {\n return e && e.message || e && e.toString() || \"\";\n }\n /**\n * Logs a message using the CodePush tag.\n */\n static logMessage(msg) {\n console.log(CodePushUtil.TAG + \" \" + msg);\n }\n /**\n * Logs an error message using the CodePush tag.\n */\n static logError(message, error) {\n const errorMessage = `${message || \"\"} ${CodePushUtil.getErrorMessage(error)}`;\n const stackTrace = error && error.stack ? `. StackTrace: ${error.stack}` : \"\";\n console.error(`${CodePushUtil.TAG} ${errorMessage}${stackTrace}`);\n }\n}\n/**\n * Tag used for logging to the console.\n */\nCodePushUtil.TAG = \"[CodePush]\";\n/**\n * Logs the error to the console and then forwards it to the provided ErrorCallback, if any.\n * TODO: remove me\n */\nCodePushUtil.invokeErrorCallback = (error, errorCallback) => {\n CodePushUtil.logError(null, error);\n errorCallback && errorCallback(error);\n};\n/**\n * Logs the error to the console and then throws the error.\n */\nCodePushUtil.throwError = (error) => {\n CodePushUtil.logError(null, error);\n throw error;\n};\n//# sourceMappingURL=codePushUtil.js.map","/**\n * Defines the available install modes for updates.\n */\nexport var InstallMode;\n(function (InstallMode) {\n /**\n * The update will be applied to the running application immediately. The application will be reloaded with the new content immediately.\n */\n InstallMode[InstallMode[\"IMMEDIATE\"] = 0] = \"IMMEDIATE\";\n /**\n * The update is downloaded but not installed immediately. The new content will be available the next time the application is started.\n */\n InstallMode[InstallMode[\"ON_NEXT_RESTART\"] = 1] = \"ON_NEXT_RESTART\";\n /**\n * The udpate is downloaded but not installed immediately. The new content will be available the next time the application is resumed or restarted, whichever event happends first.\n */\n InstallMode[InstallMode[\"ON_NEXT_RESUME\"] = 2] = \"ON_NEXT_RESUME\";\n})(InstallMode || (InstallMode = {}));\n//# sourceMappingURL=installMode.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { Directory, Filesystem, Encoding } from \"@capacitor/filesystem\";\n/**\n * File utilities for CodePush.\n */\nexport class FileUtil {\n static directoryExists(directory, path) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const statResult = yield Filesystem.stat({ directory, path });\n // directory for Android, NSFileTypeDirectory for iOS\n // @ts-ignore\n return statResult.type === \"directory\" || statResult.type === \"NSFileTypeDirectory\";\n }\n catch (error) {\n return false;\n }\n });\n }\n static writeStringToDataFile(content, path, createIfNotExists, callback) {\n FileUtil.writeStringToFile(content, Directory.Data, path, createIfNotExists, callback);\n }\n static fileExists(directory, path) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const statResult = yield Filesystem.stat({ directory, path });\n // file for Android, NSFileTypeRegular for iOS\n // @ts-ignore\n return statResult.type === \"file\" || statResult.type === \"NSFileTypeRegular\";\n }\n catch (error) {\n return false;\n }\n });\n }\n /**\n * Makes sure the given directory exists and is empty.\n */\n static cleanDataDirectory(path) {\n return __awaiter(this, void 0, void 0, function* () {\n if (yield FileUtil.dataDirectoryExists(path)) {\n yield FileUtil.deleteDataDirectory(path);\n }\n yield Filesystem.mkdir({ directory: Directory.Data, path, recursive: true });\n const appDir = yield Filesystem.getUri({ directory: Directory.Data, path });\n return appDir.uri;\n });\n }\n static getUri(fsDir, path) {\n return __awaiter(this, void 0, void 0, function* () {\n const result = yield Filesystem.getUri({ directory: fsDir, path });\n return result.uri;\n });\n }\n static getDataUri(path) {\n return FileUtil.getUri(Directory.Data, path);\n }\n static dataDirectoryExists(path) {\n return FileUtil.directoryExists(Directory.Data, path);\n }\n static copyDirectoryEntriesTo(sourceDir, destinationDir, ignoreList = []) {\n return __awaiter(this, void 0, void 0, function* () {\n /*\n Native-side exception occurs while trying to copy “.DS_Store” and “__MACOSX” entries generated by macOS, so just skip them\n */\n if (ignoreList.indexOf(\".DS_Store\") === -1) {\n ignoreList.push(\".DS_Store\");\n }\n if (ignoreList.indexOf(\"__MACOSX\") === -1) {\n ignoreList.push(\"__MACOSX\");\n }\n // @capacitor/filesystem plugin throw error when destination directory already exists.\n if (yield FileUtil.directoryExists(destinationDir.directory, destinationDir.path)) {\n const { files } = yield Filesystem.readdir(sourceDir);\n for (let i = 0; i < files.length; i++) {\n const file = files[i];\n // @ts-ignore\n if (ignoreList.includes(file.name))\n continue;\n const sourcePath = sourceDir.path + \"/\" + file.name;\n const destPath = destinationDir.path + \"/\" + file.name;\n const source = Object.assign(Object.assign({}, sourceDir), { path: sourcePath });\n const destination = Object.assign(Object.assign({}, destinationDir), { path: destPath });\n if (yield FileUtil.directoryExists(source.directory, source.path)) { // is directory\n yield FileUtil.copyDirectoryEntriesTo(source, destination);\n }\n else { // is file\n yield FileUtil.copy(source, destination);\n }\n }\n }\n else {\n yield FileUtil.copy(sourceDir, destinationDir);\n }\n });\n }\n static copy(source, destination) {\n return __awaiter(this, void 0, void 0, function* () {\n yield Filesystem.copy({ directory: source.directory, from: source.path, to: destination.path, toDirectory: destination.directory });\n });\n }\n /**\n * Recursively deletes the contents of a directory.\n */\n static deleteDataDirectory(path) {\n return __awaiter(this, void 0, void 0, function* () {\n yield Filesystem.rmdir({ directory: Directory.Data, path, recursive: true }).then(() => null);\n });\n }\n /**\n * Deletes a given set of files from a directory.\n */\n static deleteEntriesFromDataDirectory(dirPath, filesToDelete) {\n return __awaiter(this, void 0, void 0, function* () {\n for (const file of filesToDelete) {\n const path = dirPath + \"/\" + file;\n const fileExists = yield FileUtil.fileExists(Directory.Data, path);\n if (!fileExists)\n continue;\n try {\n yield Filesystem.deleteFile({ directory: Directory.Data, path });\n }\n catch (error) {\n /* If delete fails, silently continue */\n console.log(\"Could not delete file: \" + path);\n }\n }\n });\n }\n /**\n * Writes a string to a file.\n */\n static writeStringToFile(data, directory, path, createIfNotExists, callback) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n yield Filesystem.writeFile({ directory, path, data, encoding: Encoding.UTF8 });\n callback(null, null);\n }\n catch (error) {\n callback(new Error(\"Could write the current package information file. Error code: \" + error.code), null);\n }\n });\n }\n static readFile(directory, path) {\n return __awaiter(this, void 0, void 0, function* () {\n const result = yield Filesystem.readFile({ directory, path, encoding: Encoding.UTF8 });\n return result.data;\n });\n }\n static readDataFile(path) {\n return FileUtil.readFile(Directory.Data, path);\n }\n}\n//# sourceMappingURL=fileUtil.js.map","// Type definitions for Apache Cordova CodePush plugin.\n// Project: https://github.com/Microsoft/cordova-plugin-code-push\n//\n// Copyright (c) Microsoft Corporation\n// All rights reserved.\n// Licensed under the MIT license.\nimport { registerPlugin } from \"@capacitor/core\";\nexport const CodePush = /*#__PURE__*/ registerPlugin(\"CodePush\");\n//# sourceMappingURL=nativeCodePushPlugin.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { CodePush as NativeCodePush } from \"./nativeCodePushPlugin\";\nconst DefaultServerUrl = \"https://codepush.appcenter.ms/\";\n/**\n * Provides information about the native app.\n */\nexport class NativeAppInfo {\n /**\n * Gets the application build timestamp.\n */\n static getApplicationBuildTime() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getNativeBuildTime();\n return result.value;\n }\n catch (e) {\n throw new Error(\"Could not get application timestamp.\");\n }\n });\n }\n /**\n * Gets the application version.\n */\n static getApplicationVersion() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getAppVersion();\n return result.value;\n }\n catch (e) {\n throw new Error(\"Could not get application version.\");\n }\n });\n }\n /**\n * Gets a hash of the `public` folder contents compiled in the app store binary.\n */\n static getBinaryHash() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getBinaryHash();\n return result.value;\n }\n catch (e) {\n throw new Error(\"Could not get binary hash.\");\n }\n });\n }\n /**\n * Gets the server URL from config.xml by calling into the native platform.\n */\n static getServerURL() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getServerURL();\n return result.value;\n }\n catch (e) {\n return DefaultServerUrl;\n }\n });\n }\n /**\n * Gets the deployment key from config.xml by calling into the native platform.\n */\n static getDeploymentKey() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.getDeploymentKey();\n return result.value;\n }\n catch (e) {\n throw new Error(\"Deployment key not found.\");\n }\n });\n }\n /**\n * Checks if a package update was previously attempted but failed for a given package hash.\n * Every reverted update is stored such that the application developer has the option to ignore\n * updates that previously failed. This way, an infinite update loop can be prevented in case of a bad update package.\n */\n static isFailedUpdate(packageHash) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.isFailedUpdate({ packageHash });\n return result.value;\n }\n catch (e) {\n /* In case of an error, return false. */\n return false;\n }\n });\n }\n /**\n * Checks if this is the first application run of a package after it has been applied.\n * The didUpdateCallback callback can be used for migrating data from the old app version to the new one.\n *\n * @param packageHash The hash value of the package.\n * @returns Whether it is the first run after an update.\n */\n static isFirstRun(packageHash) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.isFirstRun({ packageHash });\n return result.value;\n }\n catch (e) {\n /* In case of an error, return false. */\n return false;\n }\n });\n }\n /**\n * Checks with the native side if there is a pending update.\n */\n static isPendingUpdate() {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const result = yield NativeCodePush.isPendingUpdate();\n return result.value;\n }\n catch (e) {\n /* In case of an error, return false. */\n return false;\n }\n });\n }\n}\n//# sourceMappingURL=nativeAppInfo.js.map","/**\n * Base class for CodePush packages.\n */\nexport class Package {\n}\n//# sourceMappingURL=package.js.map","import { CapacitorHttp as NativeHttp } from \"@capacitor/core\";\n/**\n * XMLHttpRequest-based implementation of Http.Requester.\n */\nexport class HttpRequester {\n constructor(contentType) {\n this.contentType = contentType;\n }\n request(verb, url, callbackOrRequestBody, callback) {\n var requestBody;\n var requestCallback = callback;\n // request(verb, url, callback)\n if (!requestCallback && typeof callbackOrRequestBody === \"function\") {\n requestCallback = callbackOrRequestBody;\n }\n // request(verb, url, requestBody, callback)\n if (typeof callbackOrRequestBody === \"string\") {\n requestBody = callbackOrRequestBody;\n }\n if (typeof requestBody === \"string\") {\n try {\n requestBody = JSON.parse(requestBody); // if it is stringify JSON string, parse\n }\n catch (e) {\n // do nothing\n }\n }\n var methodName = this.getHttpMethodName(verb);\n if (methodName === null) {\n return requestCallback(new Error(\"Method Not Allowed\"), null);\n }\n const headers = {\n \"X-CodePush-Plugin-Name\": \"cordova-plugin-code-push\",\n \"X-CodePush-Plugin-Version\": \"1.11.13\",\n \"X-CodePush-SDK-Version\": \"3.1.5\"\n };\n if (this.contentType) {\n headers[\"Content-Type\"] = this.contentType;\n }\n const options = {\n method: methodName,\n url,\n headers\n };\n if (methodName === \"GET\") {\n options.params = requestBody;\n }\n else {\n options.data = requestBody;\n }\n NativeHttp.request(options).then((nativeRes) => {\n if (typeof nativeRes.data === \"object\")\n nativeRes.data = JSON.stringify(nativeRes.data);\n var response = { statusCode: nativeRes.status, body: nativeRes.data };\n requestCallback && requestCallback(null, response);\n });\n }\n /**\n * Gets the HTTP method name as a string.\n * The reason for which this is needed is because the Http.Verb enum corresponds to integer values from native runtime.\n */\n getHttpMethodName(verb) {\n switch (verb) {\n case 0 /* GET */:\n return \"GET\";\n case 4 /* DELETE */:\n return \"DELETE\";\n case 1 /* HEAD */:\n return \"HEAD\";\n case 8 /* PATCH */:\n return \"PATCH\";\n case 2 /* POST */:\n return \"POST\";\n case 3 /* PUT */:\n return \"PUT\";\n case 5 /* TRACE */:\n case 6 /* OPTIONS */:\n case 7 /* CONNECT */:\n default:\n return null;\n }\n }\n}\n//# sourceMappingURL=httpRequester.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { AcquisitionManager } from \"code-push/script/acquisition-sdk\";\nimport { HttpRequester } from \"./httpRequester\";\nimport { NativeAppInfo } from \"./nativeAppInfo\";\nimport { Device } from \"@capacitor/device\";\n/**\n * Interacts with the CodePush Acquisition SDK.\n */\nexport class Sdk {\n /**\n * Reads the CodePush configuration and creates an AcquisitionManager instance using it.\n */\n static getAcquisitionManager(userDeploymentKey, contentType) {\n return __awaiter(this, void 0, void 0, function* () {\n const resolveManager = () => {\n if (userDeploymentKey !== Sdk.DefaultConfiguration.deploymentKey || contentType) {\n var customConfiguration = {\n deploymentKey: userDeploymentKey || Sdk.DefaultConfiguration.deploymentKey,\n serverUrl: Sdk.DefaultConfiguration.serverUrl,\n ignoreAppVersion: Sdk.DefaultConfiguration.ignoreAppVersion,\n appVersion: Sdk.DefaultConfiguration.appVersion,\n clientUniqueId: Sdk.DefaultConfiguration.clientUniqueId\n };\n var requester = new HttpRequester(contentType);\n var customAcquisitionManager = new AcquisitionManager(requester, customConfiguration);\n return Promise.resolve(customAcquisitionManager);\n }\n else if (Sdk.DefaultConfiguration.deploymentKey) {\n return Promise.resolve(Sdk.DefaultAcquisitionManager);\n }\n else {\n return Promise.reject(new Error(\"No deployment key provided, please provide a default one in your config.xml or specify one in the call to checkForUpdate() or sync().\"));\n }\n };\n if (Sdk.DefaultAcquisitionManager) {\n return resolveManager();\n }\n else {\n let serverUrl = null;\n try {\n serverUrl = yield NativeAppInfo.getServerURL();\n }\n catch (e) {\n throw new Error(\"Could not get the CodePush configuration. Please check your config.xml file.\");\n }\n let appVersion = null;\n try {\n appVersion = yield NativeAppInfo.getApplicationVersion();\n }\n catch (e) {\n throw new Error(\"Could not get the app version. Please check your config.xml file.\");\n }\n let deploymentKey = null;\n try {\n deploymentKey = yield NativeAppInfo.getDeploymentKey();\n }\n catch (e) { }\n const device = yield Device.getId();\n Sdk.DefaultConfiguration = {\n deploymentKey,\n serverUrl,\n ignoreAppVersion: false,\n appVersion,\n clientUniqueId: device.uuid\n };\n if (deploymentKey) {\n Sdk.DefaultAcquisitionManager = new AcquisitionManager(new HttpRequester(), Sdk.DefaultConfiguration);\n }\n return resolveManager();\n }\n });\n }\n /**\n * Reports the deployment status to the CodePush server.\n */\n static reportStatusDeploy(pkg, status, currentDeploymentKey, previousLabelOrAppVersion, previousDeploymentKey, callback) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const acquisitionManager = yield Sdk.getAcquisitionManager(currentDeploymentKey, \"application/json\");\n acquisitionManager.reportStatusDeploy(pkg, status, previousLabelOrAppVersion, previousDeploymentKey, callback);\n }\n catch (e) {\n callback && callback(e);\n }\n });\n }\n /**\n * Reports the download status to the CodePush server.\n */\n static reportStatusDownload(pkg, deploymentKey, callback) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const acquisitionManager = yield Sdk.getAcquisitionManager(deploymentKey, \"application/json\");\n acquisitionManager.reportStatusDownload(pkg, callback);\n }\n catch (e) {\n callback && callback(new Error(\"An error occured while reporting the download status. \" + e));\n }\n });\n }\n}\n//# sourceMappingURL=sdk.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { Directory, Filesystem } from \"@capacitor/filesystem\";\nimport { AcquisitionStatus } from \"code-push/script/acquisition-sdk\";\nimport { CodePushUtil } from \"./codePushUtil\";\nimport { FileUtil } from \"./fileUtil\";\nimport { InstallMode } from \"./installMode\";\nimport { NativeAppInfo } from \"./nativeAppInfo\";\nimport { CodePush as NativeCodePush } from \"./nativeCodePushPlugin\";\nimport { Package } from \"./package\";\nimport { Sdk } from \"./sdk\";\n/**\n * Defines a local package.\n *\n * !! THIS TYPE IS READ FROM NATIVE CODE AS WELL. ANY CHANGES TO THIS INTERFACE NEEDS TO BE UPDATED IN NATIVE CODE !!\n */\nexport class LocalPackage extends Package {\n /**\n * Applies this package to the application. The application will be reloaded with this package and on every application launch this package will be loaded.\n * On the first run after the update, the application will wait for a codePush.notifyApplicationReady() call. Once this call is made, the install operation is considered a success.\n * Otherwise, the install operation will be marked as failed, and the application is reverted to its previous version on the next run.\n *\n * @param installOptions Optional parameter used for customizing the installation behavior.\n */\n install(installOptions) {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {\n try {\n CodePushUtil.logMessage(\"Installing update\");\n if (!installOptions) {\n installOptions = LocalPackage.getDefaultInstallOptions();\n }\n else {\n CodePushUtil.copyUnassignedMembers(LocalPackage.getDefaultInstallOptions(), installOptions);\n }\n var installError = (error) => {\n CodePushUtil.invokeErrorCallback(error, reject);\n Sdk.reportStatusDeploy(this, AcquisitionStatus.DeploymentFailed, this.deploymentKey);\n };\n let unzipDir;\n try {\n unzipDir = yield FileUtil.cleanDataDirectory(LocalPackage.DownloadUnzipDir);\n }\n catch (error) {\n installError(error);\n return;\n }\n try {\n yield NativeCodePush.unzip({ zipFile: this.localPath, targetDirectory: unzipDir });\n }\n catch (unzipError) {\n installError(new Error(\"Could not unzip package\" + CodePushUtil.getErrorMessage(unzipError)));\n return;\n }\n try {\n const newPackageLocation = LocalPackage.VersionsDir + \"/\" + this.packageHash;\n const deploymentResult = yield LocalPackage.handleDeployment(newPackageLocation);\n yield this.verifyPackage(deploymentResult);\n this.localPath = deploymentResult.deployDir;\n this.finishInstall(deploymentResult.deployDir, installOptions, resolve, installError);\n }\n catch (error) {\n installError(error);\n }\n }\n catch (e) {\n installError && installError(new Error(\"An error occured while installing the package. \" + CodePushUtil.getErrorMessage(e)));\n }\n }));\n });\n }\n verifyPackage(deploymentResult) {\n return new Promise((resolve, reject) => {\n var deployDir = deploymentResult.deployDir;\n var verificationFail = (error) => {\n reject(error);\n };\n var verify = (isSignatureVerificationEnabled, isSignatureAppearedInBundle, publicKey, signature) => {\n if (isSignatureVerificationEnabled) {\n if (isSignatureAppearedInBundle) {\n this.verifyHash(deployDir, this.packageHash, verificationFail, () => {\n this.verifySignature(deployDir, this.packageHash, publicKey, signature, verificationFail, resolve);\n });\n }\n else {\n var errorMessage = \"Error! Public key was provided but there is no JWT signature within app bundle to verify. \" +\n \"Possible reasons, why that might happen: \\n\" +\n \"1. You've been released CodePush bundle update using version of CodePush CLI that is not support code signing.\\n\" +\n \"2. You've been released CodePush bundle update without providing --privateKeyPath option.\";\n reject(new Error(errorMessage));\n }\n }\n else {\n if (isSignatureAppearedInBundle) {\n CodePushUtil.logMessage(\"Warning! JWT signature exists in codepush update but code integrity check couldn't be performed because there is no public key configured. \" +\n \"Please ensure that public key is properly configured within your application.\");\n // verifyHash\n this.verifyHash(deployDir, this.packageHash, verificationFail, resolve);\n }\n else {\n if (deploymentResult.isDiffUpdate) {\n // verifyHash\n this.verifyHash(deployDir, this.packageHash, verificationFail, resolve);\n }\n else {\n resolve();\n }\n }\n }\n };\n if (deploymentResult.isDiffUpdate) {\n CodePushUtil.logMessage(\"Applying diff update\");\n }\n else {\n CodePushUtil.logMessage(\"Applying full update\");\n }\n var isSignatureVerificationEnabled, isSignatureAppearedInBundle;\n var publicKey;\n this.getPublicKey((error, publicKeyResult) => {\n if (error) {\n reject(new Error(\"Error reading public key. \" + error));\n return;\n }\n publicKey = publicKeyResult;\n isSignatureVerificationEnabled = !!publicKey;\n this.getSignatureFromUpdate(deploymentResult.deployDir, (error, signature) => {\n if (error) {\n reject(new Error(\"Error reading signature from update. \" + error));\n return;\n }\n isSignatureAppearedInBundle = !!signature;\n verify(isSignatureVerificationEnabled, isSignatureAppearedInBundle, publicKey, signature);\n });\n });\n });\n }\n getPublicKey(callback) {\n var success = (publicKey) => {\n callback(null, publicKey);\n };\n var fail = (error) => {\n callback(error, null);\n };\n NativeCodePush.getPublicKey().then(result => success(result.value || null), fail);\n }\n getSignatureFromUpdate(deployDir, callback) {\n return __awaiter(this, void 0, void 0, function* () {\n const filePath = deployDir + \"/public/.codepushrelease\";\n if (!(yield FileUtil.fileExists(Directory.Data, filePath))) {\n // signature absents in the bundle\n callback(null, null);\n return;\n }\n try {\n const signature = yield FileUtil.readFile(Directory.Data, filePath);\n callback(null, signature);\n }\n catch (error) {\n // error reading signature file from bundle\n callback(error, null);\n }\n });\n }\n verifyHash(deployDir, newUpdateHash, errorCallback, successCallback) {\n var packageHashSuccess = (computedHash) => {\n if (computedHash !== newUpdateHash) {\n errorCallback(new Error(\"The update contents failed the data integrity check.\"));\n return;\n }\n CodePushUtil.logMessage(\"The update contents succeeded the data integrity check.\");\n successCallback();\n };\n var packageHashFail = (error) => {\n errorCallback(new Error(\"Unable to compute hash for package: \" + error));\n };\n CodePushUtil.logMessage(\"Verifying hash for folder path: \" + deployDir);\n NativeCodePush.getPackageHash({ path: deployDir }).then(result => packageHashSuccess(result.value), packageHashFail);\n }\n verifySignature(deployDir, newUpdateHash, publicKey, signature, errorCallback, successCallback) {\n var decodeSignatureSuccess = (contentHash) => {\n if (contentHash !== newUpdateHash) {\n errorCallback(new Error(\"The update contents failed the code signing check.\"));\n return;\n }\n CodePushUtil.logMessage(\"The update contents succeeded the code signing check.\");\n successCallback();\n };\n var decodeSignatureFail = (error) => {\n errorCallback(new Error(\"Unable to verify signature for package: \" + error));\n };\n CodePushUtil.logMessage(\"Verifying signature for folder path: \" + deployDir);\n NativeCodePush.decodeSignature({ publicKey, signature }).then(result => decodeSignatureSuccess(result.value), decodeSignatureFail);\n }\n finishInstall(deployDir, installOptions, installSuccess, installError) {\n function backupPackageInformationFileIfNeeded(backupIfNeededDone) {\n return __awaiter(this, void 0, void 0, function* () {\n const pendingUpdate = yield NativeAppInfo.isPendingUpdate();\n if (pendingUpdate) {\n // Don't back up the currently installed update since it hasn't been \"confirmed\"\n backupIfNeededDone(null, null);\n }\n else {\n try {\n yield LocalPackage.backupPackageInformationFile();\n backupIfNeededDone(null, null);\n }\n catch (err) {\n backupIfNeededDone(err, null);\n }\n }\n });\n }\n LocalPackage.getCurrentOrDefaultPackage().then((oldPackage) => {\n backupPackageInformationFileIfNeeded((backupError) => {\n /* continue on error, current package information is missing if this is the first update */\n this.writeNewPackageMetadata().then(() => {\n var invokeSuccessAndInstall = () => {\n CodePushUtil.logMessage(\"Install succeeded.\");\n var installModeToUse = this.isMandatory ? installOptions.mandatoryInstallMode : installOptions.installMode;\n if (installModeToUse === InstallMode.IMMEDIATE) {\n /* invoke success before navigating */\n installSuccess && installSuccess(installModeToUse);\n /* no need for callbacks, the javascript context will reload */\n NativeCodePush.install({\n startLocation: deployDir,\n installMode: installModeToUse,\n minimumBackgroundDuration: installOptions.minimumBackgroundDuration\n });\n }\n else {\n NativeCodePush.install({\n startLocation: deployDir,\n installMode: installModeToUse,\n minimumBackgroundDuration: installOptions.minimumBackgroundDuration\n }).then(() => { installSuccess && installSuccess(installModeToUse); }, () => { installError && installError(); });\n }\n };\n var preInstallSuccess = () => {\n /* package will be cleaned up after success, on the native side */\n invokeSuccessAndInstall();\n };\n var preInstallFailure = (preInstallError) => {\n CodePushUtil.logError(\"Preinstall failure.\", preInstallError);\n var error = new Error(\"An error has occured while installing the package. \" + CodePushUtil.getErrorMessage(preInstallError));\n installError && installError(error);\n };\n NativeCodePush.preInstall({ startLocation: deployDir }).then(preInstallSuccess, preInstallFailure);\n }, (writeMetadataError) => {\n installError && installError(writeMetadataError);\n });\n });\n }, installError);\n }\n static handleDeployment(newPackageLocation) {\n return __awaiter(this, void 0, void 0, function* () {\n const manifestFile = {\n directory: Directory.Data,\n path: LocalPackage.DownloadUnzipDir + \"/\" + LocalPackage.DiffManifestFile\n };\n const isDiffUpdate = yield FileUtil.fileExists(manifestFile.directory, manifestFile.path);\n if (!(yield FileUtil.directoryExists(Directory.Data, LocalPackage.VersionsDir))) {\n // If directory not exists, create recursive folder\n yield Filesystem.mkdir({\n path: LocalPackage.VersionsDir,\n directory: Directory.Data,\n recursive: true\n });\n }\n if (isDiffUpdate) {\n yield LocalPackage.handleDiffDeployment(newPackageLocation, manifestFile);\n }\n else {\n yield LocalPackage.handleCleanDeployment(newPackageLocation);\n }\n return { deployDir: newPackageLocation, isDiffUpdate };\n });\n }\n writeNewPackageMetadata() {\n return __awaiter(this, void 0, void 0, function* () {\n const timestamp = yield NativeAppInfo.getApplicationBuildTime().catch(buildTimeError => {\n CodePushUtil.logError(\"Could not get application build time. \" + buildTimeError);\n });\n const appVersion = yield NativeAppInfo.getApplicationVersion().catch(appVersionError => {\n CodePushUtil.logError(\"Could not get application version.\" + appVersionError);\n });\n const currentPackageMetadata = {\n nativeBuildTime: timestamp,\n localPath: this.localPath,\n appVersion: appVersion,\n deploymentKey: this.deploymentKey,\n description: this.description,\n isMandatory: this.isMandatory,\n packageSize: this.packageSize,\n label: this.label,\n packageHash: this.packageHash,\n isFirstRun: false,\n failedInstall: false,\n install: undefined\n };\n return new Promise((resolve, reject) => {\n LocalPackage.writeCurrentPackageInformation(currentPackageMetadata, error => error ? reject(error) : resolve());\n });\n });\n }\n static handleCleanDeployment(newPackageLocation) {\n return __awaiter(this, void 0, void 0, function* () {\n // no diff manifest\n const source = { directory: Directory.Data, path: LocalPackage.DownloadUnzipDir };\n const target = { directory: Directory.Data, path: newPackageLocation };\n // TODO: create destination directory if it doesn't exist\n return FileUtil.copyDirectoryEntriesTo(source, target);\n });\n }\n static copyCurrentPackage(newPackageLocation, ignoreList) {\n return __awaiter(this, void 0, void 0, function* () {\n const currentPackagePath = yield new Promise(resolve => {\n LocalPackage.getPackage(LocalPackage.PackageInfoFile, (currentPackage) => resolve(currentPackage.localPath), () => resolve());\n });\n newPackageLocation = currentPackagePath ? newPackageLocation : newPackageLocation + \"/public\";\n // https://github.com/ionic-team/capacitor/pull/2514 Directory.Application variable was removed. (TODO - for check)\n const source = currentPackagePath ? { directory: Directory.Data, path: currentPackagePath } : { directory: Directory.Data, path: \"public\" };\n const target = { directory: Directory.Data, path: newPackageLocation };\n return FileUtil.copyDirectoryEntriesTo(source, target, ignoreList);\n });\n }\n static handleDiffDeployment(newPackageLocation, diffManifest) {\n return __awaiter(this, void 0, void 0, function* () {\n let manifest;\n try {\n yield LocalPackage.copyCurrentPackage(newPackageLocation, [\".codepushrelease\"]);\n yield LocalPackage.handleCleanDeployment(newPackageLocation);\n /* delete files mentioned in the manifest */\n const content = yield FileUtil.readFile(diffManifest.directory, diffManifest.path);\n manifest = JSON.parse(content);\n yield FileUtil.deleteEntriesFromDataDirectory(newPackageLocation, manifest.deletedFiles);\n }\n catch (error) {\n throw new Error(\"Cannot perform diff-update.\");\n }\n });\n }\n /**\n * Writes the given local package information to the current package information file.\n * @param packageInfoMetadata The object to serialize.\n * @param callback In case of an error, this function will be called with the error as the fist parameter.\n */\n static writeCurrentPackageInformation(packageInfoMetadata, callback) {\n var content = JSON.stringify(packageInfoMetadata);\n FileUtil.writeStringToDataFile(content, LocalPackage.RootDir + \"/\" + LocalPackage.PackageInfoFile, true, callback);\n }\n /**\n * Backs up the current package information to the old package information file.\n * This file is used for recovery in case of an update going wrong.\n * @param callback In case of an error, this function will be called with the error as the fist parameter.\n */\n static backupPackageInformationFile() {\n return __awaiter(this, void 0, void 0, function* () {\n const source = {\n directory: Directory.Data,\n path: LocalPackage.RootDir + \"/\" + LocalPackage.PackageInfoFile\n };\n const destination = {\n directory: Directory.Data,\n path: LocalPackage.RootDir + \"/\" + LocalPackage.OldPackageInfoFile\n };\n return FileUtil.copy(source, destination);\n });\n }\n /**\n * Get the previous package information.\n *\n * @param packageSuccess Callback invoked with the old package information.\n * @param packageError Optional callback invoked in case of an error.\n */\n static getOldPackage(packageSuccess, packageError) {\n LocalPackage.getPackage(LocalPackage.OldPackageInfoFile, packageSuccess, packageError);\n }\n /**\n * Reads package information from a given file.\n *\n * @param packageFile The package file name.\n * @param packageSuccess Callback invoked with the package information.\n * @param packageError Optional callback invoked in case of an error.\n */\n static getPackage(packageFile, packageSuccess, packageError) {\n return __awaiter(this, void 0, void 0, function* () {\n var handleError = (e) => {\n packageError && packageError(new Error(\"Cannot read package information. \" + CodePushUtil.getErrorMessage(e)));\n };\n try {\n const content = yield FileUtil.readDataFile(LocalPackage.RootDir + \"/\" + packageFile);\n const packageInfo = JSON.parse(content);\n LocalPackage.getLocalPackageFromMetadata(packageInfo).then(packageSuccess, packageError);\n }\n catch (e) {\n handleError(e);\n }\n });\n }\n static getLocalPackageFromMetadata(metadata) {\n return __awaiter(this, void 0, void 0, function* () {\n if (!metadata) {\n throw new Error(\"Invalid package metadata.\");\n }\n const installFailed = yield NativeAppInfo.isFailedUpdate(metadata.packageHash);\n const isFirstRun = yield NativeAppInfo.isFirstRun(metadata.packageHash);\n const localPackage = new LocalPackage();\n localPackage.appVersion = metadata.appVersion;\n localPackage.deploymentKey = metadata.deploymentKey;\n localPackage.description = metadata.description;\n localPackage.isMandatory = metadata.isMandatory;\n localPackage.failedInstall = installFailed;\n localPackage.isFirstRun = isFirstRun;\n localPackage.label = metadata.label;\n localPackage.localPath = metadata.localPath;\n localPackage.packageHash = metadata.packageHash;\n localPackage.packageSize = metadata.packageSize;\n return localPackage;\n });\n }\n static getCurrentOrDefaultPackage() {\n return LocalPackage.getPackageInfoOrDefault(LocalPackage.PackageInfoFile);\n }\n static getOldOrDefaultPackage() {\n return __awaiter(this, void 0, void 0, function* () {\n return LocalPackage.getPackageInfoOrDefault(LocalPackage.OldPackageInfoFile);\n });\n }\n static getPackageInfoOrDefault(packageFile) {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve, reject) => {\n const packageFailure = () => __awaiter(this, void 0, void 0, function* () {\n /**\n * For the default package we need the app version,\n * and ideally the hash of the binary contents.\n */\n let appVersion;\n try {\n appVersion = yield NativeAppInfo.getApplicationVersion();\n }\n catch (appVersionError) {\n CodePushUtil.logError(\"Could not get application version.\" + appVersionError);\n reject(appVersionError);\n return;\n }\n const defaultPackage = new LocalPackage();\n defaultPackage.appVersion = appVersion;\n try {\n defaultPackage.packageHash = yield NativeAppInfo.getBinaryHash();\n }\n catch (binaryHashError) {\n CodePushUtil.logError(\"Could not get binary hash.\" + binaryHashError);\n }\n resolve(defaultPackage);\n });\n LocalPackage.getPackage(packageFile, resolve, packageFailure);\n });\n });\n }\n static getPackageInfoOrNull(packageFile, packageSuccess, packageError) {\n LocalPackage.getPackage(packageFile, packageSuccess, packageSuccess.bind(null, null));\n }\n /**\n * Returns the default options for the CodePush install operation.\n * If the options are not defined yet, the static DefaultInstallOptions member will be instantiated.\n */\n static getDefaultInstallOptions() {\n if (!LocalPackage.DefaultInstallOptions) {\n LocalPackage.DefaultInstallOptions = {\n installMode: InstallMode.ON_NEXT_RESTART,\n minimumBackgroundDuration: 0,\n mandatoryInstallMode: InstallMode.IMMEDIATE\n };\n }\n return LocalPackage.DefaultInstallOptions;\n }\n}\nLocalPackage.RootDir = \"codepush\";\nLocalPackage.DownloadDir = LocalPackage.RootDir + \"/download\";\nLocalPackage.DownloadUnzipDir = LocalPackage.DownloadDir + \"/unzipped\";\nLocalPackage.DeployDir = LocalPackage.RootDir + \"/deploy\";\nLocalPackage.VersionsDir = LocalPackage.DeployDir + \"/versions\";\nLocalPackage.PackageUpdateFileName = \"update.zip\";\nLocalPackage.PackageInfoFile = \"currentPackage.json\";\nLocalPackage.OldPackageInfoFile = \"oldPackage.json\";\nLocalPackage.DiffManifestFile = \"hotcodepush.json\";\n//# sourceMappingURL=localPackage.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { CodePushUtil } from \"./codePushUtil\";\nimport { LocalPackage } from \"./localPackage\";\nimport { NativeAppInfo } from \"./nativeAppInfo\";\nimport { Package } from \"./package\";\nimport { Sdk } from \"./sdk\";\nimport { Directory, Filesystem } from \"@capacitor/filesystem\";\nimport { FileUtil } from \"./fileUtil\";\nimport { CapacitorHttp as Http } from \"@capacitor/core\";\n/**\n * Defines a remote package, which represents an update package available for download.\n */\nexport class RemotePackage extends Package {\n constructor() {\n super(...arguments);\n this.isDownloading = false;\n }\n /**\n * Downloads the package update from the CodePush service.\n * TODO: implement download progress\n *\n * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter.\n */\n download(downloadProgress) {\n return __awaiter(this, void 0, void 0, function* () {\n CodePushUtil.logMessage(\"Downloading update\");\n if (!this.downloadUrl) {\n CodePushUtil.throwError(new Error(\"The remote package does not contain a download URL.\"));\n }\n this.isDownloading = true;\n const file = LocalPackage.DownloadDir + \"/\" + LocalPackage.PackageUpdateFileName;\n const fullPath = yield FileUtil.getUri(Directory.Data, file);\n try {\n // create directory if not exists\n if (!(yield FileUtil.directoryExists(Directory.Data, LocalPackage.DownloadDir))) {\n yield Filesystem.mkdir({\n path: LocalPackage.DownloadDir,\n directory: Directory.Data,\n recursive: true,\n });\n }\n // delete file if it exists\n if (yield FileUtil.fileExists(Directory.Data, file)) {\n yield Filesystem.deleteFile({ directory: Directory.Data, path: file });\n }\n const downloadedFile = yield Http.get({\n url: this.downloadUrl,\n method: \"GET\",\n responseType: \"blob\"\n });\n yield Filesystem.writeFile({\n data: downloadedFile.data,\n path: file,\n directory: Directory.Data,\n });\n }\n catch (e) {\n CodePushUtil.throwError(new Error(\"An error occured while downloading the package. \" + (e && e.message) ? e.message : \"\"));\n }\n finally {\n this.isDownloading = false;\n }\n const installFailed = yield NativeAppInfo.isFailedUpdate(this.packageHash);\n const localPackage = new LocalPackage();\n localPackage.deploymentKey = this.deploymentKey;\n localPackage.description = this.description;\n localPackage.label = this.label;\n localPackage.appVersion = this.appVersion;\n localPackage.isMandatory = this.isMandatory;\n localPackage.packageHash = this.packageHash;\n localPackage.isFirstRun = false;\n localPackage.failedInstall = installFailed;\n localPackage.localPath = fullPath;\n CodePushUtil.logMessage(\"Package download success: \" + JSON.stringify(localPackage));\n Sdk.reportStatusDownload(localPackage, localPackage.deploymentKey);\n return localPackage;\n });\n }\n /**\n * Aborts the current download session, previously started with download().\n */\n abortDownload() {\n return __awaiter(this, void 0, void 0, function* () {\n // TODO: implement download abort\n return new Promise((resolve) => {\n this.isDownloading = false;\n resolve();\n });\n });\n }\n}\n//# sourceMappingURL=remotePackage.js.map","/**\n * Defines the possible result and intermediate statuses of the window.codePush.sync operation.\n * The result statuses are final, mutually exclusive statuses of the sync operation. The operation will end with only one of the possible result statuses.\n * The intermediate statuses are not final, one or more of them can happen before sync ends, based on the options you use and user interaction.\n *\n * NOTE: Adding new statuses or changing old statuses requires an update to CodePush.sync(), which must know which callbacks are results and which are not!\n * Also, don't forget to change the TestMessage module in ServerUtils!\n * AND THE codePush.d.ts (typings) file!!!\n */\nexport var SyncStatus;\n(function (SyncStatus) {\n /**\n * Result status - the application is up to date.\n */\n SyncStatus[SyncStatus[\"UP_TO_DATE\"] = 0] = \"UP_TO_DATE\";\n /**\n * Result status - an update is available, it has been downloaded, unzipped and copied to the deployment folder.\n * After the completion of the callback invoked with SyncStatus.UPDATE_INSTALLED, the application will be reloaded with the updated code and resources.\n */\n SyncStatus[SyncStatus[\"UPDATE_INSTALLED\"] = 1] = \"UPDATE_INSTALLED\";\n /**\n * Result status - an optional update is available, but the user declined to install it. The update was not downloaded.\n */\n SyncStatus[SyncStatus[\"UPDATE_IGNORED\"] = 2] = \"UPDATE_IGNORED\";\n /**\n * Result status - an error happened during the sync operation. This might be an error while communicating with the server, downloading or unziping the update.\n * The console logs should contain more information about what happened. No update has been applied in this case.\n */\n SyncStatus[SyncStatus[\"ERROR\"] = 3] = \"ERROR\";\n /**\n * Result status - there is an ongoing sync in progress, so this attempt to sync has been aborted.\n */\n SyncStatus[SyncStatus[\"IN_PROGRESS\"] = 4] = \"IN_PROGRESS\";\n /**\n * Intermediate status - the plugin is about to check for updates.\n */\n SyncStatus[SyncStatus[\"CHECKING_FOR_UPDATE\"] = 5] = \"CHECKING_FOR_UPDATE\";\n /**\n * Intermediate status - a user dialog is about to be displayed. This status will be reported only if user interaction is enabled.\n */\n SyncStatus[SyncStatus[\"AWAITING_USER_ACTION\"] = 6] = \"AWAITING_USER_ACTION\";\n /**\n * Intermediate status - the update packages is about to be downloaded.\n */\n SyncStatus[SyncStatus[\"DOWNLOADING_PACKAGE\"] = 7] = \"DOWNLOADING_PACKAGE\";\n /**\n * Intermediate status - the update package is about to be installed.\n */\n SyncStatus[SyncStatus[\"INSTALLING_UPDATE\"] = 8] = \"INSTALLING_UPDATE\";\n})(SyncStatus || (SyncStatus = {}));\n//# sourceMappingURL=syncStatus.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { AcquisitionStatus } from \"code-push/script/acquisition-sdk\";\nimport { CodePushUtil } from \"./codePushUtil\";\nimport { InstallMode } from \"./installMode\";\nimport { LocalPackage } from \"./localPackage\";\nimport { NativeAppInfo } from \"./nativeAppInfo\";\nimport { CodePush as NativeCodePush } from \"./nativeCodePushPlugin\";\nimport { RemotePackage } from \"./remotePackage\";\nimport { Sdk } from \"./sdk\";\nimport { SyncStatus } from \"./syncStatus\";\nimport { Dialog } from \"@capacitor/dialog\";\n/**\n * This is the entry point to Cordova CodePush SDK.\n * It provides the following features to the app developer:\n * - polling the server for new versions of the app\n * - notifying the plugin that the application loaded successfully after an update\n * - getting information about the currently deployed package\n */\nclass CodePush {\n /**\n * Notifies the plugin that the update operation succeeded and that the application is ready.\n * Calling this function is required on the first run after an update. On every subsequent application run, calling this function is a noop.\n * If using sync API, calling this function is not required since sync calls it internally.\n */\n notifyApplicationReady() {\n return NativeCodePush.notifyApplicationReady();\n }\n /**\n * Reloads the application. If there is a pending update package installed using ON_NEXT_RESTART or ON_NEXT_RESUME modes, the update\n * will be immediately visible to the user. Otherwise, calling this function will simply reload the current version of the application.\n */\n restartApplication() {\n return NativeCodePush.restartApplication();\n }\n /**\n * Reports an application status back to the server.\n * !!! This function is called from the native side, please make changes accordingly. !!!\n */\n reportStatus(status, label, appVersion, deploymentKey, lastVersionLabelOrAppVersion, lastVersionDeploymentKey) {\n if (((!label && appVersion === lastVersionLabelOrAppVersion) || label === lastVersionLabelOrAppVersion)\n && deploymentKey === lastVersionDeploymentKey) {\n // No-op since the new appVersion and label is exactly the same as the previous\n // (the app might have been updated via a direct or HockeyApp deployment).\n return;\n }\n var createPackageForReporting = (label, appVersion) => {\n return {\n /* The SDK only reports the label and appVersion.\n The rest of the properties are added for type safety. */\n label, appVersion, deploymentKey,\n description: null, isMandatory: false,\n packageHash: null, packageSize: null,\n failedInstall: false\n };\n };\n var reportDone = (error) => {\n var reportArgs = {\n status,\n label,\n appVersion,\n deploymentKey,\n lastVersionLabelOrAppVersion,\n lastVersionDeploymentKey\n };\n if (error) {\n CodePushUtil.logError(`An error occurred while reporting status: ${JSON.stringify(reportArgs)}`, error);\n NativeCodePush.reportFailed({ statusReport: reportArgs });\n }\n else {\n CodePushUtil.logMessage(`Reported status: ${JSON.stringify(reportArgs)}`);\n NativeCodePush.reportSucceeded({ statusReport: reportArgs });\n }\n };\n switch (status) {\n case ReportStatus.STORE_VERSION:\n Sdk.reportStatusDeploy(null, AcquisitionStatus.DeploymentSucceeded, deploymentKey, lastVersionLabelOrAppVersion, lastVersionDeploymentKey, reportDone);\n break;\n case ReportStatus.UPDATE_CONFIRMED:\n Sdk.reportStatusDeploy(createPackageForReporting(label, appVersion), AcquisitionStatus.DeploymentSucceeded, deploymentKey, lastVersionLabelOrAppVersion, lastVersionDeploymentKey, reportDone);\n break;\n case ReportStatus.UPDATE_ROLLED_BACK:\n Sdk.reportStatusDeploy(createPackageForReporting(label, appVersion), AcquisitionStatus.DeploymentFailed, deploymentKey, lastVersionLabelOrAppVersion, lastVersionDeploymentKey, reportDone);\n break;\n }\n }\n /**\n * Get the current package information.\n *\n * @returns The currently deployed package information.\n */\n getCurrentPackage() {\n return __awaiter(this, void 0, void 0, function* () {\n const pendingUpdate = yield NativeAppInfo.isPendingUpdate();\n var packageInfoFile = pendingUpdate ? LocalPackage.OldPackageInfoFile : LocalPackage.PackageInfoFile;\n return new Promise((resolve, reject) => {\n LocalPackage.getPackageInfoOrNull(packageInfoFile, resolve, reject);\n });\n });\n }\n /**\n * Gets the pending package information, if any. A pending package is one that has been installed but the application still runs the old code.\n * This happens only after a package has been installed using ON_NEXT_RESTART or ON_NEXT_RESUME mode, but the application was not restarted/resumed yet.\n */\n getPendingPackage() {\n return __awaiter(this, void 0, void 0, function* () {\n const pendingUpdate = yield NativeAppInfo.isPendingUpdate();\n if (!pendingUpdate)\n return null;\n return new Promise((resolve, reject) => {\n LocalPackage.getPackageInfoOrNull(LocalPackage.PackageInfoFile, resolve, reject);\n });\n });\n }\n /**\n * Checks with the CodePush server if an update package is available for download.\n *\n * @param querySuccess Callback invoked in case of a successful response from the server.\n * The callback takes one RemotePackage parameter. A non-null package is a valid update.\n * A null package means the application is up to date for the current native application version.\n * @param queryError Optional callback invoked in case of an error.\n * @param deploymentKey Optional deployment key that overrides the config.xml setting.\n */\n checkForUpdate(querySuccess, queryError, deploymentKey) {\n try {\n const callback = (error, remotePackageOrUpdateNotification) => __awaiter(this, void 0, void 0, function* () {\n if (error) {\n CodePushUtil.invokeErrorCallback(error, queryError);\n }\n else {\n const appUpToDate = () => {\n CodePushUtil.logMessage(\"App is up to date.\");\n querySuccess && querySuccess(null);\n };\n if (remotePackageOrUpdateNotification) {\n if (remotePackageOrUpdateNotification.updateAppVersion) {\n /* There is an update available for a different version. In the current version of the plugin, we treat that as no update. */\n CodePushUtil.logMessage(\"An update is available, but it is targeting a newer binary version than you are currently running.\");\n appUpToDate();\n }\n else {\n /* There is an update available for the current version. */\n var remotePackage = remotePackageOrUpdateNotification;\n const installFailed = yield NativeAppInfo.isFailedUpdate(remotePackage.packageHash);\n var result = new RemotePackage();\n result.appVersion = remotePackage.appVersion;\n result.deploymentKey = deploymentKey; // server does not send back the deployment key\n result.description = remotePackage.description;\n result.downloadUrl = remotePackage.downloadUrl;\n result.isMandatory = remotePackage.isMandatory;\n result.label = remotePackage.label;\n result.packageHash = remotePackage.packageHash;\n result.packageSize = remotePackage.packageSize;\n result.failedInstall = installFailed;\n CodePushUtil.logMessage(\"An update is available. \" + JSON.stringify(result));\n querySuccess && querySuccess(result);\n }\n }\n else {\n appUpToDate();\n }\n }\n });\n const queryUpdate = () => __awaiter(this, void 0, void 0, function* () {\n try {\n const acquisitionManager = yield Sdk.getAcquisitionManager(deploymentKey);\n const localPackage = yield LocalPackage.getCurrentOrDefaultPackage();\n try {\n const currentBinaryVersion = yield NativeAppInfo.getApplicationVersion();\n localPackage.appVersion = currentBinaryVersion;\n }\n catch (e) {\n /* Nothing to do */\n /* TODO : Why ? */\n }\n CodePushUtil.logMessage(\"Checking for update.\");\n acquisitionManager.queryUpdateWithCurrentPackage(localPackage, callback);\n }\n catch (e) {\n CodePushUtil.invokeErrorCallback(e, queryError);\n }\n });\n if (deploymentKey) {\n queryUpdate();\n }\n else {\n NativeAppInfo.getDeploymentKey()\n .then((defaultDeploymentKey) => {\n deploymentKey = defaultDeploymentKey;\n queryUpdate();\n }, (deploymentKeyError) => {\n CodePushUtil.invokeErrorCallback(deploymentKeyError, queryError);\n });\n }\n }\n catch (e) {\n CodePushUtil.invokeErrorCallback(new Error(\"An error occurred while querying for updates.\" + CodePushUtil.getErrorMessage(e)), queryError);\n }\n }\n /**\n * Convenience method for installing updates in one method call.\n * This method is provided for simplicity, and its behavior can be replicated by using window.codePush.checkForUpdate(), RemotePackage's download() and LocalPackage's install() methods.\n * If another sync is already running, it yields SyncStatus.IN_PROGRESS.\n *\n * The algorithm of this method is the following:\n * - Checks for an update on the CodePush server.\n * - If an update is available\n * - If the update is mandatory and the alertMessage is set in options, the user will be informed that the application will be updated to the latest version.\n * The update package will then be downloaded and applied.\n * - If the update is not mandatory and the confirmMessage is set in options, the user will be asked if they want to update to the latest version.\n * If they decline, the syncCallback will be invoked with SyncStatus.UPDATE_IGNORED.\n * - Otherwise, the update package will be downloaded and applied with no user interaction.\n * - If no update is available on the server, the syncCallback will be invoked with the SyncStatus.UP_TO_DATE.\n * - If an error occurs during checking for update, downloading or installing it, the syncCallback will be invoked with the SyncStatus.ERROR.\n *\n * @param syncOptions Optional SyncOptions parameter configuring the behavior of the sync operation.\n * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter.\n */\n sync(syncOptions, downloadProgress) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield new Promise((resolve, reject) => {\n /* Check if a sync is already in progress */\n if (CodePush.SyncInProgress) {\n /* A sync is already in progress */\n CodePushUtil.logMessage(\"Sync already in progress.\");\n resolve(SyncStatus.IN_PROGRESS);\n }\n /* Create a callback that resets the SyncInProgress flag when the sync is complete\n * If the sync status is a result status, then the sync must be complete and the flag must be updated\n * Otherwise, do not change the flag and trigger the syncCallback as usual\n */\n const syncCallbackAndUpdateSyncInProgress = (err, result) => {\n if (err) {\n syncOptions.onSyncError && syncOptions.onSyncError(err);\n CodePush.SyncInProgress = false;\n reject(err);\n }\n else {\n /* Call the user's callback */\n syncOptions.onSyncStatusChanged && syncOptions.onSyncStatusChanged(result);\n /* Check if the sync operation is over */\n switch (result) {\n case SyncStatus.ERROR:\n case SyncStatus.UP_TO_DATE:\n case SyncStatus.UPDATE_IGNORED:\n case SyncStatus.UPDATE_INSTALLED:\n /* The sync has completed */\n CodePush.SyncInProgress = false;\n resolve(result);\n break;\n default:\n /* The sync is not yet complete, so do nothing */\n break;\n }\n }\n };\n /* Begin the sync */\n CodePush.SyncInProgress = true;\n this.syncInternal(syncCallbackAndUpdateSyncInProgress, syncOptions, downloadProgress);\n });\n });\n }\n /**\n * Convenience method for installing updates in one method call.\n * This method is provided for simplicity, and its behavior can be replicated by using window.codePush.checkForUpdate(), RemotePackage's download() and LocalPackage's install() methods.\n *\n * A helper function for the sync function. It does not check if another sync is ongoing.\n *\n * @param syncCallback Optional callback to be called with the status of the sync operation.\n * The callback will be called only once, and the possible statuses are defined by the SyncStatus enum.\n * @param syncOptions Optional SyncOptions parameter configuring the behavior of the sync operation.\n * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter.\n *\n */\n syncInternal(syncCallback, syncOptions, downloadProgress) {\n /* No options were specified, use default */\n const defaultSyncOptions = this.getDefaultSyncOptions();\n if (!syncOptions) {\n syncOptions = defaultSyncOptions;\n }\n else {\n /* Some options were specified */\n /* Handle dialog options */\n const defaultDialogOptions = this.getDefaultUpdateDialogOptions();\n if (syncOptions.updateDialog) {\n if (typeof syncOptions.updateDialog !== typeof ({})) {\n /* updateDialog set to true condition, use default options */\n syncOptions.updateDialog = defaultDialogOptions;\n }\n else {\n /* some options were specified, merge with default */\n CodePushUtil.copyUnassignedMembers(defaultDialogOptions, syncOptions.updateDialog);\n }\n }\n /* Handle other options. Dialog options will not be overwritten. */\n CodePushUtil.copyUnassignedMembers(defaultSyncOptions, syncOptions);\n }\n this.notifyApplicationReady();\n const onError = (error) => {\n CodePushUtil.logError(\"An error occurred during sync.\", error);\n syncCallback && syncCallback(error, SyncStatus.ERROR);\n };\n const onInstallSuccess = (appliedWhen) => {\n switch (appliedWhen) {\n case InstallMode.ON_NEXT_RESTART:\n CodePushUtil.logMessage(\"Update is installed and will be run on the next app restart.\");\n break;\n case InstallMode.ON_NEXT_RESUME:\n if (syncOptions.minimumBackgroundDuration > 0) {\n CodePushUtil.logMessage(`Update is installed and will be run after the app has been in the background for at least ${syncOptions.minimumBackgroundDuration} seconds.`);\n }\n else {\n CodePushUtil.logMessage(\"Update is installed and will be run when the app next resumes.\");\n }\n break;\n }\n syncCallback && syncCallback(null, SyncStatus.UPDATE_INSTALLED);\n };\n const onDownloadSuccess = (localPackage) => {\n syncCallback && syncCallback(null, SyncStatus.INSTALLING_UPDATE);\n localPackage.install(syncOptions).then(onInstallSuccess, onError);\n };\n const downloadAndInstallUpdate = (remotePackage) => {\n syncCallback && syncCallback(null, SyncStatus.DOWNLOADING_PACKAGE);\n remotePackage.download(downloadProgress).then(onDownloadSuccess, onError);\n };\n const onUpdate = (remotePackage) => __awaiter(this, void 0, void 0, function* () {\n if (remotePackage === null) {\n /* Then the app is up to date */\n syncCallback && syncCallback(null, SyncStatus.UP_TO_DATE);\n }\n else {\n if (remotePackage.failedInstall && syncOptions.ignoreFailedUpdates) {\n CodePushUtil.logMessage(\"An update is available, but it is being ignored due to have been previously rolled back.\");\n syncCallback && syncCallback(null, SyncStatus.UPDATE_IGNORED);\n }\n else {\n if (syncOptions.updateDialog) {\n CodePushUtil.logMessage(\"Awaiting user action.\");\n syncCallback && syncCallback(null, SyncStatus.AWAITING_USER_ACTION);\n const dlgOpts = syncOptions.updateDialog;\n if (remotePackage.isMandatory) {\n /* Alert user */\n const message = dlgOpts.appendReleaseDescription ?\n dlgOpts.mandatoryUpdateMessage + dlgOpts.descriptionPrefix + remotePackage.description :\n dlgOpts.mandatoryUpdateMessage;\n yield Dialog.alert({\n message,\n title: dlgOpts.updateTitle,\n buttonTitle: dlgOpts.mandatoryContinueButtonLabel\n });\n downloadAndInstallUpdate(remotePackage);\n }\n else {\n /* Confirm update with user */\n const message = dlgOpts.appendReleaseDescription ?\n dlgOpts.optionalUpdateMessage + dlgOpts.descriptionPrefix + remotePackage.description\n : dlgOpts.optionalUpdateMessage;\n const confirmResult = yield Dialog.confirm({\n message,\n title: dlgOpts.updateTitle,\n okButtonTitle: dlgOpts.optionalInstallButtonLabel,\n cancelButtonTitle: dlgOpts.optionalIgnoreButtonLabel\n });\n if (confirmResult.value === true) {\n /* Install */\n downloadAndInstallUpdate(remotePackage);\n }\n else {\n /* Cancel */\n CodePushUtil.logMessage(\"User cancelled the update.\");\n syncCallback && syncCallback(null, SyncStatus.UPDATE_IGNORED);\n }\n }\n }\n else {\n /* No user interaction */\n downloadAndInstallUpdate(remotePackage);\n }\n }\n }\n });\n syncCallback && syncCallback(null, SyncStatus.CHECKING_FOR_UPDATE);\n this.checkForUpdate(onUpdate, onError, syncOptions.deploymentKey);\n }\n /**\n * Returns the default options for the CodePush sync operation.\n * If the options are not defined yet, the static DefaultSyncOptions member will be instantiated.\n */\n getDefaultSyncOptions() {\n if (!CodePush.DefaultSyncOptions) {\n CodePush.DefaultSyncOptions = {\n ignoreFailedUpdates: true,\n installMode: InstallMode.ON_NEXT_RESTART,\n minimumBackgroundDuration: 0,\n mandatoryInstallMode: InstallMode.IMMEDIATE,\n updateDialog: false,\n deploymentKey: undefined\n };\n }\n return CodePush.DefaultSyncOptions;\n }\n /**\n * Returns the default options for the update dialog.\n * Please note that the dialog is disabled by default.\n */\n getDefaultUpdateDialogOptions() {\n if (!CodePush.DefaultUpdateDialogOptions) {\n CodePush.DefaultUpdateDialogOptions = {\n updateTitle: \"Update available\",\n mandatoryUpdateMessage: \"An update is available that must be installed.\",\n mandatoryContinueButtonLabel: \"Continue\",\n optionalUpdateMessage: \"An update is available. Would you like to install it?\",\n optionalInstallButtonLabel: \"Install\",\n optionalIgnoreButtonLabel: \"Ignore\",\n appendReleaseDescription: false,\n descriptionPrefix: \" Description: \"\n };\n }\n return CodePush.DefaultUpdateDialogOptions;\n }\n}\n/**\n * Defines the application statuses reported from the native layer.\n * !!! This enum is defined in native code as well, please make changes accordingly. !!!\n */\nvar ReportStatus;\n(function (ReportStatus) {\n ReportStatus[ReportStatus[\"STORE_VERSION\"] = 0] = \"STORE_VERSION\";\n ReportStatus[ReportStatus[\"UPDATE_CONFIRMED\"] = 1] = \"UPDATE_CONFIRMED\";\n ReportStatus[ReportStatus[\"UPDATE_ROLLED_BACK\"] = 2] = \"UPDATE_ROLLED_BACK\";\n})(ReportStatus || (ReportStatus = {}));\nexport const codePush = new CodePush();\nwindow.codePush = codePush;\n//# sourceMappingURL=codePush.js.map"],"names":["InstallMode","__awaiter","this","Filesystem","Directory","Encoding","CodePush","registerPlugin","NativeCodePush","NativeHttp","AcquisitionManager","device","Device","AcquisitionStatus","Http","Dialog"],"mappings":";;;IAAA;IACA;IACA;IACO,MAAM,YAAY,CAAC;IAC1B;IACA;IACA;IACA,IAAI,OAAO,qBAAqB,CAAC,aAAa,EAAE,WAAW,EAAE;IAC7D,QAAQ,KAAK,IAAI,GAAG,IAAI,aAAa,EAAE;IACvC,YAAY,IAAI,WAAW,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,WAAW,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE;IAC7E,gBAAgB,WAAW,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IACtD,aAAa;IACb,SAAS;IACT,KAAK;IACL;IACA;IACA;IACA;IACA,IAAI,OAAO,uBAAuB,CAAC,eAAe,EAAE,aAAa,EAAE;IACnE,QAAQ,OAAO,CAAC,KAAK,EAAE,MAAM,KAAK;IAClC,YAAY,IAAI,KAAK,EAAE;IACvB,gBAAgB,aAAa,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;IACtD,aAAa;IACb,iBAAiB;IACjB,gBAAgB,eAAe,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;IAC3D,aAAa;IACb,SAAS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CAAC;IACD;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC;IACjB,CAAC,UAAU,YAAY,EAAE;IACzB,IAAI,YAAY,CAAC,YAAY,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;IACtE,IAAI,YAAY,CAAC,YAAY,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,GAAG,kBAAkB,CAAC;IAC5E,IAAI,YAAY,CAAC,YAAY,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAoB,CAAC;IAChF,CAAC,EAAE,YAAY,KAAK,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AAC5B,UAAC,QAAQ,GAAG,IAAI,QAAQ,GAAG;IACvC,MAAM,CAAC,QAAQ,GAAG,QAAQ;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/package.json b/package.json index 076ed56a..3b4e48a6 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "swiftlint": "node-swiftlint", "build": "npm run clean && tsc && rollup -c rollup.config.js", "clean": "rimraf ./dist", - "watch": "tsc --watch" + "watch": "tsc --watch", + "prepublishOnly": "npm run build" }, "keywords": [ "capacitor", diff --git a/src/fileUtil.ts b/src/fileUtil.ts index 18d6b1a4..96421233 100644 --- a/src/fileUtil.ts +++ b/src/fileUtil.ts @@ -74,9 +74,9 @@ export class FileUtil { for (let i = 0; i < files.length; i++) { const file = files[i]; // @ts-ignore - if (ignoreList.includes(file)) continue; - const sourcePath = sourceDir.path + "/" + file; - const destPath = destinationDir.path + "/" + file; + if (ignoreList.includes(file.name)) continue; + const sourcePath = sourceDir.path + "/" + file.name; + const destPath = destinationDir.path + "/" + file.name; const source = { ...sourceDir, path: sourcePath }; const destination = { ...destinationDir, path: destPath }; if (await FileUtil.directoryExists(source.directory, source.path)) { // is directory diff --git a/src/remotePackage.ts b/src/remotePackage.ts index 99abfc4c..73fe867e 100644 --- a/src/remotePackage.ts +++ b/src/remotePackage.ts @@ -62,7 +62,7 @@ export class RemotePackage extends Package implements IRemotePackage { data: downloadedFile.data, path: file, directory: Directory.Data, - }) + }); } catch (e) { CodePushUtil.throwError(new Error("An error occured while downloading the package. " + (e && e.message) ? e.message : "")); } finally {