Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
529
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
b0871644
Commit
b0871644
authored
8 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade gradle plugin to version 2.2
parent
20926d2b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.gradle
+1
-1
1 addition, 1 deletion
build.gradle
libvlc/build.gradle
+6
-4
6 additions, 4 deletions
libvlc/build.gradle
vlc-android/build.gradle
+5
-3
5 additions, 3 deletions
vlc-android/build.gradle
with
12 additions
and
8 deletions
build.gradle
+
1
−
1
View file @
b0871644
...
...
@@ -5,7 +5,7 @@ buildscript {
jcenter
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:2.
1.3
'
classpath
'com.android.tools.build:gradle:2.
2.0
'
classpath
'com.jakewharton.sdkmanager:sdk-manager-plugin:1.5.0-SNAPSHOT'
}
}
...
...
This diff is collapsed.
Click to expand it.
libvlc/build.gradle
+
6
−
4
View file @
b0871644
apply
plugin:
'com.android.library'
import
com.android.builder.core.DefaultManifestParser
android
{
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
...
...
@@ -27,11 +29,11 @@ android {
// Make per-variant version code
libraryVariants
.
all
{
variant
->
def
manifestParser
=
new
com
.
android
.
builder
.
core
.
DefaultManifestParser
(
)
def
manifestParser
=
new
DefaultManifestParser
(
android
.
sourceSets
.
main
.
manifest
.
srcFile
)
// get the version code of each flavor
def
vlcVersion
=
manifestParser
.
getVersionName
(
android
.
sourceSets
.
main
.
manifest
.
srcFile
)
manifestParser
=
new
com
.
android
.
builder
.
core
.
DefaultManifestParser
(
)
def
androidVersion
=
manifestParser
.
getVersionName
(
file
(
'../vlc-android/AndroidManifest.xml'
)
)
def
vlcVersion
=
manifestParser
.
getVersionName
()
manifestParser
=
new
DefaultManifestParser
(
file
(
'../vlc-android/AndroidManifest.xml'
)
)
def
androidVersion
=
manifestParser
.
getVersionName
()
//Custom APK name
variant
.
outputs
.
each
{
output
->
def
outputFile
=
output
.
outputFile
...
...
This diff is collapsed.
Click to expand it.
vlc-android/build.gradle
+
5
−
3
View file @
b0871644
apply
plugin:
'com.android.application'
import
com.android.builder.core.DefaultManifestParser
android
{
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
...
...
@@ -134,14 +136,14 @@ android {
// make per-variant version code
applicationVariants
.
all
{
variant
->
def
manifestParser
=
new
com
.
android
.
builder
.
core
.
DefaultManifestParser
(
)
def
manifestParser
=
new
DefaultManifestParser
(
android
.
sourceSets
.
main
.
manifest
.
srcFile
)
// get the version code of each flavor
def
vlcVersion
=
manifestParser
.
getVersionName
(
android
.
sourceSets
.
main
.
manifest
.
srcFile
)
def
vlcVersion
=
manifestParser
.
getVersionName
()
def
targetVersion
=
variant
.
productFlavors
.
get
(
0
).
versionCode
def
abiVersion
=
variant
.
productFlavors
.
get
(
1
).
versionCode
// set the composite code
variant
.
mergedFlavor
.
versionCode
=
targetVersion
*
10000000
+
manifestParser
.
getVersionCode
(
android
.
sourceSets
.
main
.
manifest
.
srcFile
)
+
abiVersion
variant
.
mergedFlavor
.
versionCode
=
targetVersion
*
10000000
+
manifestParser
.
getVersionCode
()
+
abiVersion
variant
.
mergedFlavor
.
versionName
=
vlcVersion
//Custom APK name
...
...
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