deepstream.io-client-ios
deepstream.io-client-ios copied to clipboard
The iOS client for deepstream.io
UNMAINTAINED
DeepstreamIO
[](https://travis-ci.org/Akram Hussein/DeepstreamIO)
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
DeepstreamIO is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DeepstreamIO'
Building with Swift
Be sure to add a Bridging Header
that references #import <DeepstreamIO/DeepstreamIO.h>
see example
For example, in your project:
-
Select File > New > New File...
-
Select
Header File
-
Give it a name e.g.
Your-Project-Bridging-Header.h
-
From the Project Navigator, select your project (blue icon)
-
Navigate to Build Settings
-
Search for
bridging header
-
Add an entry like such, replacing the folder name and your file name ${PROJECT_DIR}/Project-Name/You-Project-Bridging-Header.h e.g. ${PROJECT_DIR}/DeepstreamIO/Deepstream-Bridging-Header.h
An example of this is in the Example project in the repository.
Deepstream Extensions
To help bridge between the Java transpiled Objective-C, a Swift extension file has been provided in the Pod that can be used to simplify usage of the DeepstreamIO pod.
To add this:
-
In the newly created .xcworkspace in your directory, expand the
Pods > Pods > DeepstreamIO
tree. -
Select the
resources
folder and drag it to your project.

- When presented with a dialogue, make sure
Copy items if needed
is NOT ticked and clickFinish
.

- You will now have access to the Swift extensions.
An example of this is in the Example project in the repository.
Author
Akram Hussein, [email protected]
License
DeepstreamIO is available under the Apache 2.0 license. See the LICENSE file for more info.