Added new CompoundDownloadService which will encapsulate all downloads and should manage post-download events as well

As of now it's still in a development stage and isn't connected to anything
This commit is contained in:
Viktor De Pasquale
2019-07-09 20:08:00 +02:00
committed by John Wu
parent 8af832a496
commit 9542ca773f
12 changed files with 283 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
package com.topjohnwu.magisk.data.repository
import com.topjohnwu.magisk.data.network.GithubRawApiServices
class FileRepository(
private val api: GithubRawApiServices
) {
fun downloadFile(url: String) = api.fetchFile(url)
}