mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
build: Add log message when libWebRtc is downloaded
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
ff32ab1172
commit
f9472ab273
@ -351,4 +351,4 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ abstract class DownloadWebRtcTask extends DefaultTask {
|
|||||||
return "https://github.com/nextcloud-releases/talk-clients-webrtc/releases/download/${webRtcVersion}-RC1/${getFileName()}"
|
return "https://github.com/nextcloud-releases/talk-clients-webrtc/releases/download/${webRtcVersion}-RC1/${getFileName()}"
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOutputPath() {
|
String getOutputPath() {
|
||||||
return "${project.buildDir}/download/${getFileName()}"
|
return "${project.buildDir}/download/${getFileName()}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,6 +56,7 @@ abstract class DownloadWebRtcTask extends DefaultTask {
|
|||||||
def run() {
|
def run() {
|
||||||
libFile.parentFile.mkdirs()
|
libFile.parentFile.mkdirs()
|
||||||
if (!libFile.exists()) {
|
if (!libFile.exists()) {
|
||||||
|
logger.lifecycle("Downloading libWebRTC ${version.get()} from ${getDownloadUrl()}")
|
||||||
new URL(getDownloadUrl()).withInputStream { downloadStream ->
|
new URL(getDownloadUrl()).withInputStream { downloadStream ->
|
||||||
libFile.withOutputStream { fileOut ->
|
libFile.withOutputStream { fileOut ->
|
||||||
fileOut << downloadStream
|
fileOut << downloadStream
|
||||||
|
Loading…
Reference in New Issue
Block a user