2.0.0-alpha13
Breaking changes
This version creates AndroidEvironment interface and 2 implementations:
NativeAndroidEnvironmentMockAndroidEnvironmet
The common base interface allows to build common components for any implementations.
For Jetpack Compose applications, there's a new module no.nordicsemi.kotlin.ble:environment-compose, which allows to provide the implementation using LocalEnvironmentOwner:
val environment = MockAndroidEnvironment.Api31(
isBluetoothConnectPermissionGranted = false,
isBluetoothScanPermissionGranted = false,
)
CompositionLocalProvider(values = LocalEnvironmentOwner provides environment) {
// [...]
Content(
environment = LocalEnvironmentOwner.current,
)
}
Also, module client-mock renamed to client-core-mock. But as this module was not user-facing, this should not be an issue.
What's Changed
- [Breaking]
Environments by @philips77 in https://github.com/NordicSemiconductor/Kotlin-BLE-Library/pull/248 and https://github.com/NordicSemiconductor/Kotlin-BLE-Library/pull/249 - Migration to AGP 9.0.0 by @philips77 in https://github.com/NordicSemiconductor/Kotlin-BLE-Library/pull/251
- Module
client-mockrenamed toclient-core-mockby @philips77 in https://github.com/NordicSemiconductor/Kotlin-BLE-Library/pull/252 - Documentation regenerated by @philips77 in https://github.com/NordicSemiconductor/Kotlin-BLE-Library/pull/250 and later in https://github.com/NordicSemiconductor/Kotlin-BLE-Library/pull/253
Full Changelog: https://github.com/NordicSemiconductor/Kotlin-BLE-Library/compare/2.0.0-alpha12...2.0.0-alpha13