Skip to content

Commit ba0b36a

Browse files
committed
Release 0.0.2
1 parent 92be75a commit ba0b36a

File tree

9 files changed

+24
-12
lines changed

9 files changed

+24
-12
lines changed

Example/Example/AppDelegate.m

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
#import <SensorsABTest.h>
1212

1313
/// 测试环境,获取试验地址
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";
1715

1816
// 测试环境,数据接收地址
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";
2018

2119
@interface AppDelegate ()
2220

Example/Example/Info.plist

+10
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@
3030
<string>sac69330c5</string>
3131
</array>
3232
</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>
3343
</array>
3444
<key>CFBundleVersion</key>
3545
<string>$(CURRENT_PROJECT_VERSION)</string>

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2015-2020 Sensors Data Inc.
189+
Copyright 2015-2021 Sensors Data Inc.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- SensorsABTesting (0.0.1):
2+
- SensorsABTesting (0.0.2):
33
- SensorsAnalyticsSDK (>= 2.1.14)
44
- SensorsAnalyticsSDK (2.2.2):
55
- SensorsAnalyticsSDK/Core (= 2.2.2)
@@ -17,7 +17,7 @@ EXTERNAL SOURCES:
1717
:path: "./"
1818

1919
SPEC CHECKSUMS:
20-
SensorsABTesting: 015d78aa88b4623f423f11a7a719bc4a382d83eb
20+
SensorsABTesting: 2d29ad8116504d049d6376af41b8acdd3bd541dc
2121
SensorsAnalyticsSDK: 104a681e53bde400bb9531d01411a48744e354aa
2222

2323
PODFILE CHECKSUM: 1b7a0cbf6060fbd70740be2419c32c7c419e2660

SensorsABTest.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@
523523
"@loader_path/Frameworks",
524524
);
525525
MACH_O_TYPE = mh_dylib;
526-
MARKETING_VERSION = 0.1.1;
526+
MARKETING_VERSION = 0.0.2;
527527
PRODUCT_BUNDLE_IDENTIFIER = cn.sensorsdata.SensorsABTest;
528528
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
529529
SKIP_INSTALL = YES;
@@ -554,7 +554,7 @@
554554
"@loader_path/Frameworks",
555555
);
556556
MACH_O_TYPE = mh_dylib;
557-
MARKETING_VERSION = 0.1.1;
557+
MARKETING_VERSION = 0.0.2;
558558
PRODUCT_BUNDLE_IDENTIFIER = cn.sensorsdata.SensorsABTest;
559559
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
560560
SKIP_INSTALL = YES;

SensorsABTest/Network/SABRequest.m

+4
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ - (NSURLRequest *)request {
123123
request.timeoutInterval = _timeoutInterval;
124124
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
125125

126+
/* 关闭 Keep-Alive,
127+
此处设置关闭 Keep-Alive,防止频繁连续扫码,后端 TCP 连接可能断开,并且扫码打开 App 此时尚未完全进入前台,NSURLSession 没有自动重试,导致扫码上传白名单可能失败
128+
*/
129+
[request setValue:@"close" forHTTPHeaderField:@"Connection"];
126130
request.HTTPBody = [SABJSONUtils JSONSerializeObject:self.body];
127131

128132
return request;

SensorsABTest/SABConstants.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#import "SABConstants.h"
2626

2727
// 当前版本号
28-
NSString *const kSABLibVersion = @"0.0.1";
28+
NSString *const kSABLibVersion = @"0.0.2";
2929

3030
// SA 最低支持版本
3131
NSString *const kSABMinSupportedSALibVersion = @"2.1.14";

SensorsABTest/SensorsABTest.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ - (BOOL)handleOpenURL:(NSURL *)url {
118118
if (![url isKindOfClass:NSURL.class] || ![url.host isEqualToString:@"abtest"]) {
119119
return NO;
120120
}
121-
122121
SABWhiteListRequest *requestData = [[SABWhiteListRequest alloc] initWithOpenURL:url];
123122
[SABNetwork dataTaskWithRequest:requestData.request completionHandler:^(id _Nullable jsonObject, NSError * _Nullable error) {
123+
124124
if (error) {
125125
SABLogWarn(@"upload distinctId failure,error:%@", error);
126126
} else {

SensorsABTesting.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'SensorsABTesting'
3-
s.version = "0.0.1"
3+
s.version = "0.0.2"
44
s.summary = 'The official iOS SDK of Sensors A/B Testing.'
55
s.homepage = 'http://www.sensorsdata.cn'
66
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }

0 commit comments

Comments
 (0)