public void OnUploadResponce(Bundle bundle, AndroidPublisherService androidPublisherService, IAndroidDistributionSettings configs, AppEdit edit)
        {
            if (bundle == null)
            {
                return;
            }

            var track = androidPublisherService.LoadTrackBranch(configs, edit);

            track.UpdateTrackInformation(bundle.VersionCode, configs);

            var updatedTrack = androidPublisherService.Edits.Tracks
                               .Update(track, configs.PackageName, edit.Id, track.TrackValue).Execute();

            Debug.Log("Track " + updatedTrack.TrackValue + " has been updated.");
        }
Exemple #2
0
        private void OnUploadResponce(Apk apk, AndroidPublisherService androidPublisherService, IAndroidDistributionSettings configs, AppEdit edit)
        {
            if (apk == null)
            {
                return;
            }

            var track = androidPublisherService.LoadTrackBranch(configs, edit);

            track.UpdateTrackInformation(apk.VersionCode, configs);

            //Verify if exist any obb
            var needUploadExtensionsFiles = CheckIfNeedProcessObb(configs, out string[] obbs);

            if (needUploadExtensionsFiles)
            {
                UploadObbFiles(androidPublisherService, edit, apk, configs, obbs);
            }

            var updatedTrack = androidPublisherService.Edits.Tracks
                               .Update(track, configs.PackageName, edit.Id, track.TrackValue).Execute();

            Debug.Log("Track " + updatedTrack.TrackValue + " has been updated.");
        }