Skip to main content

Project setup

To use the Vehicle SDK, you need to configure the 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 the API of the Vehicle SDK, you must register the permissions required for each API.

The @RequiresPermission annotation allows you to easily check and register the necessary permissions. 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" />

// .. 생략

</manifest>