2 Star 0 Fork 0

che300-ios / HTEvalSDK_iOS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

HTEvalSDK_iOS

汇通精准评估 SDK,支持车况定价,车辆精准评估等功能

项目工程环境

  1. 开发环境Xcode 12.4 以及后续新版本
  2. 支持 SwiftObjective-C 编程语言开发项目
  3. Swift 语言版本最低 5.0
  4. 支持部署最低系统版本为 iOS 10.0
  5. 使用 Cocoapods 托管依赖,因为支持 XCFramework 需要pod版本在 1.10.1 以上

需要申请的系统权限,

使用 SDK 需申请以下权限

  • 定位权限:Privacy - Location When In Use Usage Description
  • 相机权限: Privacy - Photo Library Additions Usage DescriptionPrivacy - Photo Library Usage Description
  • 相册权限: Privacy - Camera Usage Description
  • 麦克风权限: Privacy - Microphone Usage Description

info.plist 添加如下权限描述

<key>NSLocationWhenInUseUsageDescription</key>
<string>请求定位权限相关描述</string>
<key>NSCameraUsageDescription</key>
<string>请求相机权限相关描述</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>请求添加相册权限相关描述</string>
<key>NSMicrophoneUsageDescription</key>
<string>请求麦克风权限相关描述</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>请求相册权限相关描述</string>

集成步骤

1. 使用 Cocoapods 集成, 在 podfile 添加:

pod 'HTEvalSDK_iOS'

2. 需要使用动态库,在 podfile 添加使用动态库

use_frameworks!

3. 需要指定工程的 Swift 语言环境版本,在 podfile 添加

ENV['SWIFT_VERSION'] = '5.0'

4. 在 podfile 文件末尾添加

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
    end
  end
end

使用 SDK

为保证 SDK 正常使用,应提供以下参数

1.用户 id

userId,字符串类型,用户唯一标识。

2.机构列表

institutions,当前用户的机构列表,传入 集合json 例如:

[
    {
        "code": "1",
        "name": "Sp1"
    },
    {
        "code": "2",
        "name": "Sp2"
    },
    {
        "code": "3",
        "name": "Sp3"
    },
    {
        "code": "4",
        "name": "Sp4"
    }
]
MIT License Copyright (c) 2021 che300-iOS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Objective-C 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/che300-ios/HTEvalSDK_iOS.git
git@gitee.com:che300-ios/HTEvalSDK_iOS.git
che300-ios
HTEvalSDK_iOS
HTEvalSDK_iOS
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891