Files
SimpleBLE/docs/simpledroidble/usage.rst
2025-05-30 15:07:32 -07:00

49 lines
1.3 KiB
ReStructuredText

=====
Usage
=====
SimpleDroidBLE is an Android-specific package that provides an API similar to
SimpleBLE, using modern Kotlin idiomatic code.
This code is currently under active development and some features are not yet
implemented or their API might change, but should be enough to help you get
started.
Consuming Locally
=================
If you want to use SimpleDroidBLE as part of your project from a local copy,
you can do so by adding the following to your `settings.gradle` or `settings.gradle.kts`file.
Make sure this include is before your `include(":app")` statement.
.. code-block:: groovy
includeBuild("path/to/simpledroidble") {
dependencySubstitution {
substitute module("org.simpleble.android:simpledroidble") with project(":simpledroidble")
}
}
.. code-block:: kotlin
includeBuild("path/to/simpledroidble") {
dependencySubstitution {
substitute(module("org.simpleble.android:simpledroidble")).using(project(":simpledroidble"))
}
}
Then, inside your `build.gradle` or `build.gradle.kts` file, you can add the
following dependency:
.. code-block:: groovy
dependencies {
implementation "org.simpleble.android:simpledroidble"
}
.. code-block:: kotlin
dependencies {
implementation("org.simpleble.android:simpledroidble")
}