Skip to content

0.34.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 29 Jul 19:56
· 55 commits to refs/heads/main since this release
c6d400d

Note

This version of Kable provides a DSL for specifying scan filters and should be used instead of the old deprecated filter list (which will be removed in a future Kable release).

Some example migrations to the new scan filter DSL:

Deprecated New filter DSL
Scanner {
    filters = listOf(Filter.Name("My device"))
}
Scanner {
    filters {
        match {
            name = Filter.Name.Exact("My device")
        }
    }
}
Scanner {
    filters = listOf(
        Filter.Service(uuidFrom(..)),
        Filter.NamePrefix("Ex"),
    )
}
Scanner {
    filters {
        match {
            services = listOf(uuidFrom(..))
        }
        match {
            name = Filter.Name.Prefix("Ex")
        }
    }
val options = Options(
    filters = listOf(
        Filter.NamePrefix("Example"),
    ),
    optionalServices = listOf(
        uuidFrom(..),
    ),
)
scope.requestPeripheral(options).await()
val options = Options {
    filters {
        match {
            name = Filter.Name.Prefix("Example")
        }
    }
    optionalServices = listOf(
        uuidFrom(..),
    )
)
scope.requestPeripheral(options).await()

See Scanning section of README and #695 for more details.

Logo Android

  • Fix nullability of connectGattCompat function (#720)

Logo Apple

  • Fix reading of descriptor value as NSData (#706), special thanks to @FabioCornelli for the contribution

🧰 Maintenance

  • Update plugin api to v0.16.2 (#717, #725)
  • Rename module directories to match Maven artifact names (#709)
  • Update plugin kotlinter to v4.4.1 (#705, #716)
  • Update plugin android-library to v8.5.1 (#712)
  • Update dependency gradle to v8.9 (#713)
  • Update atomicfu to v0.25.0 (#707)