CleverTap integration for Journify-ios.
Clevertap-Journify-ios is available through SPM
To add Clevertap-Journify-ios via Swift Package Mangaer:
Note: Clevertap-Journify-ios recommends that you use Xcode to add your package.
//Enable debug mode
CleverTap.setDebugLevel(CleverTapLogLevel.debug.rawValue)
Journify.debugLogsEnabled = true
//Setup Journify
let configuration = Configuration(writeKey: "Your_Key")
.trackApplicationLifecycleEvents(true)
.flushInterval(10)
Journify.setup(with: configuration)
//Setup & Add cleverTapDestination
let cleverTapDestination = CleverTapDestination(accountID: "Your_Account_ID", token: "Your_Account_Token", region: "Your_Region")
Journify.shared().add(plugin: cleverTapDestination)- Xcode 14+
- Swift 5.3+
- iOS 13.0+
-
Clone the repository:
git clone https://github.com/journifyio/clevertap-journify-ios.git cd clevertap-journify-ios -
Resolve dependencies:
swift package resolve
-
Open the example app:
open Example/SwiftExample/SwiftExample.xcodeproj
-
In Xcode, go to File > Packages > Resolve Package Versions to sync the workspace dependencies.
The example app (Example/SwiftExample) lets you test the integration end-to-end. On launch it prompts for:
- Journify Write Key — your Journify source write key
- CleverTap Account ID — from the CleverTap dashboard
- CleverTap Token — from the CleverTap dashboard
- CleverTap Region - from the CleverTap dashboard
.
├── Sources/CleverTapDestination/ # SDK source
├── Example/SwiftExample/ # Example Xcode project
├── Package.swift # SPM manifest
└── Package.resolved # Pinned dependency versions
This SDK was based of Segment Swift SDK https://github.com/segmentio/analytics-swift (Thanks to the Segment team)
