File tree 9 files changed +24
-12
lines changed
9 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 11
11
#import < SensorsABTest.h>
12
12
13
13
// / 测试环境,获取试验地址
14
- static NSString * kSABResultsServerURL = @" http://abtesting.saas.debugbox.sensorsdata.cn/api/v2/abtest/online/results?project-key=0a551836f92dc3292be545c748f3f462e2d43bc9" ;
15
-
16
- static NSString * kSABResultsTestServerURL = @" http://abtesting.saas.debugbox.sensorsdata.cn/api/v2/abtest/online/results?project-key=9868E3674EAF7697D779D8CE5F79D789BE40CFD4" ;
14
+ static NSString * kSABResultsTestServerURL = @" http://abtesting.saas.debugbox.sensorsdata.cn/api/v2/abtest/online/results?project-key=1C77D685FC5441F52550B4F5973B340EB693EBB4" ;
17
15
18
16
// 测试环境,数据接收地址
19
- static NSString * kSABTestServerURL = @" http://10.120.239.245 :8106/sa?project=default" ;
17
+ static NSString * kSABTestServerURL = @" http://10.120.173.133 :8106/sa?project=default" ;
20
18
21
19
@interface AppDelegate ()
22
20
Original file line number Diff line number Diff line change 30
30
<string >sac69330c5 </string >
31
31
</array >
32
32
</dict >
33
+ <dict >
34
+ <key >CFBundleTypeRole </key >
35
+ <string >Editor </string >
36
+ <key >CFBundleURLName </key >
37
+ <string >bjtest </string >
38
+ <key >CFBundleURLSchemes </key >
39
+ <array >
40
+ <string >sa80e4dfd7 </string >
41
+ </array >
42
+ </dict >
33
43
</array >
34
44
<key >CFBundleVersion </key >
35
45
<string >$(CURRENT_PROJECT_VERSION) </string >
Original file line number Diff line number Diff line change 186
186
same "printed page" as the copyright notice for easier
187
187
identification within third-party archives.
188
188
189
- Copyright 2015-2020 Sensors Data Inc.
189
+ Copyright 2015-2021 Sensors Data Inc.
190
190
191
191
Licensed under the Apache License, Version 2.0 (the "License");
192
192
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
PODS:
2
- - SensorsABTesting (0.0.1 ):
2
+ - SensorsABTesting (0.0.2 ):
3
3
- SensorsAnalyticsSDK (>= 2.1.14)
4
4
- SensorsAnalyticsSDK (2.2.2):
5
5
- SensorsAnalyticsSDK/Core (= 2.2.2)
@@ -17,7 +17,7 @@ EXTERNAL SOURCES:
17
17
:path: "./"
18
18
19
19
SPEC CHECKSUMS:
20
- SensorsABTesting: 015d78aa88b4623f423f11a7a719bc4a382d83eb
20
+ SensorsABTesting: 2d29ad8116504d049d6376af41b8acdd3bd541dc
21
21
SensorsAnalyticsSDK: 104a681e53bde400bb9531d01411a48744e354aa
22
22
23
23
PODFILE CHECKSUM: 1b7a0cbf6060fbd70740be2419c32c7c419e2660
Original file line number Diff line number Diff line change 523
523
"@loader_path/Frameworks",
524
524
);
525
525
MACH_O_TYPE = mh_dylib;
526
- MARKETING_VERSION = 0.1.1 ;
526
+ MARKETING_VERSION = 0.0.2 ;
527
527
PRODUCT_BUNDLE_IDENTIFIER = cn.sensorsdata.SensorsABTest;
528
528
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
529
529
SKIP_INSTALL = YES;
554
554
"@loader_path/Frameworks",
555
555
);
556
556
MACH_O_TYPE = mh_dylib;
557
- MARKETING_VERSION = 0.1.1 ;
557
+ MARKETING_VERSION = 0.0.2 ;
558
558
PRODUCT_BUNDLE_IDENTIFIER = cn.sensorsdata.SensorsABTest;
559
559
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
560
560
SKIP_INSTALL = YES;
Original file line number Diff line number Diff line change @@ -123,6 +123,10 @@ - (NSURLRequest *)request {
123
123
request.timeoutInterval = _timeoutInterval;
124
124
[request setValue: @" application/json" forHTTPHeaderField: @" Content-Type" ];
125
125
126
+ /* 关闭 Keep-Alive,
127
+ 此处设置关闭 Keep-Alive,防止频繁连续扫码,后端 TCP 连接可能断开,并且扫码打开 App 此时尚未完全进入前台,NSURLSession 没有自动重试,导致扫码上传白名单可能失败
128
+ */
129
+ [request setValue: @" close" forHTTPHeaderField: @" Connection" ];
126
130
request.HTTPBody = [SABJSONUtils JSONSerializeObject: self .body];
127
131
128
132
return request;
Original file line number Diff line number Diff line change 25
25
#import " SABConstants.h"
26
26
27
27
// 当前版本号
28
- NSString *const kSABLibVersion = @" 0.0.1 " ;
28
+ NSString *const kSABLibVersion = @" 0.0.2 " ;
29
29
30
30
// SA 最低支持版本
31
31
NSString *const kSABMinSupportedSALibVersion = @" 2.1.14" ;
Original file line number Diff line number Diff line change @@ -118,9 +118,9 @@ - (BOOL)handleOpenURL:(NSURL *)url {
118
118
if (![url isKindOfClass: NSURL .class] || ![url.host isEqualToString: @" abtest" ]) {
119
119
return NO ;
120
120
}
121
-
122
121
SABWhiteListRequest *requestData = [[SABWhiteListRequest alloc ] initWithOpenURL: url];
123
122
[SABNetwork dataTaskWithRequest: requestData.request completionHandler: ^(id _Nullable jsonObject, NSError * _Nullable error) {
123
+
124
124
if (error) {
125
125
SABLogWarn (@" upload distinctId failure,error:%@ " , error);
126
126
} else {
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'SensorsABTesting'
3
- s . version = "0.0.1 "
3
+ s . version = "0.0.2 "
4
4
s . summary = 'The official iOS SDK of Sensors A/B Testing.'
5
5
s . homepage = 'http://www.sensorsdata.cn'
6
6
s . license = { :type => 'Apache 2.0' , :file => 'LICENSE' }
You can’t perform that action at this time.
0 commit comments