Bringg Driver SDK
安装
CocoaPods
请确保已安装 Cocoapods。
$ gem install cocoapods
要使用 Cocoapods 将 BringgDriverSDK 集成到您的 Xcode 项目中,请在您的 Podfile
中指定它
pod 'BringgDriverSDK', '1.116.1'
OR
pod 'BringgDriverSDKObjc', '1.116.1'
# All dependencies of the BringgDriverSDK needs to be built with the 'BUILD_LIBRARY_FOR_DISTRIBUTION' configuration set to 'YES'
BringgDriverSDKDependencies = [
'Socket.IO-Client-Swift',
'Starscream',
'libPhoneNumber-iOS',
'CryptoSwift',
'GzipSwift',
'Alamofire',
'XCGLogger',
'RealmSwift',
'ObjcExceptionBridging',
'Kingfisher',
'KeychainAccess',
'DeviceKit'
]
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if BringgDriverSDKDependencies.include? target.name
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
end
然后,运行以下命令
$ pod install
功能
启用以下功能(项目设置 -> 选择目标 -> '签名 & 功能')
- 后台模式 - 后台获取
- 后台模式 - 位置更新
Info.plist
进入您的应用程序设置中的“信息”选项卡,为以下权限字符串添加
- 隐私 - 总是定位和使用描述
- 隐私 - 位置使用描述
- 隐私 - 总是定位使用描述
- 隐私 - 总是蓝牙使用描述
- 隐私 - 蓝牙外围设备使用描述
- 隐私 - 运动使用描述
示例应用程序
框架中包含两个示例应用程序。
/Example
是具有框架完整功能的示例应用程序。此应用程序应用于使用SDK的驱动程序应用程序用例。/ActiveCustomerExample
是针对客户应用程序使用应用程序从商店取货的特定用例的示例应用程序。
使用示例应用程序前,请克隆仓库并打开您用例的示例应用程序。在使用示例应用程序之前,请运行pod install
并打开创建的工作区。