Skip to content

Commit

Permalink
Refresh apk listing
Browse files Browse the repository at this point in the history
  • Loading branch information
uholeschak committed Jan 24, 2018
1 parent 3bca54a commit 24f5450
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions Tools/ApkUploader/ApkUploader/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,9 @@ private bool ListTracks()
}
}
}
catch (Exception e)
catch (Exception)
{
Console.WriteLine(e);
throw;
// ignored
}
}
else
Expand Down Expand Up @@ -487,6 +486,20 @@ private bool ChangeTrack(string fromTrack, string toTrack)
sb.AppendLine($"Unassigned from track: {fromTrack}");
UpdateStatus(sb.ToString());

ApkListingsListResponse listingsResponse = await edits.Apklistings.List(PackageName, appEdit.Id, currentVersion).ExecuteAsync(_cts.Token);
if (listingsResponse.Listings != null)
{
foreach (ApkListing listing in listingsResponse.Listings)
{
if (listing.RecentChanges != null)
{
await edits.Apklistings.Update(listing, PackageName, appEdit.Id, currentVersion, listing.Language).ExecuteAsync(_cts.Token);
sb.AppendLine($"Changes for language {listing.Language} updated");
UpdateStatus(sb.ToString());
}
}
}

EditsResource.CommitRequest commitRequest = edits.Commit(PackageName, appEdit.Id);
AppEdit appEditCommit = await commitRequest.ExecuteAsync(_cts.Token);
sb.AppendLine($"App edit committed: {appEditCommit.Id}");
Expand Down

0 comments on commit 24f5450

Please sign in to comment.