Yubico / yubikit-ios

Yubico Mobile iOS SDK - YubiKit
Apache License 2.0
194 stars 43 forks source link

Device capabilities blocklist #152

Open MichaelBuckley opened 2 months ago

MichaelBuckley commented 2 months ago

Hello,

Apple introduced new iPad models a couple days ago, all of which use USB-C. However, because Yuibikit uses a list of known models to check support for USB-C, apps using Yubikit will need to update to work on these devices.

Becuase the EU is requiring that all smartphones use USB-C by the fall of this year, and since that is when Apple releases new iPhones, it is unlikely that Apple will ever release another Lightning iDevice again.

This pull request contains a change to switch +supportsSmartCardOverUSBC to use a list of devices which don't support USB-C. If you accept this pull request, going forward, apps will not have to update when new devices come out in order to support USB-C on these devices.

It also contains a similar change to + deviceIsNFCEnabled for the same reason. It assumes that all future iPhones will have NFC capability, and that other iDevices will not.

Thank you for your consideration.