Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
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
676a57c2
Commit
676a57c2
authored
6 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Fix BuildConfig.VERSION_CODE not set
parent
27876240
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/build.gradle
+2
-1
2 additions, 1 deletion
vlc-android/build.gradle
with
2 additions
and
1 deletion
vlc-android/build.gradle
+
2
−
1
View file @
676a57c2
...
...
@@ -136,6 +136,8 @@ android {
// make per-variant version code
applicationVariants
.
all
{
variant
->
def
generatedCode
=
variant
.
productFlavors
.
get
(
0
).
versionCode
*
10000000
+
defaultConfig
.
versionCode
+
variant
.
productFlavors
.
get
(
1
).
versionCode
variant
.
mergedFlavor
.
versionCode
=
generatedCode
//Custom APK name
variant
.
outputs
.
all
{
output
->
def
outputName
=
"VLC-Android-"
...
...
@@ -145,7 +147,6 @@ android {
outputFileName
=
outputName
output
.
processManifest
.
doLast
{
// set the composite code
def
generatedCode
=
variant
.
productFlavors
.
get
(
0
).
versionCode
*
10000000
+
defaultConfig
.
versionCode
+
variant
.
productFlavors
.
get
(
1
).
versionCode
String
manifestPath
=
"$manifestOutputDirectory/AndroidManifest.xml"
def
manifestContent
=
file
(
manifestPath
).
getText
()
manifestContent
=
manifestContent
.
replace
(
'android:versionCode="1"'
,
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
94a66434
·
6 years ago
mentioned in commit
94a66434
mentioned in commit 94a66434bf9529e0769a5625720c621f7d9d61fa
Toggle commit list
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