The Customer Data Platform for Developers
Website · Documentation · Community Slack
Integrating RudderStack iOS SDK with SQLCipher
This repository contains the resources and assets required to integrate the RudderStack iOS SDK with SQLICipher.
Important: This feature is supported for SQLCipher v4.0 and above. |
---|
Step 1: Integrate the SDK with SQLCipher
RudderDatabaseEncryption
is available through CocoaPods. To install it, add the following line to yourPodfile
:
pod 'RudderDatabaseEncryption', '~> 1.0.0'
- Run the
pod install
command.
Step 2: Import the SDK
Swift
import RudderDatabaseEncryption
Objective C
@import RudderDatabaseEncryption;
RSClient
)
Step 3: Initialize the RudderStack client (Place the following in your AppDelegate
under the didFinishLaunchingWithOptions
method.
Objective C
RSConfigBuilder *builder = [[RSConfigBuilder alloc] init];
[builder withDataPlaneUrl:DATA_PLANE_URL];
[builder withDBEncryption:[[RSDBEncryption alloc] initWithKey:@"test1234" enable:YES databaseProvider:[RSEncryptedDatabaseProvider new]]];
[RSClient getInstance:WRITE_KEY config:[builder build]];
Swift
let builder: RSConfigBuilder = RSConfigBuilder()
.withDataPlaneUrl(DATA_PLANE_URL)
.withDBEncryption(RSDBEncryption(key: "test1234", enable: true, databaseProvider: RSEncryptedDatabaseProvider()))
RSClient.getInstance(WRITE_KEY, config: builder.build())
About RudderStack
RudderStack is the customer data platform for developers. With RudderStack, you can build and deploy efficient pipelines that collect customer data from every app, website, and SaaS platform, then activate your data in your warehouse, business, and marketing tools.
Start building a better, warehouse-first CDP that delivers complete, unified data to every part of your customer data stack. Sign up for RudderStack Cloud today. |
---|
Contact us
For queries on configuring or using this integration, start a conversation in our Slack community.