bitrise-steplib / steps-google-play-deploy

MIT License
54 stars 35 forks source link

Upload rejected for large app bundles #121

Closed reven86 closed 3 years ago

reven86 commented 3 years ago

Issue description

When trying to upload quite large app bundle I experience the following error from google api:

Uploading /Users/vagrant/deploy/app-blitz-release-bitrise-signed.aab 1/1
Failed to upload APKs: failed to upload app bundle, error: googleapi: Error 403: The installation of the app bundle may be too large and trigger user warning on some devices, and this needs to be explicitly acknowledged in the request., forbidden

The app bundle includes asset packs and the total size is about 200mb. Quick search on google says it should be sufficient to just acknowledge the warning by passing ackBundleInstallationWarning=true to the API. I found even the method in Go api that should work

https://github.com/bitrise-steplib/steps-google-play-deploy/blob/c4bd521e0fa6f00cd60c71934289879da143180c/vendor/google.golang.org/api/androidpublisher/v3/androidpublisher-gen.go#L4329

Though I'm not a Go programmer to check it myself and open pull request. Just letting you know that large app bundles can't be uploaded currently with the Step and there is no option to turn on the flag in the UI.

Roland-Bak commented 3 years ago

Hello @reven86 šŸ‘‹

Thank you for your findings, I've forwarded them to the development team, who will take a look at this šŸ™‚

Bence1001 commented 3 years ago

Hi @reven86! šŸ‘‹

We've just released 3.5.0 that adds a new input: Acknowledge Bundle Installation Warning. If you set this to true it will accept the large App Bundle warning that you described.

Although we were unable to reproduce this with our sample apps, we hope this will fix your issue.

Let us know if it worked!

reven86 commented 3 years ago

Yes it is working now, thanks a lot!