stripe-ios
stripe-ios copied to clipboard
Support Microblink detector
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
CaptureCoreas a spm dependency inStripeIdentity.xcodeproj- this change makes sure the dependency builds in xcode - Added
CaptureCoreas a spm dependency inIdentityVerification 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