Gradle-play-publisher: Publish all productFlavor

Created on 7 Jan 2016  路  6Comments  路  Source: Triple-T/gradle-play-publisher

I know

In case you are using product flavors you will get one of the above tasks for every flavor. E.g. publishApkPaidRelease or publishListingPaidRelease

But it will be nice if there was a task publishAllApksRelease to publish all apk for every flavor. (same for listing)

enhancement

Most helpful comment

This is what I use to update all my 70+ flavours.
It should give exactly the same result as pabliscos suggestion, but I can verify that mine works:

task updateBleedingEdge(group: 'util') << {}
updateBleedingEdge.dependsOn {
    tasks.findAll { it.name.startsWith('publishApk') }
}

All 6 comments

This should give you what you want ;)

task('publishAllApksRelease').dependsOn(tasks.findAll { it.name.startsWith("publishApk") })

@pablisco don't work this method.
Anyone know what we need do?

This is what I use to update all my 70+ flavours.
It should give exactly the same result as pabliscos suggestion, but I can verify that mine works:

task updateBleedingEdge(group: 'util') << {}
updateBleedingEdge.dependsOn {
    tasks.findAll { it.name.startsWith('publishApk') }
}

Hi

The above works great, but is there a way to ignore the below error (as its the latest version) and go to the next publishApk task?

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "androidpublisher",
"message" : "APK specifies a version code that has already been used.",
"reason" : "apkUpgradeVersionConflict"
} ],
"message" : "APK specifies a version code that has already been used."
}

Does the plugin support variations in listings/metadata depending on product flavour?
Say you want to have a different set of screenshots for free/premium flavours, or different descriptions.

Fixed in #273

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ToxicBakery picture ToxicBakery  路  4Comments

ivoberger picture ivoberger  路  4Comments

daniele-pecora picture daniele-pecora  路  5Comments

siddharthkhindri picture siddharthkhindri  路  5Comments

kristiyanP picture kristiyanP  路  4Comments