Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import io.rebble.libpebblecommon.metadata.supportsBtClassic
* Runs at app boot, gated by a Settings flag so it only executes once. Safe to call before
* `BondedWatchSeeder` since either an existing row stays as-is (BLE) or gets re-keyed (Classic).
*/
class LegacyBtClassicMigrator(
internal class LegacyBtClassicMigrator(
private val knownWatchDao: KnownWatchDao,
private val settings: Settings,
private val blePlatformConfig: BlePlatformConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.juul.kable.Peripheral
import io.rebble.libpebblecommon.connection.bt.ble.transport.impl.peripheralFromIdentifier

sealed class PlatformIdentifier {
class BlePlatformIdentifier(val peripheral: Peripheral) : PlatformIdentifier()
class BlePlatformIdentifier internal constructor(internal val peripheral: Peripheral) : PlatformIdentifier()
class SocketPlatformIdentifier(val addr: String) : PlatformIdentifier()
class BtClassicPlatformIdentifier(val identifier: PebbleBtClassicIdentifier) : PlatformIdentifier()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private data class CombinedState(
val btstate: BluetoothState,
)

class WatchManager(
class WatchManager internal constructor(
private val knownWatchDao: KnownWatchDao,
private val pebbleDeviceFactory: PebbleDeviceFactory,
private val createPlatformIdentifier: CreatePlatformIdentifier,
Expand Down