Skip to main content

Project setup

To use the NaviHelper SDK, you need to set up the SDK dependencies.

Add SDK dependencies

Add dependencies to the build.gradle file using the example below.

settings.gradle file

dependencyResolutionManagement {
...
repositories {
...
maven("https://nexus-playground.pleos.ai/repository/maven-releases/")
}
}

App module's build.gradle file

dependencies {
implementation("ai.pleos.playground:NaviHelper:2.0.3")
}

Permission configuration

You must register the appropriate permissions for each API to use the NaviHelper SDK's APIs.

The @RequiresPermission annotation makes it easy to check and register the necessary permissions. Below is an example of AndroidManifest.xml.

AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

// ..

<uses-permission android:name="pleos.car.permission.NAVI_ROUTE" />
<uses-permission android:name="pleos.car.permission.NAVI_ROUTE_SEARCH" />
<uses-permission android:name="pleos.car.permission.NAVI_CUSTOM_MAP" />
<uses-permission android:name="pleos.car.permission.NAVI_CUSTOM_ROUTE" />
<uses-permission android:name="pleos.car.permission.NAVI_CUSTOM_ETC" />

// ..

</manifest>