Skip to main content

Project Setup

To use the Vehicle SDK, configure SDK dependencies and permissions.

Add SDK dependency

Add the dependency as shown in 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:Vehicle:2.0.3")
}

Permission configuration

To use Vehicle SDK APIs, you must register the permissions required for each API. You can check required permissions with the @RequiresPermission annotation. See Permission for permission types and domain mapping.

Below is an example of AndroidManifest.xml.

AndroidManifest.xml
// For example:
<?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.CAR_ENERGY" />
<uses-permission android:name="pleos.car.permission.CAR_INFO" />

// .. omitted

</manifest>