1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Feature/copy paste inside anytype (#473)

This commit is contained in:
Evgenii Kozlov 2020-06-01 17:04:43 +03:00 committed by GitHub
parent 267e5e1b0b
commit 98367451ff
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
78 changed files with 1474 additions and 294 deletions

View file

@ -53,4 +53,6 @@ dependencies {
testImplementation unitTestDependencies.junit
testImplementation unitTestDependencies.kotlinTest
testImplementation unitTestDependencies.androidXTestCore
testImplementation unitTestDependencies.robolectric
}

View file

@ -1,10 +1,11 @@
package com.agileburo.anytype.device.base
import com.agileburo.anytype.data.auth.other.Device
import com.agileburo.anytype.device.download.DeviceDownloader
class AndroidDevice(private val downloader: DeviceDownloader) : Device {
import com.agileburo.anytype.device.download.AndroidDeviceDownloader
class AndroidDevice(
private val downloader: AndroidDeviceDownloader
) : Device {
override fun download(url: String, name: String) {
downloader.download(url = url, name = name)
}

View file

@ -8,7 +8,7 @@ import android.net.Uri
import android.os.Environment.DIRECTORY_DOWNLOADS
import timber.log.Timber
class DeviceDownloader(private val context: Context) {
class AndroidDeviceDownloader(private val context: Context) {
private val manager by lazy {
context.getSystemService(DOWNLOAD_SERVICE) as DownloadManager