Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Drop ExperimentalCoroutinesApi annotation in GattCallback #54

Merged
merged 2 commits into from
Apr 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions core/src/main/java/gatt/GattCallback.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import android.bluetooth.BluetoothProfile.STATE_DISCONNECTING
import com.juul.able.Able
import java.util.concurrent.atomic.AtomicBoolean
import kotlinx.coroutines.ExecutorCoroutineDispatcher
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.BroadcastChannel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.channels.Channel.Factory.BUFFERED
Expand All @@ -24,12 +23,8 @@ internal class GattCallback(
private val dispatcher: ExecutorCoroutineDispatcher
) : BluetoothGattCallback() {

@ExperimentalCoroutinesApi
val onConnectionStateChange = BroadcastChannel<OnConnectionStateChange>(CONFLATED)

@ExperimentalCoroutinesApi
val onCharacteristicChanged = BroadcastChannel<OnCharacteristicChanged>(BUFFERED)

val onResponse = Channel<Any>(CONFLATED)

private val isClosed = AtomicBoolean()
Expand Down