Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
weisJ committed Jul 31, 2021
1 parent 4361ab3 commit 1356847
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import org.gradle.util.VersionNumber
import java.util.concurrent.TimeUnit

fun String.runCommand(): String? {
Expand All @@ -11,10 +10,3 @@ fun String.runCommand(): String? {
output.trim()
}.getOrNull()
}

fun getXCodeVersion(): VersionNumber? {
val version = "/usr/bin/xcodebuild -version".runCommand() ?: return null
val extracted = Regex("""Xcode\s+([0-9\\.]*).*""")
.find(version)?.groupValues?.getOrNull(1) ?: return null
return VersionNumber.parse(extracted)
}

0 comments on commit 1356847

Please sign in to comment.