Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开始与 WURFL 合作,不知何故我需要所有 Android 设备制造商的列表。以及所有安卓版本。我需要基于 WURFL 设备数据库的此信息。我应该自己解析 wurfl.xml 还是...?
您始终可以解析 wurfl.xml 文件以获取您正在寻找的信息,但是您应该记住,它并不是每个设备的完整列表。wurfl.xml 文件旨在与 WURFL API 密切合作。
这个想法是为 API 存储最小数量的用户代理,以便能够检测最大数量的设备。因此,虽然您可能在 xml 文件中看不到设备,但很可能仍会检测到它。
或者使用任何可能的宝石:
https://rubygems.org/search?utf8=%E2%9C%93&query=wurfl