Install the SDK
Configure dependency
To begin development of an application using the Data Collector Service, add the SDK as a dependency into the project.
The Data Collector Service contains two components - Data Collector and Data Source. Data Source works as a plugin of Data Collector to help retrieve data.
Below is a sample configuration in the project build file for these two components separately. Replace the username and password with the repository credentials provided by Telenav.
Configure DataCollector
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Configure DataSource
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Note
The Data Source component depends on Data Collector component, so Data Collector will be downloaded automatically when downloading Data Source.
Tip
The SDK depends on several open source libraries (like okhttp, okio, common-lang.. etc). If you're using Gradle or Maven to download the SDK, these dependencies will be downloaded automatically. If you're downloading it manually, you will also need to add the SDK's dependecies to your project (refer to SDK's POM file).