From f9472ab273160d0b98ff180950dc48cbb9e37062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Brey?= Date: Wed, 11 May 2022 22:30:20 +0200 Subject: [PATCH] build: Add log message when libWebRtc is downloaded MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Brey --- app/build.gradle | 2 +- .../groovy/com/nextcloud/talk/gradle/DownloadWebRtcTask.groovy | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 154fff78b..3ecd67bde 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -351,4 +351,4 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { kotlinOptions { jvmTarget = "1.8" } -} \ No newline at end of file +} diff --git a/buildSrc/src/main/groovy/com/nextcloud/talk/gradle/DownloadWebRtcTask.groovy b/buildSrc/src/main/groovy/com/nextcloud/talk/gradle/DownloadWebRtcTask.groovy index c0a677bec..3d97731b7 100644 --- a/buildSrc/src/main/groovy/com/nextcloud/talk/gradle/DownloadWebRtcTask.groovy +++ b/buildSrc/src/main/groovy/com/nextcloud/talk/gradle/DownloadWebRtcTask.groovy @@ -48,7 +48,7 @@ abstract class DownloadWebRtcTask extends DefaultTask { return "https://github.com/nextcloud-releases/talk-clients-webrtc/releases/download/${webRtcVersion}-RC1/${getFileName()}" } - public String getOutputPath() { + String getOutputPath() { return "${project.buildDir}/download/${getFileName()}" } @@ -56,6 +56,7 @@ abstract class DownloadWebRtcTask extends DefaultTask { def run() { libFile.parentFile.mkdirs() if (!libFile.exists()) { + logger.lifecycle("Downloading libWebRTC ${version.get()} from ${getDownloadUrl()}") new URL(getDownloadUrl()).withInputStream { downloadStream -> libFile.withOutputStream { fileOut -> fileOut << downloadStream