Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
534
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
4bdf8d5f
Commit
4bdf8d5f
authored
8 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Fix vlc revision resource
parent
1d7c28ea
No related branches found
Branches containing commit
Tags
2.5.12
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vlc-android/build.gradle
+8
-2
8 additions, 2 deletions
vlc-android/build.gradle
vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
+1
-1
1 addition, 1 deletion
vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
with
9 additions
and
3 deletions
vlc-android/build.gradle
+
8
−
2
View file @
4bdf8d5f
...
...
@@ -33,6 +33,7 @@ android {
resValue
"string"
,
"build_time"
,
buildTime
()
resValue
"string"
,
"build_host"
,
hostName
()
resValue
"string"
,
"build_revision"
,
revision
()
resValue
"string"
,
"build_vlc_revision"
,
vlcRevision
()
tasks
.
whenTaskAdded
{
task
->
if
(
task
.
name
.
startsWith
(
'assemble'
))
{
...
...
@@ -225,15 +226,20 @@ def hostName() {
def
revision
()
{
def
code
=
new
ByteArrayOutputStream
()
def
vlc
=
new
ByteArrayOutputStream
()
exec
{
commandLine
'git'
,
'rev-parse'
,
'--short'
,
'HEAD'
standardOutput
=
code
}
return
code
.
toString
()
}
def
vlcRevision
()
{
def
code
=
new
ByteArrayOutputStream
()
def
vlc
=
new
ByteArrayOutputStream
()
exec
{
commandLine
'git'
,
'rev-parse'
,
'--short'
,
'HEAD'
workingDir
'../vlc'
standardOutput
=
vlc
}
return
code
.
toString
()+
"VLC: "
+
vlc
.
toString
()
return
vlc
.
toString
()
}
This diff is collapsed.
Click to expand it.
vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
+
1
−
1
View file @
4bdf8d5f
...
...
@@ -175,7 +175,7 @@ public class UiTools {
TextView
link
=
(
TextView
)
v
.
findViewById
(
R
.
id
.
main_link
);
link
.
setText
(
Html
.
fromHtml
(
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
about_link
)));
String
revision
=
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
build_revision
);
String
revision
=
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
build_revision
)
+
" VLC: "
+
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
build_vlc_revision
)
;
String
builddate
=
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
build_time
);
String
builder
=
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
build_host
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment