Commit bdc53b97 authored by Ryan Pavlik's avatar Ryan Pavlik
Browse files

gradle: Apply suggestion from android studio

parent d11ef4ae
......@@ -24,7 +24,7 @@ androidGitVersion {
def parseOpenXRVersion(def fn) {
def matches = file(fn).readLines().find {
it.contains('XR_CURRENT_API_VERSION')
} =~ ~/XR_MAKE_VERSION\(([^\)]+)\)/
} =~ ~/XR_MAKE_VERSION\(([^)]+)\)/
def components = matches[0][1].split(',').each { it.replace(' ', '').trim() }
String.join('.', components)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment