Skip to content

Commit

Permalink
don't upload mapping for bundles (#516)
Browse files Browse the repository at this point in the history
it is already inside bundle;
recently google play api started to response 400 for mapping uploaded along with bundle
  • Loading branch information
dsvoronin authored Jul 24, 2020
1 parent 9c124ad commit 2526664
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ interface GooglePlayDeployer {
.map { deploy ->
val editId = insertEdit(deploy.applicationId)
val versionCode = uploadBinary(deploy, editId)
uploadProguard(deploy, editId, versionCode)
setTrack(deploy, editId, versionCode)
validate(deploy, editId)
editId to deploy
Expand All @@ -72,7 +71,9 @@ interface GooglePlayDeployer {
private fun uploadBinary(deploy: GooglePlayDeploy, editId: String): Int {
return when (deploy.binaryType) {
GooglePlayDeploy.BinaryType.APK -> {
uploadApk(deploy, editId)
val versionCode = uploadApk(deploy, editId)
uploadProguard(deploy, editId, versionCode)
versionCode
}
GooglePlayDeploy.BinaryType.BUNDLE -> {
uploadBundle(deploy, editId)
Expand Down

0 comments on commit 2526664

Please sign in to comment.