Skip to content

Fix failing bootstrapListing task - #1195

Merged
SUPERCILEX merged 6 commits into
Triple-T:masterfrom
DennisHartrampf:1174-fix-bootstrapListing-onetimeproducts
Aug 16, 2026
Merged

Fix failing bootstrapListing task#1195
SUPERCILEX merged 6 commits into
Triple-T:masterfrom
DennisHartrampf:1174-fix-bootstrapListing-onetimeproducts

Conversation

@DennisHartrampf

Copy link
Copy Markdown
Contributor

Google disabled the deprecated endpoint https://developers.google.com/android-publisher/api-ref/rest/v3/inappproducts in favor of https://developers.google.com/android-publisher/api-ref/rest/v3/monetization.onetimeproducts. This broke the bootstrapListing task when it tried to retrieve the in-app products from the deprecated endpoint.

Use the new one-time products endpoint.

Resolves #1174

P.S. I chose 4.2.0 as proposed new version. You could also consider using 5.0.0 because it is a breaking change - but on Google's side not on the plugin's side.

Google disabled the deprecated endpoint https://developers.google.com/android-publisher/api-ref/rest/v3/inappproducts in favor of https://developers.google.com/android-publisher/api-ref/rest/v3/monetization.onetimeproducts.
This broke the bootstrapListing task when it tried to retrieve the in-app products from the deprecated endpoint.

Use the new one-time products endpoint.

Resolves Triple-T#1174
Comment thread play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/Bootstrap.kt Outdated

override fun updateInAppProduct(productFile: File): UpdateProductResponse {
override fun updateInAppProduct(productFile: File, regionsVersion: String): UpdateProductResponse {
println("updateInAppProduct($productFile)")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's print the the regionsVersion here and above and fix the empty strings.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review and your fast response!
I applied your suggestions and just committed them. I figured for consistency you'd probably also want the SubscriptionMetadata being moved to Responses and did that.

I'm just unsure what you mean with "fix the empty strings".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice, thanks.

I mean that {"regionsVersion":""} is invalid right? Like for tests it doesn't matter, but the API would reject the empty version? So let's put something real in there and check that it shows up in the Basic product publishes test.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! 😀
Just pushed the changes. (For subscriptions, too)

- Extract constant for regionsVersion
- Move ProductMetadata and SubscriptionMetadata to Responses
@SUPERCILEX
SUPERCILEX merged commit abb0961 into Triple-T:master Aug 16, 2026
4 checks passed
@SUPERCILEX

Copy link
Copy Markdown
Collaborator

Sweet, thanks!

@DennisHartrampf
DennisHartrampf deleted the 1174-fix-bootstrapListing-onetimeproducts branch August 16, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to execute bootstrapListing

2 participants