mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-17 07:12:32 -08:00
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:
committed by
John Wu
parent
8af832a496
commit
9542ca773f
@@ -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)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user