fixing anothe issue with trying to promisify a null
This commit is contained in:
Родитель
75bb3b2a37
Коммит
0e47e620ca
|
@ -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": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче