stripe-ios icon indicating copy to clipboard operation
stripe-ios copied to clipboard

Support Microblink detector

Open ccen-stripe opened this issue 1 year ago • 0 comments

Summary

Use Microblink detector along with IDDetector. Wrap IDDetector's output with Legacy and Modern types, when MB is available, emit Modern types.

When Modern is available, don't manually crop the image, but use the extracted image from MB for user_upload image

This change requires a new dependency CaptureCore from capture-ios from microblink, made the following changes to support it

  • Added it as a binaryTarget in Package.swift - this change adds the dependency to SPM integration
  • Added it as a StripeIdentity.podspec - this change adds the dependency to cocoapd integration
  • Added CaptureCore as a spm dependency in StripeIdentity.xcodeproj - this change makes sure the dependency builds in xcode
  • Added CaptureCore as a spm dependency in IdentityVerification Example.xcodeproj - this change makes sure the dependency builds in xcode

See https://github.com/stripe/stripe-android/pull/7997

Motivation

Better document detection.

Testing

  • [x] Added tests
  • [x] Modified tests
  • [x] Manually verified

Changelog

ccen-stripe avatar Mar 02 '24 06:03 ccen-stripe