Skip to content

Commit e49be1f

Browse files
committed
perf: source切换为git模式
1 parent c4b8302 commit e49be1f

File tree

7 files changed

+218
-1
lines changed

7 files changed

+218
-1
lines changed

DXCaptcha.bundle/dx-captcha-1.0.0.html

Lines changed: 104 additions & 0 deletions
Large diffs are not rendered by default.

DXCaptchaSDK-1.7.0.zip

-279 KB
Binary file not shown.

DXCaptchaSDK.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Pod::Spec.new do |s|
88
s.homepage = "https://www.dingxiang-inc.com/docs/detail/captcha#doc-h3-12"
99
s.license = { :type => "Commercial", :text => "dingxiang-inc"}
1010
s.author = { "CMBSDK" => "[email protected]" }
11-
s.source = { :http => "https://github.com/letspod/DXCaptchaSDK/raw/master/DXCaptchaSDK-1.7.0.zip" }
11+
s.source = { :git => 'https://github.com/letspod/DXCaptchaSDK.git', :tag => s.version.to_s }
1212
s.requires_arc = true
13+
s.frameworks = 'libz','libresolv','libc++','SystemConfiguration','CoreLocation','CoreTelephony'
1314
s.ios.deployment_target = '8.0'
1415
s.vendored_frameworks ='DingxiangCaptchaSDK.framework'
1516
s.resource = 'DXCaptcha.bundle'
Binary file not shown.
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
//
2+
// DXCaptchaDelegate.h
3+
// DingxiangCaptchaSDK
4+
//
5+
// Created by xelz on 2017/9/25.
6+
// Copyright © 2017年 All rights reserved.
7+
//
8+
#define DXCAPTCHA_SDK_VERSION "1.7.0"
9+
10+
#import <Foundation/Foundation.h>
11+
12+
typedef enum {
13+
DXCaptchaEventNone,
14+
15+
// 渲染事件,验证码开始渲染时触发
16+
DXCaptchaEventBeforeRender,
17+
DXCaptchaEventRender,
18+
DXCaptchaEventAfterRender,
19+
20+
// 验证码准备就绪,可以接受用户输入时触发
21+
DXCaptchaEventBeforeReady,
22+
DXCaptchaEventReady,
23+
DXCaptchaEventAfterReady,
24+
25+
// 加载失败时触发
26+
DXCaptchaEventBeforeLoadFail,
27+
DXCaptchaEventLoadFail,
28+
DXCaptchaEventAfterLoadFail,
29+
30+
// 用户开始拖动滑块
31+
DXCaptchaEventBeforeDragStart,
32+
DXCaptchaEventDragStart,
33+
DXCaptchaEventAfterDragStart,
34+
35+
// 用户拖动滑块过程中多次触发
36+
DXCaptchaEventBeforeDragging,
37+
DXCaptchaEventDragging,
38+
DXCaptchaEventAfterDragging,
39+
40+
// 用户释放滑块,结束拖动
41+
DXCaptchaEventBeforeDragEnd,
42+
DXCaptchaEventDragEnd,
43+
DXCaptchaEventAfterDragEnd,
44+
45+
// 向校验接口提交数据进行校验
46+
DXCaptchaEventBeforeVerify,
47+
DXCaptchaEventVerify,
48+
DXCaptchaEventAfterVerify,
49+
50+
// 校验接口已返回数据
51+
DXCaptchaEventBeforeVerifyDone,
52+
DXCaptchaEventVerifyDone,
53+
DXCaptchaEventAfterVerifyDone,
54+
55+
// 校验接口已返回数据,且结果为成功
56+
DXCaptchaEventBeforeVerifySuccess,
57+
DXCaptchaEventVerifySuccess,
58+
DXCaptchaEventAfterVerifySuccess,
59+
60+
// 校验接口已返回数据,且结果为失败
61+
DXCaptchaEventBeforeVerifyFail,
62+
DXCaptchaEventVerifyFail,
63+
DXCaptchaEventAfterVerifyFail,
64+
65+
// 无感验证通过
66+
DXCaptchaEventBeforePassByServer,
67+
DXCaptchaEventPassByServer,
68+
DXCaptchaEventAfterPassByServer,
69+
70+
// 验证通过,无论是滑动验证通过还是无感验证通过均会触发
71+
DXCaptchaEventSuccess,
72+
73+
// 验证失败
74+
DXCaptchaEventFail,
75+
76+
//点击logo
77+
DXCaptchaEventTapLogo,
78+
79+
//加载太多次
80+
DXCaptchaEventLoadTooMuch
81+
} DXCaptchaEventType;
82+
83+
@class DXCaptchaView;
84+
85+
@protocol DXCaptchaDelegate <NSObject>
86+
87+
@required
88+
- (void) captchaView:(DXCaptchaView *)view didReceiveEvent:(DXCaptchaEventType)eventType arg:(NSDictionary *)dict;
89+
90+
@end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// DXCaptchaView.h
3+
// DingxiangCaptchaSDK
4+
//
5+
// Created by xelz on 2017/9/25.
6+
// Copyright © 2017年 All rights reserved.
7+
//
8+
9+
#import <WebKit/WebKit.h>
10+
#import "DXCaptchaDelegate.h"
11+
12+
@interface DXCaptchaView : WKWebView
13+
14+
- (instancetype)init NS_UNAVAILABLE;
15+
+ (instancetype)new NS_UNAVAILABLE;
16+
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
17+
- (instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration NS_UNAVAILABLE;
18+
19+
- (instancetype)initWithConfig:(NSDictionary *)config delegate:(id<DXCaptchaDelegate>)delegate frame:(CGRect)frame;
20+
- (instancetype)initWithAppId:(NSString *)appId delegate:(id<DXCaptchaDelegate>)delegate frame:(CGRect)frame;
21+
22+
@end
792 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)