From b05413473819f2c8198f564c5195259cfc2a50e2 Mon Sep 17 00:00:00 2001 From: Travis Wyatt Date: Tue, 14 Apr 2020 14:28:50 -0700 Subject: [PATCH] Drop ExperimentalCoroutinesApi annotation in GattCallback (#54) Since `GattCallback` in an `internal` class, it's properties are not part of the public API, so using `@ExperimentalCoroutinesApi` is superfluous. --- core/src/main/java/gatt/GattCallback.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/src/main/java/gatt/GattCallback.kt b/core/src/main/java/gatt/GattCallback.kt index 3aff624..fa4174b 100644 --- a/core/src/main/java/gatt/GattCallback.kt +++ b/core/src/main/java/gatt/GattCallback.kt @@ -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 @@ -24,12 +23,8 @@ internal class GattCallback( private val dispatcher: ExecutorCoroutineDispatcher ) : BluetoothGattCallback() { - @ExperimentalCoroutinesApi val onConnectionStateChange = BroadcastChannel(CONFLATED) - - @ExperimentalCoroutinesApi val onCharacteristicChanged = BroadcastChannel(BUFFERED) - val onResponse = Channel(CONFLATED) private val isClosed = AtomicBoolean()