kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
758 stars 238 forks source link

Disable SDL2 hidapi in order to avoid dependency on `CoreBluetooth` #779

Closed misl6 closed 1 year ago

misl6 commented 1 year ago

Kivy does not make use of SDL2 hidapi, and building it into our artifacts requires to link against the CoreBluetooth framework.

More importantly, Apple notices it just after the submission to the App Store, and requests the developer to explain the user why the access to this feature / data is needed via NSBluetoothPeripheralUsageDescription and NSBluetoothAlwaysUsageDescription keys.

SDL refers to this issue here, and suggests to disable the HIDAPI via SDL_HIDAPI_DISABLED: https://github.com/libsdl-org/SDL/blob/07d0f51fa292895443f563f0cbde4cb3802d87fa/include/SDL_hidapi.h#L56-L60