Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device capabilities blocklist #152

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MichaelBuckley
Copy link

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.

It is unlikely Apple will be introducing any more Lightning
devices. As such, for +supportsSmartCardOverUSBC, we can use the
list of all released Lightning devices, assuming that any device
that doesn't use Lightning uses USB-C. This will prevent having
to release app updates every time Apple releases a new device.
All iPhones since iPhone 7 have supported NFC. Switch to checking
that the current device is an iPhone and is not earlier than the
iPhone 7 for +deviceIsNFCEnabled. This way, we won't have to issue
updates when new iPhones are released by Apple.
@MichaelBuckley MichaelBuckley force-pushed the device-capabilities-blocklist branch from 0151e06 to 5e03cbc Compare May 9, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant