mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
upgrade to v3 publisher apis
This commit is contained in:
parent
f9b617339d
commit
96ce8165e9
2 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue