Prechádzať zdrojové kódy

DownloadWebRtcTask: don't expose internal outputPath property

Use the output file from app gradle instead

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Álvaro Brey 3 rokov pred
rodič
commit
9d016e7005

+ 1 - 1
app/build.gradle

@@ -236,7 +236,7 @@ dependencies {
     kapt "com.jakewharton:butterknife-compiler:${butterknifeVersion}"
     implementation 'eu.davidea:flexible-adapter:5.1.0'
     implementation 'eu.davidea:flexible-adapter-ui:1.0.0'
-    implementation fileTree(downloadWebRtc.getOutputPath())
+    implementation fileTree(downloadWebRtc.libFile.path)
     implementation 'com.yarolegovich:lovely-dialog:1.1.1'
     implementation 'com.yarolegovich:mp:1.1.6'
     implementation 'me.zhanghai.android.effortlesspermissions:library:1.1.0'

+ 1 - 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()}"
     }
 
-    String getOutputPath() {
+    private String getOutputPath() {
         return "${project.buildDir}/download/${getFileName()}"
     }