Browse Source

Setup the remote access to generate aars

merge-requests/2174/head
Nicolas Pomepuy 2 years ago
parent
commit
b34a927c39
  1. 4
      application/app/build.gradle
  2. 16
      application/webserver/build.gradle
  3. 31
      application/webserver/gradle.properties
  4. 1
      build.gradle

4
application/app/build.gradle

@ -158,7 +158,9 @@ android {
dependencies {
implementation project(':application:vlc-android')
implementation project(':application:television')
implementation project(':application:webserver')
devImplementation project(':application:webserver')
debugImplementation project(':application:webserver')
releaseImplementation "org.videolan.android:remoteaccess:$rootProject.ext.remoteAccessVersion"
testImplementation project(':application:television')
testImplementation project(':application:webserver')

16
application/webserver/build.gradle

@ -1,8 +1,12 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'com.vanniktech.maven.publish'
}
ext {
library_version = "$rootProject.ext.remoteAccessVersion"
}
android {
namespace 'org.videolan.vlc.webserver'
@ -61,6 +65,16 @@ android {
buildFeatures {
buildConfig true
}
// Make per-variant version code
libraryVariants.all { variant ->
//Custom APK name
variant.outputs.each { output ->
if (output.outputFileName != null && output.outputFileName.endsWith('.aar')) {
output.outputFileName = "vlc-android-remote-access-${library_version}.aar"
}
}
}
}
preBuild.dependsOn(webCopy)
@ -85,3 +99,5 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
apply from: '../../buildsystem/publish.gradle'

31
application/webserver/gradle.properties

@ -0,0 +1,31 @@
#
# *************************************************************************
# gradle.properties
# **************************************************************************
# Copyright © 2024 VLC authors and VideoLAN
# Author: Nicolas POMEPUY
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
# ***************************************************************************
#
#
#
GROUP=org.videolan.android
POM_ARTIFACT_ID=remote-access
POM_NAME=VLC-Android-RemoteAccess
POM_DESCRIPTION=Android port of VLC's Remote Access
POM_INCEPTION_YEAR=2021

1
build.gradle

@ -42,6 +42,7 @@ ext {
versionCode = 3050740
versionName = project.hasProperty('forceVlc4') && project.getProperty('forceVlc4') ? '4.0.0-preview - ' + versionCode : '3.6.0 Beta 4'
vlcMajorVersion = project.hasProperty('forceVlc4') && project.getProperty('forceVlc4') ? 4 : 3
remoteAccessVersion = '0.1.0'
libvlcVersion = vlcMajorVersion == 3 ? '3.6.0-eap13' :'4.0.0-eap16'
medialibraryVersion = vlcMajorVersion == 3 ? '0.13.13-rc13' : '0.13.13-vlc4-rc13'
minSdkVersion = 17

Loading…
Cancel
Save