Skip to content

Commit d6e8200

Browse files
authored
Rename KableInternalApiInternalKableApi (#1197)
1 parent c20ae64 commit d6e8200

11 files changed

Lines changed: 11 additions & 11 deletions

kable-core/api/jvm/kable-core.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public final class com/juul/kable/IdentifierKt {
199199
public final class com/juul/kable/InternalError : java/lang/Error {
200200
}
201201

202-
public abstract interface annotation class com/juul/kable/KableInternalApi : java/lang/annotation/Annotation {
202+
public abstract interface annotation class com/juul/kable/InternalKableApi : java/lang/annotation/Annotation {
203203
}
204204

205205
public final class com/juul/kable/LazyCharacteristic : com/juul/kable/Characteristic {

kable-core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ kotlin {
5858
all {
5959
languageSettings {
6060
optIn("com.juul.kable.ExperimentalKableApi")
61-
optIn("com.juul.kable.KableInternalApi")
61+
optIn("com.juul.kable.InternalKableApi")
6262
optIn("kotlin.concurrent.atomics.ExperimentalAtomicApi")
6363
optIn("kotlin.js.ExperimentalWasmJsInterop")
6464
optIn("kotlin.uuid.ExperimentalUuidApi")

kable-core/src/androidMain/kotlin/AndroidPeripheral.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,6 @@ public interface AndroidPeripheral : Peripheral {
166166
* This is an internal API and may be removed from a future release. If you are using it, please
167167
* open an issue and report your use case.
168168
*/
169-
@KableInternalApi
169+
@InternalKableApi
170170
public val bluetoothDevice: BluetoothDevice
171171
}

kable-core/src/androidMain/kotlin/BluetoothDeviceAndroidPeripheral.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private const val DEFAULT_ATT_MTU = 23
5252
private const val ATT_MTU_HEADER_SIZE = 3
5353

5454
internal class BluetoothDeviceAndroidPeripheral(
55-
@KableInternalApi override val bluetoothDevice: BluetoothDevice,
55+
@InternalKableApi override val bluetoothDevice: BluetoothDevice,
5656
private val autoConnectPredicate: () -> Boolean,
5757
private val transport: Transport,
5858
private val phy: Phy,

kable-core/src/androidMain/kotlin/PlatformAdvertisement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ public actual interface PlatformAdvertisement : Advertisement, Parcelable {
1919
* This is an internal API and may be removed from a future release. If you are using it, please
2020
* open an issue and report your use case.
2121
*/
22-
@KableInternalApi
22+
@InternalKableApi
2323
public val bluetoothDevice: BluetoothDevice
2424
}

kable-core/src/androidMain/kotlin/ScanResultAndroidAdvertisement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal class ScanResultAndroidAdvertisement(
2121
private val scanResult: ScanResult,
2222
) : PlatformAdvertisement {
2323

24-
@KableInternalApi
24+
@InternalKableApi
2525
override val bluetoothDevice: BluetoothDevice
2626
get() = scanResult.device
2727

kable-core/src/appleMain/kotlin/CBPeripheralCoreBluetoothAdvertisement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import kotlin.uuid.Uuid
1616
internal class CBPeripheralCoreBluetoothAdvertisement(
1717
override val rssi: Int,
1818
private val data: Map<String, Any>,
19-
@KableInternalApi override val cbPeripheral: CBPeripheral,
19+
@InternalKableApi override val cbPeripheral: CBPeripheral,
2020
) : PlatformAdvertisement {
2121

2222
override val identifier: Identifier

kable-core/src/appleMain/kotlin/CBPeripheralCoreBluetoothPeripheral.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import platform.CoreBluetooth.CBCharacteristicWriteWithResponse as CBWithRespons
5252
import platform.CoreBluetooth.CBCharacteristicWriteWithoutResponse as CBWithoutResponse
5353

5454
internal class CBPeripheralCoreBluetoothPeripheral(
55-
@KableInternalApi override val cbPeripheral: CBPeripheral,
55+
@InternalKableApi override val cbPeripheral: CBPeripheral,
5656
observationExceptionHandler: ObservationExceptionHandler,
5757
private val onServicesDiscovered: ServicesDiscoveredAction,
5858
private val logging: Logging,

kable-core/src/appleMain/kotlin/CoreBluetoothPeripheral.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public interface CoreBluetoothPeripheral : Peripheral {
1212
* This is an internal API and may be removed from a future release. If you are using it, please
1313
* open an issue and report your use case.
1414
*/
15-
@KableInternalApi
15+
@InternalKableApi
1616
public val cbPeripheral: CBPeripheral
1717

1818
@Throws(CancellationException::class, IOException::class)

kable-core/src/appleMain/kotlin/PlatformAdvertisement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public actual interface PlatformAdvertisement : Advertisement {
1313
* This is an internal API and may be removed from a future release. If you are using it, please
1414
* open an issue and report your use case.
1515
*/
16-
@KableInternalApi
16+
@InternalKableApi
1717
public val cbPeripheral: CBPeripheral
1818
}

0 commit comments

Comments
 (0)