fixing anothe issue with trying to promisify a null

This commit is contained in:
Ryu Yu 2016-02-10 15:57:08 -08:00
Родитель 75bb3b2a37
Коммит 0e47e620ca
5 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -32,7 +32,7 @@ var globalParams = { auth: null, params: {} };
var packageName = tryGetPackageName(apkFile);
var jwtClient = setupAuthClient(key);
var edits = publisher.edits;
[edits, edits.apks, edits.tracks, edits.apkListings, jwtClient].forEach(Promise.promisifyAll);
[edits, edits.apks, edits.tracks, jwtClient].forEach(Promise.promisifyAll);
globalParams.auth = jwtClient;
updateGlobalParams("packageName", packageName);
@ -66,13 +66,12 @@ try {
}
currentEdit = currentEdit.then(function (res) {
edits.commitAsync().then(function (res) {
return edits.commitAsync().then(function (res) {
console.log("APK successfully published!");
console.log("Track: " + track);
tl.exit(0);
});
})
.catch(function (err) {
}).catch(function (err) {
console.error(err);
tl.exit(1);
});

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "vso-task-google-play",
"version": "0.1.1",
"version": "0.1.3",
"description": "A VSO build task for deloying an APK to the Google Play store",
"main": "GooglePlay.js",
"scripts": {

Просмотреть файл

@ -14,7 +14,7 @@
"version": {
"Major": "0",
"Minor": "1",
"Patch": "1"
"Patch": "3"
},
"minimumAgentVersion": "1.83.0",
"instanceNameFormat": "Deploy $(apkFile) to the Google Play store",

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "vso-android-extension",
"version": "0.0.2",
"version": "0.0.4",
"description": "A set of build tasks to better enable Android development.",
"author": "Microsoft",
"license": "MIT",

Просмотреть файл

@ -2,7 +2,7 @@
"manifestVersion": 1.0,
"extensionId": "joncart-vsoExtensionAndroid",
"name": "Android",
"version": "0.0.2",
"version": "0.0.4",
"publisher": "joncart",
"description": "A set of build tasks to better enable Android development",
"categories": [