Migrate profiles to new libraries

This commit is contained in:
Sylwester Zielinski
2023-01-20 14:15:35 +01:00
parent 0b497c1b87
commit 00d70863de
102 changed files with 960 additions and 674 deletions

View File

@@ -38,12 +38,6 @@ import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
import no.nordicsemi.android.navigation.ParcelableArgument
import no.nordicsemi.android.navigation.SuccessDestinationResult
import no.nordicsemi.ui.scanner.DiscoveredBluetoothDevice
val <T> T.exhaustive
get() = this
val String.Companion.EMPTY
get() = ""
@@ -54,10 +48,6 @@ fun Context.isServiceRunning(serviceClassName: String): Boolean {
return services.find { it.service.className == serviceClassName } != null
}
fun SuccessDestinationResult.getDevice(): DiscoveredBluetoothDevice {
return (argument as ParcelableArgument).value as DiscoveredBluetoothDevice
}
private val exceptionHandler = CoroutineExceptionHandler { _, t ->
Log.e("COROUTINE-EXCEPTION", "Uncaught exception", t)
}