Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

Get current user fraction #1034

Closed absimas closed 2 years ago

absimas commented 2 years ago

Problem description

I'm using CI for to stage rollouts for multiple apps. I would now like to release them at separate times thus userFraction number would be different based on which was released first.

Is there any way to promote the userFraction relative to what is currently set or at least fetch the current userFraction for a specific staged rollout track?

SUPERCILEX commented 2 years ago

No, this isn't supported and I don't plan on supporting it because GPP can't serve every possible use case. Once you get into custom logic for your release process, I don't think it makes sense to use Gradle anymore. At that point, you should write your own CLI tool tailored to your specific needs.

That said, if you really want to use Gradle you can use this hack and wire up the userFraction property to use some output from your task.

Otherwise, here's our internal API surface you can learn from: https://github.com/Triple-T/gradle-play-publisher/tree/4273731c8126cdbf071300882718ec2ae12f3e3c/play/android-publisher/src/main/kotlin/com/github/triplet/gradle/androidpublisher.

absimas commented 2 years ago

Thanks for the links!