Reputation: 141
I recently obtained the Estimote UWB SDK for Android and I'm trying to integrate it into my Android Studio project. The SDK folder contains the following files: uwb-sdk-1.0.0-rc1.aar, uwb-sdk-1.0.0-rc1.pom, and maven-metadata.xml. My goal is to build an app that can detect beacons using the Estimote UWB SDK and play 3D sounds when the device gets close to them.
I have tried to include these files in my project, but I encountered a sync failure in my build.gradle file. I'm unsure about the correct location to place these files within my Android Studio project, and how to properly configure the dependencies and build process.
How to correctly integrate the Estimote UWB SDK into an Android Studio project? Specifically, I would appreciate assistance with the following:
The correct location to place the Estimote UWB SDK files (uwb-sdk-1.0.0-rc1.aar, uwb-sdk-1.0.0-rc1.pom, and maven-metadata.xml) within my Android Studio project structure. and where to paste this code snippet
allprojects {
repositories {
maven {
url "https://estimote.jfrog.io/artifactory/android-proximity-sdk"
}
}
}
How to properly configure the build.gradle file to include the Estimote UWB SDK as a dependency?
Any additional steps or considerations I need to be aware of to successfully use the Estimote UWB SDK for beacon detection and 3D sound playback?
Upvotes: 0
Views: 293
Reputation: 21
Estimote Team here,
we have updated our GitHub repo with Android UWB SDK and it now includes both detailed README how to integrate the SDK with Android Studio project as well as sample Android Studio project you can download.
The UWB SDK is here: https://github.com/Estimote/Android-Estimote-UWB-SDK
Per our documentation to integrate the Estimote UWB SDK into your project, you need to add Estimote UWB dependencies to your Android Studio project.
Add below UWB SDK reference to the dependencies section of your build.gradle.kts file.
dependencies {
implementation("com.estimote:uwb-sdk:1.0.0-rc5")
}
Also, add the Maven link below to the repositories section of your settings.gradle.kts file.
dependencyResolutionManagement {
repositories {
maven { url = uri("https://estimote.jfrog.io/artifactory/android-proximity-sdk/") }
}
}
Remember to Sync Project with Gradle Files from the File menu after adding them.
Then you are ready to start importing our SDK classes to your project.
import com.estimote.uwb.api.EstimoteUWBFactory
import com.estimote.uwb.api.scanning.EstimoteUWBScanResult
import com.estimote.uwb.api.ranging.EstimoteUWBRangingResult
Hope this helps!
Upvotes: 1
Reputation: 796
I don't know if you are still looking for the answer, but after adding the maven repository as a source, you have to add the dependency as you usually would to your build.gradle
implementation 'com.estimote:uwb-sdk:1.0.0-rc5'
You can browse the repository and look for the artifact id and latest version.
Upvotes: 0