IoTize Tap设备客户端
Swift Tap设备客户端实现。
警告:这是一个早期阶段的库。它不包含所有功能;未来的发布可能会引入破坏性更改。它可能不稳定。
使用方式
有关全部文档,请参阅Tap API文档网站
安装
CocoaPods
测试了pod --version: 1.4.0
# Podfile
use_frameworks!
target 'YOUR_TARGET_NAME' do
# Add the core library
pod 'TapDeviceClient', '~> 0.0.1-alpha.1'
# Add communication libraries according to your needs
# If you want to communicate though sockets with your Tap device
pod 'TapSocketProtocol', '~> 0.0.1-alpha.1'
# If you want to communicate though BLE with your Tap device (Not available yet)
# pod 'TapBLEProtocol', '~> 0.0.1-alpha.1'
end
路线图
- BLE协议实现
- 改进错误管理
- 提高测试覆盖率
- 添加iOS演示应用程序
- 针对更低版本的iOS和OSX
贡献
本项目使用Xcodegen工具设置Xcode项目
SwiftGen
swiftgen config run --config tools/swiftgen/swiftgen.yml
XcodeGen
xcodegen文件由xcodegen
工具生成。
xcodegen && open ./TapDeviceClient.xcodeproj
Carthage
cd ./Tools/Carthage && carthage update --no-use-binary