In order to build your app on a SmartDeviceLink (SDL) Core, the SDL software development kit (SDK) must be installed in your app. The following steps will guide you through adding the SDL SDK to your workspace and configuring the environment.
Each SDL Android library release is published to JCenter. By adding a few lines in their app's gradle script, developers can compile with the latest SDL Android release.
To gain access to the JCenter repository, make sure your app's build.gradle
file includes the following:
repositories { jcenter() }
To compile with the a release of SDL Android, include the following line in your app's build.gradle
file,
dependencies { implementation 'com.smartdevicelink:sdl_android:{version}' }
and replace {version}
with the desired release version in format of x.x.x
. The list of releases can be found here.
To compile release 4.9.0, use the following line:
dependencies { implementation 'com.smartdevicelink:sdl_android:4.9.0' }
To compile the latest minor release of major version 4, use:
dependencies { implementation 'com.smartdevicelink:sdl_android:4.+' }