Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
14
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
22d99a96
Commit
22d99a96
authored
5 years ago
by
Geoffrey Métais
Committed by
Geoffrey Métais
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix apk name on CLI builds
parent
e4847ee3
No related branches found
Branches containing commit
No related tags found
1 merge request
!420
Fix apk name according to ABI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/app/build.gradle
+3
-1
3 additions, 1 deletion
application/app/build.gradle
with
3 additions
and
1 deletion
application/app/build.gradle
+
3
−
1
View file @
22d99a96
...
...
@@ -118,7 +118,9 @@ android {
applicationVariants
.
all
{
variant
->
//Custom APK name and versionCode
variant
.
outputs
.
each
{
output
->
def
abiName
=
output
.
getFilter
(
com
.
android
.
build
.
OutputFile
.
ABI
)
?:
System
.
getenv
(
'GRADLE_ABI'
)?.
toLowerCase
()
?:
"all"
def
outputAbi
=
output
.
getFilter
(
com
.
android
.
build
.
OutputFile
.
ABI
)
def
abiName
=
System
.
getenv
(
'GRADLE_ABI'
)?.
toLowerCase
()
?:
"all"
if
(
outputAbi
!=
null
)
abiName
=
outputAbi
output
.
versionCodeOverride
=
10000000
+
defaultConfig
.
versionCode
+
abiCodes
.
get
(
abiName
,
0
)
def
outputName
=
"VLC-Android-"
outputName
+=
variant
.
versionName
+
"-"
+
abiName
+
".apk"
...
...
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