Skip to content

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

  1. Install CocoaPods on your computer:

    Run command

    1
    2
    sudo gem install cocoapods
    sudo gem install cocoapods-art
    

    For more information follow CocoaPods Installation Guides

  2. Install/Update CocoaPods repository:

    Run command

    1
    pod repo-art add telenav-cocoapods "https://telenav.jfrog.io/artifactory/api/pods/telenav-cocoapods"
    
    or
    1
    pod repo-art update telenav-cocoapods
    
    to update local cocoapods repository, as well as delete Podfile.lock file.

  3. Create a Podfile, and add your dependencies:

    1
    2
    3
    target 'MyAppTarget' do
        use_frameworks!
    end
    
    For more information follow Podfile Guides

  4. Add the following lines to the beginning of Podfile.

    1
    2
    3
    plugin 'cocoapods-art', :sources => [
        'telenav-cocoapods'
    ]
    

Configure DataCollector

  1. Add DataCollector dependency in your target (after use_frameworks!):

    pod 'TelenavSDKDataCollector'

  2. Run pod repo-art update telenav-cocoapods in your project directory.

    And then: pod install .

  3. Open App.xcworkspace and build.

Configure DataSource

  1. Add DataCollector dependency in your target (after use_frameworks!):

    pod 'TelenavDataSourceCenter'

  2. Run pod repo-art update telenav-cocoapods in your project directory

    And then: pod install .

  3. Open App.xcworkspace and build.

Note

The Data Source depends on Data Collector component, so Data Collector will be installed automatically when cofiguring Data Source.