DeviceKit icon indicating copy to clipboard operation
DeviceKit copied to clipboard

Feature request: Remove platform specific build directives

Open martindaum opened this issue 5 years ago • 3 comments

I would like to use DeviceKit to translate device-identifiers stored in a database into human readable device nams (e.g. iPhone 11). But it would also like to translate devices of other platforms, like Apple Watch on iOS. This is not possible, because the build directives are used, so I would only get the correct translation on an Apple Watch. I am not sure if they are really necessary and if they could be removed?

martindaum avatar Feb 22 '20 15:02 martindaum

Did you ever figure out an alternative solution to this @martindaum ?

ptrkstr avatar Oct 07 '21 17:10 ptrkstr

Nope, we did not implement the planned feature, so it was fine for us then. :)

martindaum avatar Oct 09 '21 15:10 martindaum

Ahh no worries, I ended up creating my own (https://github.com/ptrkstr/Devices) until DeviceKit supports it.

ptrkstr avatar Oct 28 '21 08:10 ptrkstr