Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for colon track names #1122

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

sebokopter
Copy link

@sebokopter sebokopter commented Mar 8, 2024

Gradle has an issue that DirectoryProperties.file() does always resolve file names with colon (:) as URI. This breaks when a colon is used as part of a file name.

In this case this is needed for the dedicated PlayStore tracks: tv and wear. They require a corresponding prefix separated by a colon, e.g. "tv:internal". See: developers.google.com/android-publisher/tracks#ff-track-name

Resolving the file paths without DirectoryProperty.file does work around this Gradle issue on Plugin side.

Hey there! So you want to contribute to Gradle Play Publisher?
Before you file this pull request, follow these steps:

  • Read the contribution guidelines.
  • If this has been discussed in an issue, make sure to mention the issue number here.
    If not, go file an issue about this to make sure it is a desirable change.

Closes #1121

Gradle has an [issue](gradle/gradle#862) that `DirectoryProperties.file()` does always resolve file names with colon (`:`) as URI. This breaks when a colon is used as part of a file name.

In this case this is needed for the dedicated PlayStore tracks: tv and wear. They require a corresponding prefix separated by a colon, e.g. "tv:internal". See: developers.google.com/android-publisher/tracks#ff-track-name

Resolving the file paths without `DirectoryProperty.file` does work around this Gradle issue on Plugin side.
@sebokopter sebokopter requested a review from SUPERCILEX as a code owner March 8, 2024 14:35
@sebokopter sebokopter changed the title #1121 Workaround for colon track names Workaround for colon track names Mar 8, 2024
@SUPERCILEX SUPERCILEX merged commit 77263a0 into Triple-T:master Mar 8, 2024
4 checks passed
@SUPERCILEX
Copy link
Collaborator

If you can confirm that everything works in snapshot builds, that'd be great thanks.

@sebokopter
Copy link
Author

sebokopter commented Mar 10, 2024

@SUPERCILEX Thanks for merging the MR.

There's no snapshot build tough, seemingly because the version.txt is missing the snapshot suffix. I've checked the CI: https://github.com/Triple-T/gradle-play-publisher/actions/runs/8207149974/job/22448033711 and the snapshot repo: https://oss.sonatype.org/content/repositories/snapshots/com/github/triplet/gradle/play-publisher/. The latest snapshot is from December 2023.

For what it's worth: I've checked my branch locally via includeBuild and there everything worked fine.

@SUPERCILEX
Copy link
Collaborator

Ah, my bad I'll just make a release then.

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.

Workaround colon track names
3 participants