Skip to content

Commit

Permalink
Support "1.7.0+metadata" versions (#1568)
Browse files Browse the repository at this point in the history
Allow building versions "1.7.0-beta02+build454"

We used this commit for beta01, beta02 builds.
  • Loading branch information
igordmn committed Sep 18, 2024
1 parent f3e5e0a commit fada769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/public/src/main/kotlin/androidx/build/Version.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ data class Version(
private const val serialVersionUID = 345435634563L

private val VERSION_FILE_REGEX = Pattern.compile("^(res-)?(.*).txt$")
private val VERSION_REGEX = Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)((?:\\.\\d+)?(?:-.+)?)?$")
private val VERSION_REGEX = Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)((?:\\.\\d+)?(?:[-\\+].+)?)?$")

private fun checkedMatcher(versionString: String): Matcher {
val matcher = VERSION_REGEX.matcher(versionString)
Expand Down

0 comments on commit fada769

Please sign in to comment.