Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
blender
monado
Commits
bdc53b97
Commit
bdc53b97
authored
May 06, 2021
by
Ryan Pavlik
Browse files
gradle: Apply suggestion from android studio
parent
d11ef4ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xrt/targets/openxr_android/build.gradle
View file @
bdc53b97
...
@@ -24,7 +24,7 @@ androidGitVersion {
...
@@ -24,7 +24,7 @@ androidGitVersion {
def
parseOpenXRVersion
(
def
fn
)
{
def
parseOpenXRVersion
(
def
fn
)
{
def
matches
=
file
(
fn
).
readLines
().
find
{
def
matches
=
file
(
fn
).
readLines
().
find
{
it
.
contains
(
'XR_CURRENT_API_VERSION'
)
it
.
contains
(
'XR_CURRENT_API_VERSION'
)
}
=~
~
/XR_MAKE_VERSION\(([^
\
)]+)\)/
}
=~
~
/XR_MAKE_VERSION\(([^)]+)\)/
def
components
=
matches
[
0
][
1
].
split
(
','
).
each
{
it
.
replace
(
' '
,
''
).
trim
()
}
def
components
=
matches
[
0
][
1
].
split
(
','
).
each
{
it
.
replace
(
' '
,
''
).
trim
()
}
String
.
join
(
'.'
,
components
)
String
.
join
(
'.'
,
components
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment