Skip to content

Migration from previous version

Migration from previous versions to 1.5 is below change log

Change log

Version 1.5.0

Bug fixes

  • Fixed: control photo is sometimes too dark on iOS

New features

  • Distribute iOS IAD library as xcframework packages
  • Experimental feature: Non-UI mode

Major changes

  • IDCameraController.framework framework name was changed to IDLiveFaceCamera.xcframework
  • IDLivenessAPI.framework framework name was changed to IDLiveFaceLiveness.xcframework
  • IDLiveFaceIAD.framework framework name was changed to IDLiveFaceIAD.xcframework
  • Demo app was modified and also path is a little bit different: idlive-face-capture-ios-X.X.X/idrnd_frameworks_delivery/CameraExample_IAD/CameraExample
  • IDLiveFaceCamera framework in IDCameraControllerDelegate protocol:
    • changed:
      • image: UIImagecapturedImage: IDImage
      • allowToTakeManually: BoolcaptureMode: PhotoCaptureMode
      • currentModecurrentViewMode
      • ignoresLifecycleEvents is renamed to runInBackground (used only for non-ui mode)
    • added:
      • showFaceDetectionErrors: Bool
      • stopAfterCapture: Bool
      • lastLiveImage: IDImage?
      • canTakePhotoNow: Bool
      • animation to capture button
  • IDCameraControllerDelegate protocol was changed:

replaced:

func cameraControllerShouldShowFaceDetectionMessage(_ controller: IDCameraControllerBase, result: FaceDetectorResult) -> Bool

with:

func cameraControllerDidUpdateFaceResult(_ controller: IDCameraControllerBase, result: FaceDetectorResult, image: IDImage?, momentary: Bool)

added:

func cameraControllerDidUpdateViewMode(_ controller: IDCameraControllerBase)

// (used only for non-ui mode)
func cameraControllerDidUpdateLiveImage(_ controller: IDCameraControllerBase, image: IDImage)
  • IDLiveFaceCamera → FaceDetectorResult:
    • renamed addCustomDetectingClosureaddCustomFaceDetectorClosure
    • renamed: error, ignorableError, fatalError → faceDetectionError, faceDetectionIgnorableError, faceDetectionFatalError
    • renamed var rawValuevar message
    • var isError is now exposed (public)
    • added one more FaceDetectorResult: customUserError

Migration from previous versions to 1.5

  • You have to change Xcode project settings.
    • In General tab remove previous framework versions and add the new one instead
  • You have to change all imports from IDCameraController to IDLiveFaceCamera if you use it
  • IDCameraControllerDelegate was changed, so you need to update all instances which you are using. Please check changelog for more details
  • FaceDetectorResult was expanded and changed
  • addCustomDetectingClosure was changed to → addCustomFaceDetectorClosure so if you using it you also have to make some changes here