Skip to content

Commit b831a7d

Browse files
committed
Release 1.1.1
1 parent f888c08 commit b831a7d

11 files changed

Lines changed: 126 additions & 103 deletions

File tree

Example/Example-iOS/AppDelegate.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
#import <SensorsABTest.h>
2424

2525
/// 测试环境,获取试验地址
26-
static NSString* kSABResultsTestURL = @"http://10.1.132.85:8202/api/v2/abtest/online/results?project-key=CDF5B1BE9CDCBEB289EA0589066A263D741742BD";
26+
static NSString* kSABResultsTestURL = @"http://10.1.128.54:8203/api/v2/abtest/online/results?project-key=2EE10DF17668F0A1ABA5D6EB1473700177029B7C";
2727

2828
// 测试环境,数据接收地址
29-
static NSString* kSABTestServerURL = @"http://10.1.132.86:8106/sa?project=default";
29+
static NSString* kSABTestServerURL = @"http://10.1.137.85:8106/sa?project=default";
3030

3131
@interface AppDelegate ()
3232

@@ -48,7 +48,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
4848
- (void)startSensorsAnalyticsSDKWithConfigOptions:(NSDictionary *)launchOptions {
4949
SAConfigOptions *options = [[SAConfigOptions alloc] initWithServerURL:kSABTestServerURL launchOptions:launchOptions];
5050
// options.autoTrackEventType = SensorsAnalyticsEventTypeAppStart | SensorsAnalyticsEventTypeAppEnd | SensorsAnalyticsEventTypeAppClick | SensorsAnalyticsEventTypeAppViewScreen;
51-
// options.autoTrackEventType = SensorsAnalyticsEventTypeAppStart | SensorsAnalyticsEventTypeAppEnd | SensorsAnalyticsEventTypeAppViewScreen;
51+
options.autoTrackEventType = SensorsAnalyticsEventTypeAppStart | SensorsAnalyticsEventTypeAppEnd | SensorsAnalyticsEventTypeAppViewScreen;
5252

5353
options.enableHeatMap = YES;
5454
options.enableVisualizedAutoTrack = YES;
@@ -68,7 +68,7 @@ - (void)startSensorsAnalyticsSDKWithConfigOptions:(NSDictionary *)launchOptions
6868

6969
- (void)startSensorsABTest {
7070
SensorsABTestConfigOptions *abtestConfigOptions = [[SensorsABTestConfigOptions alloc] initWithURL:kSABResultsTestURL];
71-
// abtestConfigOptions.customProperties = @{@"ab_city": @"beijing"};
71+
abtestConfigOptions.customProperties = @{@"ab_city": @"beijing"};
7272
[SensorsABTest startWithConfigOptions:abtestConfigOptions];
7373

7474
// [SensorsABTest.sharedInstance setCustomIDs:@{@"custom_subject_id":@"iOS自定义主体333"}];

Example/Example-iOS/ViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
137137
break;
138138

139139
case 2: { // STRING
140-
[[SensorsABTest sharedInstance] fastFetchABTestWithParamName:@"shiyan1" defaultValue:@"默认值字符串" completionHandler:^(id _Nullable result) {
141-
NSLog(@"fastFetchABTest,paramName:%@ - result:%@\n", @"shiyan1", result);
140+
[[SensorsABTest sharedInstance] fastFetchABTestWithParamName:@"color_cqs" defaultValue:@"默认值字符串" completionHandler:^(id _Nullable result) {
141+
NSLog(@"fastFetchABTest,paramName:%@ - result:%@\n", @"color_cqs", result);
142142
}];
143143
}
144144
break;

Example/Example-iOS/WKWebViewController.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ - (void)viewDidLoad {
4040

4141
// js 测试页面
4242
NSString *httpStr = @"http://jssdk.debugbox.sensorsdata.cn/js/ls/app/sa-sdk-abtest/index.html";
43+
4344
// 多链接试验
4445
// httpStr = @"http://jssdk.debugbox.sensorsdata.cn/js/ls/ab/index.html";
4546

@@ -49,6 +50,12 @@ - (void)viewDidLoad {
4950
// 配置化测试
5051
// httpStr = @"http://10.120.195.209/js/zyf/abtest_regex/index.html";
5152

53+
// sa 测试调用
54+
// httpStr = @"https://jssdk.debugbox.sensorsdata.cn/js/cqs/sa-demo/callJS.html";
55+
56+
// syg 全局自定义属性测试
57+
httpStr = @"https://jssdk.debugbox.sensorsdata.cn/js/syg/abprop/index1.html";
58+
5259
NSURL *httpUrl = [NSURL URLWithString:httpStr];
5360
NSURLRequest *request = [NSURLRequest requestWithURL:httpUrl];
5461

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://ow-file.sensorsdata.cn/www/home/header/sensors_header_icon.svg" width="200" >
22

3-
[![License](https://img.shields.io/github/license/sensorsdata/abtesting-sdk-ios.svg)](https://github.com/sensorsdata/abtesting-sdk-ios/blob/master/LICENSE) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/sensorsdata/abtesting-sdk-ios.svg)](http://isitmaintained.com/project/sensorsdata/abtesting-sdk-ios) [![Percentage of issues still open](http://isitmaintained.com/badge/open/sensorsdata/abtesting-sdk-ios.svg)](http://isitmaintained.com/project/sensorsdata/abtesting-sdk-ios) [![GitHub release](https://img.shields.io/github/tag/sensorsdata/abtesting-sdk-ios.svg?label=release)](https://github.com/sensorsdata/abtesting-sdk-ios/releases) [![GitHub release date](https://img.shields.io/github/release-date/sensorsdata/abtesting-sdk-ios.svg)](https://github.com/sensorsdata/sabtesting-sdk-ios/releases) [![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SensorsABTesting.svg)](https://img.shields.io/cocoapods/v/SensorsABTesting.svg) [![Platform](https://img.shields.io/cocoapods/p/SensorsABTesting.svg?style=flat)](http://cocoadocs.org/docsets/SensorsABTesting)
3+
[![License](https://img.shields.io/github/license/sensorsdata/abtesting-sdk-ios.svg)](https://github.com/sensorsdata/abtesting-sdk-ios/blob/master/LICENSE) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/sensorsdata/abtesting-sdk-ios.svg)](http://isitmaintained.com/project/sensorsdata/abtesting-sdk-ios) [![Percentage of issues still open](http://isitmaintained.com/badge/open/sensorsdata/abtesting-sdk-ios.svg)](http://isitmaintained.com/project/sensorsdata/abtesting-sdk-ios) [![GitHub release](https://img.shields.io/github/tag/sensorsdata/abtesting-sdk-ios.svg?label=release)](https://github.com/sensorsdata/abtesting-sdk-ios/releases) [![GitHub release date](https://img.shields.io/github/release-date/sensorsdata/abtesting-sdk-ios.svg)](https://github.com/sensorsdata/sabtesting-sdk-ios/releases) [![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SensorsABTesting.svg)](https://img.shields.io/cocoapods/v/SensorsABTesting.svg) [![Platform](https://img.shields.io/cocoapods/p/SensorsAnalyticsSDK.svg?style=flat)](http://cocoadocs.org/docsets/SensorsABTesting)
44

55
## 神策简介
66

@@ -12,15 +12,6 @@
1212

1313
A/B Testing SDK 是一款用于 A/B 测试的 SDK。
1414

15-
## 神策埋点 SDK 官网
16-
如需了解神策埋点 SDK 的更多商业授权信息,请访问[神策埋点 SDK 官网](https://jssdk.debugbox.sensorsdata.cn/)获取更多详细信息。
17-
18-
## 联系我们
19-
若您有商业合作或产品集成需求,请通过下面的渠道联系我们获取专业服务与支持。
20-
21-
| 加微信号:skycode008,或扫码添加联系人 <img src="https://github.com/sensorsdata/sa-sdk-android/blob/master/WechatIMG180.jpg" width="300" height="450" /> | 扫码关注「神策埋点 SDK」公众号 ![gzh](https://github.com/sensorsdata/sa-sdk-android/blob/master/gzh.jpeg) |
22-
| ------ | ------ |
23-
2415
## 集成文档
2516

2617
请参考神策官网:[iOS/macOS SDK 集成(A/B Testing)](https://manual.sensorsdata.cn/abtesting/latest/ios-macos-sdk-a-b-testing-74580174.html)

0 commit comments

Comments
 (0)