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

Commit

Permalink
Drop ExperimentalCoroutinesApi annotation in GattCallback (#54)
Browse files Browse the repository at this point in the history
Since `GattCallback` in an `internal` class, it's properties are not
part of the public API, so using `@ExperimentalCoroutinesApi` is
superfluous.
  • Loading branch information
twyatt authored Apr 14, 2020
1 parent a9f8edc commit b054134
Showing 1 changed file with 0 additions and 5 deletions.
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

0 comments on commit b054134

Please sign in to comment.