UTS基础模块
使用UTS插件
、实人认证模块
以及UTS内置模块
必须集成UTS基础模块
,依赖如下:
主工程添加依赖:
- DCUniBase.framework(Embed & Sign)
- DCloudUTSFoundation.framework(Embed & Sign)
主工程移除依赖(DCUniBase内已包含下述依赖库,注意不要重复引用):
- liblibPDRCore.a
- liblibWeex.a
- libcoreSupport.a
- storage.framework
- libSDWebImage.a
- KSCrash.framework
UTS内置模块
包含模块:
- uni-chooseMedia
- uni-getAppAuthorizeSetting
- uni-getAppBaseInfo
- uni-getDeviceInfo
- uni-getLocation-tencent-uni1
- uni-getNetworkType
- uni-getSystemInfo
- uni-getSystemSetting
- uni-network
- uni-openAppAuthorizeSetting
- uni-privacy
- uni-prompt
- uni-storage
如需使用上述模块,在主工程添加DCloudUTSExtAPI.framework(Embed & Sign)
即可
注:若期望在UTS插件中使用uni api需要添加上述UTS内置模块,比如在uni-app项目中使用uni.getDeviceInfo()
无需添加ext-api
依赖,但若在UTS插件
中使用uni.getDeviceInfo()
需要添加ext-api(DCloudUTSExtAPI.framework)
后方可使用