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:
parent
267e5e1b0b
commit
98367451ff
78 changed files with 1474 additions and 294 deletions
|
@ -53,4 +53,6 @@ dependencies {
|
|||
|
||||
testImplementation unitTestDependencies.junit
|
||||
testImplementation unitTestDependencies.kotlinTest
|
||||
testImplementation unitTestDependencies.androidXTestCore
|
||||
testImplementation unitTestDependencies.robolectric
|
||||
}
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue