Rudder-Sprig 1.0.0

Rudder-Sprig 1.0.0

Maintained by RudderStack.



 
Depends on:
Rudder~> 1.29
UserLeapKit~> 4.22.3
 

  • By
  • RudderStack

What is RudderStack?

RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.

With RudderStack, you can build customer data pipelines that connect your whole customer data stack and then make them smarter by triggering enrichment and activation in customer tools based on analysis in your data warehouse. Its easy-to-use SDKs and event source integrations, Cloud Extract integrations, transformations, and expansive library of destination and warehouse integrations makes building customer data pipelines for both event streaming and cloud-to-warehouse ELT simple.

Try RudderStack Cloud Free - a no time limit, no credit card required, completely free tier of RudderStack Cloud. Click here to start building a smarter customer data pipeline today, with RudderStack Cloud Free.

Questions? Please join our Slack channel or read about us on Product Hunt.

Integrating Sprig with the RudderStack iOS SDK

NOTE: Rudder-Sprig version 1.0.0 is compatible with the UserLeapKit version 4.22.3.

  1. Add Sprig as a destination in the RudderStack dashboard.

  2. Rudder-Sprig is available through CocoaPods and Swift Package Manager (SPM).

CocoaPods

Add the following line to your Podfile and followed by pod install:

pod 'Rudder-Sprig', '~> x.y.z'

Swift Package Manager (SPM)

You can also add the RudderStack iOS SDK via Swift Package Mangaer.

  • Go to File -> Add Package, as shown:

add_package

  • Enter the package repository (https://github.com/rudderlabs/rudder-integration-sprig-ios) in the search bar.

  • In Dependency Rule, select Exact Version and enter latest as the value, as shown:

add_package

  • Select the project to which you want to add the package.

  • Finally, click on Add Package.

Swift

Initializing RudderClient

Put this code in your AppDelegate.swift file under the method didFinishLaunchingWithOptions

let configBuilder = RSConfigBuilder()
        .withDataPlaneUrl(DATA_PLANE_URL)
        .withLoglevel(RSLogLevelDebug)
        .withFactory(RudderSprigFactory.instance)
            
RSClient.getInstance(WRITE_KEY, config: configBuilder.build())

Setup the sample iOS app

  1. Make a copy of the SampleRudderConfig.plist into the RudderConfig directory and rename it to RudderConfig.plist.
  2. Fill the required details e.g., WRITE_KEY and DATA_PLANE_URL.
  3. Start sending the events

Sending Events

Follow the steps from the RudderStack iOS SDK repo.

Contact Us

If you come across any issues while configuring or using this integration, please feel free to start a conversation on our Slack channel. We will be happy to help you.