提交 99b0a5b1 authored 作者: 祁增奎's avatar 祁增奎

去掉NFC模块

上级 55d37a92
//
// DTFIdentityManager.h
// DTFIdentityManager
//
// Created by mengbingchuan on 2022/11/23.
// Copyright © 2022 DTF. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ZimRpcManager.h"
#import <DTFUtility/DTFFaceIdentityProtocol.h>
//version 2.3.29
NS_ASSUME_NONNULL_BEGIN
typedef void (^ZIMCallback)(ZIMResponse *response);
@interface DTFIdentityManager : NSObject<DTFFaceIdentityProtocol>
+ (DTFIdentityManager *)sharedInstance;
@end
NS_ASSUME_NONNULL_END
//
// DTFIdentityPublicApi.h
// DTFIdentityManager
//
// Created by richard on 22/11/2017.
// Copyright © 2017 DTF. All rights reserved.
//
#ifndef DTFIdentityPublicApi_h
#define DTFIdentityPublicApi_h
#import <DTFIdentityManager/DTFIdentityManager.h>
#import <DTFIdentityManager/DTFSdk.h>
#endif /* DTFIdentityPublicApi_h */
//
// DTFSdk.h
// DTFIdentityManager
//
// Created by richard on 22/11/2017.
// Copyright © 2017 DTF. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DTFSdk : NSObject
/*初始化接口,尽可能早调用
*/
+ (void)init;
/* IPV6的初始化接口 只有你的网络环境强制要求是IPV6的时候,才调用initIPv6。
*/
+ (void)initIPv6;
+ (NSString *)getVersion;
+ (void)preload:(NSDictionary *)param completion:(void (^)(BOOL success))completion;
/*同步获取设备指纹token
1)SDK初始化后需要经过一段时间计算才能获取到deviceToken,建议间隔3秒以上;
2)deviceToken短期有效,不能长期缓存使用,不能作为设备唯一标识。
*@param session 要获取的session缓冲区
*@param lenth session缓冲区的长度,此值应不小于384 比如:char session[384] = {0};
*@return 0表示成功,其他表示失败
*/
+(int) getSession:(char *) session : (const int) lenth DEPRECATED_MSG_ATTRIBUTE("use getMobileSession instead");
/*同步获取设备指纹token
1)SDK初始化后需要经过一段时间计算才能获取到deviceToken,建议间隔3秒以上;
2)如果没有获取到token,返回的内容是@"",没有内容的字符串。
*/
+(NSString*)getMobileSession:(NSString *)certifyID;
//获取无线保镖基本数据。
+ (NSDictionary*) getSecurityInfo DEPRECATED_MSG_ATTRIBUTE("won't use any more");;
@end
//
// ZimJSApiAdapter.h
// DTFIdentityManager
//
// Created by 晗羽 on 25/07/2017.
// Copyright © 2017 DTF. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^ZIMJSApilCallbackBlock)(id responseData);
@interface ZimJSApiHandler: NSObject
- (void)handler:(NSDictionary *)data contextInfo:(NSDictionary *)context callback:(ZIMJSApilCallbackBlock)callbac;
@end
//
// ZIMRpcManager.h
// DTFIdentityManager
//
// Created by richard on 26/02/2018.
// Copyright © 2018 com. DTF.iphoneclient.DTF. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <DTFUtility/DTFUtility.h>
#import <DTFUtility/DTFRPCProxyProtocol.h>
/**
* rpc结果回调
*
* @param success 网络交互是否成功(不代表服务端返回的结果)
* @param result 服务端返回的结果
*/
@interface ZimRpcManager : NSObject
@property(nonatomic, strong) APBToygerBioBisConfigManager *protoclModel;
@property(nonatomic, copy) NSString *zimId;
@property(nonatomic, copy) NSDictionary *ossConfig;
@property(nonatomic, weak) id<DTFRPCProxyProtocol> rpcDelegate;
//代理模式
//- (void)doValidateRequetViaDelegate:(ZimValidateRequest * )request withcompletionBlock:(rpcCompletionBlock)blk;
/**
* zim init request
*
* @param request 初始化请求
* @param blk 网络请求结果回调处理,result为ZimInitResponse
*/
- (void)doFastUploadInitRequest:(NSDictionary * )request withcompletionBlock:(DTFRpcCompletionBlock)blk;
/**
* zim validate request
*
* @param request validate请求
* @param blk 网络请求结果回调处理,result为ZimValidateResponse
*/
- (void)doFastUploadValidateRequest:(ZimValidateRequest * )request withcompletionBlock:(DTFRpcCompletionBlock)blk;
//OCR接口
- (void) doSendOCRContent:(NSString*)certifyId idSide:(NSString*)side withImage:(NSData*)imageData withcompletionBlock:(rpcCompletionBlock)blk;
//EKYC OCR接口
- (void)doSendEKYCOCRContent:(NSDictionary*)params withcompletionBlock:(DTFRpcCompletionBlock)blk ;
//EKYC OCR确认接口
- (void)doSendEKYCOCRContentConfrim:(NSDictionary*)params withcompletionBlock:(DTFRpcCompletionBlock)blk ;
//侧信道oss上传
- (void)doUploadOSSContent:(NSDictionary*)params withcompletionBlock:(DTFRpcCompletionBlock)blk;
// SMS 请求接口
- (void)getSMSCode:(NSDictionary*)serviceParameters completionBlock:(DTFRpcCompletionBlock)blk;
// SMS 验证接口
- (void)verifySMSCode:(NSDictionary*)serviceParameters completionBlock:(DTFRpcCompletionBlock)blk;
@end
framework module DTFIdentityManager {
umbrella header "DTFIdentityManager.h"
export *
module * { export * }
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string></string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string></string>
</array>
</dict>
</array>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
</array>
</dict>
</plist>
/*
Localizable.strings
AliyunIdentityFace
Created by Lingxuan on 2022/12/1.
Copyright © 2022 aliyun.com. All rights reserved.
*/
// nfc提示文案
"kNeed" = "Time left: ";
"kDontMove" = "seconds. Do not remove your device.";
"kNFCIdentification" = "NFC Verification";
"kIDNumber" = "ID Number";
"kEnterIDNumber" = "Enter a 9-digit ID number";
"kDateOfBirth" = "Date of Birth";
"kPeriodOfValidity" = "Validity Period";
"kPleaseSelect" = "Select";
"kNextStep" = "Next";
"kCancelTitle" = "Cancel";
"kOKTitle" = "OK";
"kStart" = "Please prepare your documents and click to start reading";
"kStartReading" = "Start Reading";
"kReadException" = "An error occurred. Try again.";
"kNetworkAnomaly" = "Check the network connection and try again.";
"kReadError" = "An error occurred.";
"kCardReadingFailure" = "Do not move the document during reading. Position the document in the NFC area and try again.";
"kThreeElementErrors" = "The specified parameters of your document are invalid. Change the values.";
"kCardError" = "An error occurred. Use a valid document.";
"kDeviceNotSupported" = "An error occurred. The current device does not support this feature.";
"kNFCTurnedOff" = "NFC is disabled.";
"kSuccessfullyRead" = "Successful";
"kCardReading" = "The document is being read. Do not move the document.";
"kPutIDCardInPosition" = "Position your document";
"kPutIDCardInPositionMove" = "Position your document and wait for ";
"kIDCardReadFailedRetry" = "Failed to read the document. Try again.";
"kIDCardReadFailed" = "Failed to read the document.";
"kExpirationMustGreaterBirthdate" = "The valid expiry date of the certificate must be greater than the date of birth.";
"kPrompt" = "Prompt";
"kReadyToScan" = "Ready to scan";
/*
Localizable.strings
AliyunIdentityFace
Created by Lingxuan on 2022/12/1.
Copyright © 2022 aliyun.com. All rights reserved.
*/
// nfc提示文案
"kNeed" = "还需";
"kDontMove" = "秒,请勿移动";
"kNFCIdentification" = "NFC识别";
"kIDNumber" = "证件号码";
"kEnterIDNumber" = "请输入9位证件号码";
"kDateOfBirth" = "出生日期";
"kPeriodOfValidity" = "有效期";
"kPleaseSelect" = "请选择";
"kNextStep" = "下一步";
"kCancelTitle" = "取消";
"kOKTitle" = "确定";
"kStart" = "请准备好证件,点击开始读卡";
"kStartReading" = "开始读取";
"kReadException" = "读取异常,请重试";
"kNetworkAnomaly" = "请检查网络,重新读卡";
"kReadError" = "读取错误";
"kCardReadingFailure" = "读取时请勿移动证件,请将证件对准NFC区域,重新读卡";
"kThreeElementErrors" = "证件要素输入不正确,请重新输入";
"kCardError" = "读取异常,请使用正确的证件";
"kDeviceNotSupported" = "读取异常,当前设备不支持此功能";
"kNFCTurnedOff" = "NFC已关闭";
"kSuccessfullyRead" = "读取成功";
"kCardReading" = "证件读取中,请勿移动";
"kPutIDCardInPosition" = "请将证件放到图示位置";
"kPutIDCardInPositionMove" = "请将证件放到图示位置,静置";
"kIDCardReadFailedRetry" = "读取证件失败,请重试";
"kIDCardReadFailed" = "读取证件失败";
"kExpirationMustGreaterBirthdate" = "证件有效截止日期必须大于出生日期。";
"kPrompt" = "提示";
"kReadyToScan" = "已准备好扫描";
//
// NFCDatePickerView.h
// ZimDemo
//
// Created by 汪澌哲 on 2023/6/7.
// Copyright © 2023 com.alipay. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface NFCDatePickerView : UIView
@property (nonatomic, copy) void (^onConfirm)(NSDate *);
@property (nonatomic, copy) NSString *maxDate;
- (void)showWithSelectedDate:(NSDate *)selectedDate onConfirm:(void (^)(NSDate *date))onConfirm;
- (void)dismiss;
@end
NS_ASSUME_NONNULL_END
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string></string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string></string>
</array>
</dict>
</array>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
</array>
</dict>
</plist>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论