ApkUpdater
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun legacyDownloader(activity: Activity, readStream: InputStream, length: Long?, digest: DigestPair?, downloadProgress: (Long, Long?) -> Unit)
Link copied to clipboard
suspend fun packageInstallerDownloader(activity: Activity, readStream: InputStream, length: Long?, digest: DigestPair?, downloadProgress: (Long, Long?) -> Unit)
https://medium.com/@solrudev/painless-building-of-an-android-package-installer-app-d5a09b5df432
Link copied to clipboard
suspend fun transfer(writeStream: OutputStream, readStream: InputStream, length: Long?, downloadProgress: (Long, Long?) -> Unit, digest: DigestPair?)
Write the "readStream" to the "writeStream", while notifying the "downloadProgress" and calculating the digest