Browse Source

build: Add log message when libWebRtc is downloaded

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Álvaro Brey 3 years ago
parent
commit
f9472ab273

+ 1 - 1
app/build.gradle

@@ -351,4 +351,4 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
     kotlinOptions {
         jvmTarget = "1.8"
     }
-}
+}

+ 2 - 1
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