Skip to content

Commit

Permalink
Merge branch 'main' into feature/kotlin-uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
ykws authored Nov 26, 2024
2 parents 33a04a8 + cabe137 commit 4e6b766
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ androidx-core = { module = "androidx.core:core-ktx", version = "1.15.0" }
androidx-startup = { module = "androidx.startup:startup-runtime", version = "1.2.0" }
atomicfu = { module = "org.jetbrains.kotlinx:atomicfu", version.ref = "atomicfu" }
datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version = "0.6.1" }
khronicle = { module = "com.juul.khronicle:khronicle-core", version = "0.3.0" }
khronicle = { module = "com.juul.khronicle:khronicle-core", version = "0.4.1" }
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
kotlinx-io = { module = "org.jetbrains.kotlinx:kotlinx-io-core", version = "0.5.4" }
tuulbox-collections = { module = "com.juul.tuulbox:collections", version.ref = "tuulbox" }
tuulbox-coroutines = { module = "com.juul.tuulbox:coroutines", version.ref = "tuulbox" }
wrappers-bom = { module = "org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom", version = "1.0.0-pre.832" }
wrappers-bom = { module = "org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom", version = "1.0.0-pre.835" }
wrappers-web = { module = "org.jetbrains.kotlin-wrappers:kotlin-web" }

[plugins]
Expand Down
2 changes: 2 additions & 0 deletions kable-core/api/android/kable-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ public final class com/juul/kable/PeripheralBuilder {
public final class com/juul/kable/PeripheralKt {
public static final fun Peripheral (Landroid/bluetooth/BluetoothDevice;Lkotlin/jvm/functions/Function1;)Lcom/juul/kable/Peripheral;
public static final fun Peripheral (Lcom/juul/kable/Advertisement;Lkotlin/jvm/functions/Function1;)Lcom/juul/kable/Peripheral;
public static synthetic fun Peripheral$default (Landroid/bluetooth/BluetoothDevice;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lcom/juul/kable/Peripheral;
public static synthetic fun Peripheral$default (Lcom/juul/kable/Advertisement;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lcom/juul/kable/Peripheral;
}

public final class com/juul/kable/Peripheral_deprecatedKt {
Expand Down
1 change: 1 addition & 0 deletions kable-core/api/jvm/kable-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public final class com/juul/kable/PeripheralBuilder {

public final class com/juul/kable/PeripheralKt {
public static final fun Peripheral (Lcom/juul/kable/Advertisement;Lkotlin/jvm/functions/Function1;)Lcom/juul/kable/Peripheral;
public static synthetic fun Peripheral$default (Lcom/juul/kable/Advertisement;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lcom/juul/kable/Peripheral;
}

public final class com/juul/kable/Peripheral_deprecatedKt {
Expand Down
2 changes: 1 addition & 1 deletion kable-core/src/androidMain/kotlin/Peripheral.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public actual fun Peripheral(

public fun Peripheral(
bluetoothDevice: BluetoothDevice,
builderAction: PeripheralBuilderAction,
builderAction: PeripheralBuilderAction = {},
): Peripheral {
val builder = PeripheralBuilder().apply(builderAction)
return BluetoothDeviceAndroidPeripheral(
Expand Down
2 changes: 1 addition & 1 deletion kable-core/src/appleMain/kotlin/Peripheral.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public fun Peripheral(
@Suppress("FunctionName") // Builder function.
public fun Peripheral(
cbPeripheral: CBPeripheral,
builderAction: PeripheralBuilderAction,
builderAction: PeripheralBuilderAction = {},
): CoreBluetoothPeripheral {
val builder = PeripheralBuilder().apply(builderAction)
return CBPeripheralCoreBluetoothPeripheral(
Expand Down
2 changes: 1 addition & 1 deletion kable-core/src/commonMain/kotlin/Peripheral.kt
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ internal typealias PeripheralBuilderAction = PeripheralBuilder.() -> Unit

public expect fun Peripheral(
advertisement: Advertisement,
builderAction: PeripheralBuilderAction,
builderAction: PeripheralBuilderAction = {},
): Peripheral

/**
Expand Down
2 changes: 1 addition & 1 deletion kable-core/src/jsMain/kotlin/Peripheral.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public actual fun Peripheral(
@Suppress("FunctionName") // Builder function.
internal fun Peripheral(
bluetoothDevice: BluetoothDevice,
builderAction: PeripheralBuilderAction = {},
builderAction: PeripheralBuilderAction,
): WebBluetoothPeripheral = Peripheral(bluetoothDevice, PeripheralBuilder().apply(builderAction))

@Suppress("FunctionName") // Builder function.
Expand Down

0 comments on commit 4e6b766

Please sign in to comment.