upgrade to v3 publisher apis

This commit is contained in:
Kyle Spearrin 2019-11-20 09:57:40 -05:00
parent f9b617339d
commit 96ce8165e9
2 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,5 @@
using Google.Apis.AndroidPublisher.v2;
using Google.Apis.AndroidPublisher.v2.Data;
using Google.Apis.AndroidPublisher.v3;
using Google.Apis.AndroidPublisher.v3.Data;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Services;
using System;
@ -104,7 +104,10 @@ namespace Bit.Publisher
var trackRequest = service.Edits.Tracks.Update(new Track
{
VersionCodes = new List<int?> { apk.VersionCode }
Releases = new List<TrackRelease>
{
new TrackRelease { VersionCodes = new List<long?> { apk.VersionCode } }
}
}, Package, edit.Id, _track);
var updatedTrack = await trackRequest.ExecuteAsync();

View file

@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Google.Apis.AndroidPublisher.v2" Version="1.41.1.1748" />
<PackageReference Include="Google.Apis.AndroidPublisher.v3" Version="1.42.0.1766" />
</ItemGroup>
</Project>