Install the SDK
To begin development of an application with Data Collector SDK, you will need CocoaPods, cocoapods-art plugin, and correctly configured Podfile.
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.
Preparations
-
Install CocoaPods on your computer:
Run command
1 2
sudo gem install cocoapods sudo gem install cocoapods-artFor more information follow CocoaPods Installation Guides
-
Install/Update CocoaPods repository:
Run command
or1pod repo-art add telenav-cocoapods "https://telenav.jfrog.io/artifactory/api/pods/telenav-cocoapods"to update local cocoapods repository, as well as delete Podfile.lock file.1pod repo-art update telenav-cocoapods -
Create a Podfile, and add your dependencies:
For more information follow Podfile Guides1 2 3
target 'MyAppTarget' do use_frameworks! end -
Add the following lines to the beginning of Podfile.
1 2 3
plugin 'cocoapods-art', :sources => [ 'telenav-cocoapods' ]
Configure DataCollector
-
Add DataCollector dependency in your target (after
use_frameworks!):pod 'TelenavSDKDataCollector' -
Run
pod repo-art update telenav-cocoapodsin your project directory.And then:
pod install. -
Open
App.xcworkspaceand build.
Configure DataSource
-
Add DataCollector dependency in your target (after
use_frameworks!):pod 'TelenavDataSourceCenter' -
Run
pod repo-art update telenav-cocoapodsin your project directoryAnd then:
pod install. -
Open
App.xcworkspaceand build.
Note
The Data Source depends on Data Collector component, so Data Collector will be installed automatically when cofiguring Data Source.