To use the SDK within your application:
- Choose your framework file, and drag and drop the MJCS.framework into your Xcode project (when asked to copy files, tick the box).
- Select your project within the project navigator, select your application target and navigate to the “Build Phases” tab.
- Drag and drop the MJCS.framework into `Link Binary With Libraries` section if it isn’t already present.
- Expand `Embed Frameworks` section on Build Phases also to add `MJCS.framework` there as well.
- The
SDK uses 3rd party dependencies that you are required to add:
- AFNetworking.framework (www.github.com/AFNetworking/AFNetworking)
- ZipZap.framework (www.github.com/pixelglow/ZipZap)
- FLAnimatedImage.framework – Only if using liveness (www.github.com/Flipboard/FLAnimatedImage)
- If you want to have pre-installed profile (document resources for smart capture functionality) bundle add a default zip file into your project. The package should be called as: `IDES-default-profile.zip`
SDK should be initialized before using any SDK function. You can either initialize before using directly (lazy) or while application is loading.
[MJCS loadSDK];
To then use the various classes within MJCS, at the top of your implementation file import the MJCS umbrella header:
Objective-C -> @import MJCS
Swift -> import MJCS