Delivered iOS SDK offers an easy integration of chat feature into your app. Here is how it works: The SDK includes customisable UI (
ChatUI), database (
ChatDatabase), and networking (
Rooster) components. In few and very simple steps, integrate chat functionality to your app.
To get started with Delivered SDK for iOS on a new/existing project, you need:
The following demonstrate how to include the Delivered SDK:
Our SDK can be integrated as a submodule to your project, here is a quick guide of installation:
Note: One can choose to integrate and test the UI framework before integrating the database and networking frameworks; no interdependency.
$ mkdir Vendor // UI framework: ChatUI $ git submodule add email@example.com:jongla/delivered-sdk-ios-ui.git Vendor/ChatUI // Database framework: ChatDatabase $ git submodule add firstname.lastname@example.org:jongla/delivered-sdk-database.git Vendor/ChatDatabase // Networking framework: Rooster $ git submodule add email@example.com:jongla/ios-rooster-temp.git Vendor/Rooster
Xcode setup: In Xcode, navigate to Targets - Build Phases - Link Binaries With Libraries and click on the + to add libraries. Choose Add Other… and find the .xcodeproj file (e.g. ChatUI.xcodeproj in case of adding ChatUI submodule) from the Vendor subfolder (…Vendor/ChatUI/). Xcode will now show the project under Frameworks folder. Click on the + button once again in Link Binaries With Libraries and add the framework.
Navigate to Targets/General/Embedded Binaries and add the framework (same as above). If this creates duplicates in Link Binaries With Libraries, remove the duplicate.
These are all the steps required to integrate the database and networking frameworks to Xcode.
ChatUI, contains graphics assets. Finish up the integration by adding the assets in Xcode as follows:
Include graphic assets: This step is only necessary when adding the ChatUI framework.
Right below Link Binaries With Libraries, expand Copy Bundle Resources and follow the above steps to add Graphics.xcassets from ChatUI submodule directory (/Vendor/ChatUI/Graphics.xcassets). When prompt to choose options for adding these files, choose create folder references.