To use the Camerai SDK get the latest build from your personal Camerai dashboard or download it at camerai.co and follow the next steps to integrate and initialize it.
Running the sample application
Unzip CameraiSDKExamples–X.X.X.X.zip archive and open SDKExamples.xcworkspace in Xcode. Simply build and run any project on a device (at the moment it does not run on the simulator, see Known Bugs and Issues section below). Investigate AppDelegate.m and ViewController.m files for details on how to initialize and use the SDK. Look at the EditorController class files to see how you can implement rendering on your own custom view controller.
Embedding into a new or existing project
Copy Solo.framework to the project folder. Then on the Build Phases tab press the + button and select Solo.framework
On the same tab press the + button on the top left and “New Copy Files” phase
Rename the new phase to something like “Embed Solo Framework”, select Frameworks destination folder and include the name Solo.framework into the phase by pressing + button
In Build settings for your project target change “Always Embed Swift Standard Libraries” flag to YES.
Now build and make sure that your target builds successfully
Connecting from cocoapods
The latest version of the Camerai SDK is always available as a pod and can be easily connected to the project if you are using cocoapods to manage dependencies (https://cocoapods.org/). It is not yet registered publicly so you can use a direct reference to our github public repository. Just add the following line to the Podfile.
pod 'SoloSDK', :git => 'https://github.com/tipitltd/SoloSDK.git'
pod 'SoloLightSDK', :git => 'https://github.com/tipitltd/SoloLightSDK.git'
The SDK requires only one line of code for initialization. In the application delegate implementation file include the Solo framework header
then inside the didFinishLaunching method add initSolo: method call of the SoloManager:
// Access Token is provided with the SDK and the customer does not need to make any action to obtain it. [SoloManager initSolo:@"accessTokenKey"];
All downloaded examples already contain this initialization line with your access token.