Installation#
This guide provides instructions on how to add the BrainAccess Kotlin SDK to your Android project.
Getting Started#
To get started with the BrainAccess Kotlin SDK, you need to add it as a dependency to your Android project.
1. Add the JitPack repository#
First, add the JitPack repository to your project’s settings.gradle file:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
2. Add the SDK dependency#
Next, add the BrainAccess Kotlin SDK and the BlueFalcon library as dependencies in your app’s build.gradle.kts or build.gradle file:
dependencies {
implementation("com.github.Neurotechnology:BrainAccess-Kotlin-SDK:1.0.0")
implementation("com.github.Neurotechnology:Blue-Falcon:2.0.0")
}
Permissions#
To use the BrainAccess Kotlin SDK, you need to declare the following permissions in your app’s AndroidManifest.xml file:
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
You will also need to request these permissions at runtime. For more information on runtime permissions, please refer to the official Android documentation.