Skip to content

Commit 2a1f87b

Browse files
updates for beta3 release (#285)
* updates for beta3 release * update readme to latest beta * updated changelog notes
1 parent e38c6f0 commit 2a1f87b

File tree

57 files changed

+331
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+331
-110
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# Optimizely Objective-C SDK Changelog
2+
## 2.0.2-beta3
3+
July 24, 2018
4+
5+
** This is beta 3 and a possible release candidate. There are several things to note about this pre-release. This release includes Feature Management and is backward compatible. The APIs mentioned in beta 2 are included.
6+
7+
### New Features
8+
Same as 2.0.2-beta2 (see below)
9+
10+
* Introduces support for bot filtering.
11+
* Supports Mobile and Fullstack projects.
12+
* Introduces support for Environments.
13+
* Support for Feature Management (see previous release notes).
14+
* Backward support for deprecated Live Variables.
15+
16+
### Bug Fixes:
17+
* Fix static init methods that caused problems in Swift 4
18+
219
## 2.0.2-beta2
320
Jun 25, 2018
421

OptimizelyDemoApp/AppDelegate.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3636

3737
// customizable settings
3838
let datafileName = "demoTestDatafile" // default parameter for initializing Optimizely from saved datafile
39-
var projectId = "10657931863" // project name: X Mobile - Sample App
39+
var projectId = "11093712109" // project name: X Mobile - Sample App
4040
var experimentKey = "background_experiment"
4141
var eventKey = "sample_conversion"
4242
let attributes = ["sample_attribute_key":"sample_attribute_value"]
@@ -73,13 +73,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7373
// ---- Create the Datafile Manager ----
7474
let datafileManager = OPTLYDatafileManagerDefault(builder: OPTLYDatafileManagerBuilder(block: { (builder) in
7575
// builder!.datafileFetchInterval = TimeInterval(self.datafileManagerDownloadInterval)
76-
builder!.datafileConfig = OPTLYDatafileConfig(projectId: nil, withSDKKey:"6hmwpgZcRFp36wH5QLK8Sb")!;
76+
builder!.datafileConfig = OPTLYDatafileConfig(projectId: nil, withSDKKey:"XUzRsTuTtjc6eGv7QieivC")!;
7777

7878
}))
7979

8080
let builder = OPTLYManagerBuilder(block: { (builder) in
8181
builder!.projectId = nil;
82-
builder!.sdkKey = self.projectId
82+
builder!.sdkKey = "XUzRsTuTtjc6eGv7QieivC"
8383
builder!.datafileManager = datafileManager!
8484
builder!.eventDispatcher = eventDispatcher
8585
})

OptimizelySDKCore.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OptimizelySDKCore"
3-
s.version = "2.0.2-beta2"
3+
s.version = "2.0.2-beta3"
44
s.summary = "Optimizely server-side testing core framework."
55
s.homepage = "http://developers.optimizely.com/server/reference/index.html?language=objectivec"
66
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }

OptimizelySDKCore/OptimizelySDKCore.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@
22292229
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
22302230
OPTIMIZELY_SDK_VERSION_MINOR = 0;
22312231
OPTIMIZELY_SDK_VERSION_PATCH = 2;
2232-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
2232+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
22332233
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME)";
22342234
SDKROOT = iphoneos;
22352235
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -2519,7 +2519,7 @@
25192519
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
25202520
OPTIMIZELY_SDK_VERSION_MINOR = 0;
25212521
OPTIMIZELY_SDK_VERSION_PATCH = 2;
2522-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
2522+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
25232523
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME)";
25242524
SDKROOT = iphoneos;
25252525
SWIFT_VERSION = 4.2;

OptimizelySDKDatafileManager.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OptimizelySDKDatafileManager"
3-
s.version = "2.0.2-beta2"
3+
s.version = "2.0.2-beta3"
44
s.summary = "Optimizely server-side testing datafile manager framework."
55
s.homepage = "http://developers.optimizely.com/server/reference/index.html?language=objectivec"
66
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
1616
s.framework = "Foundation"
1717
s.requires_arc = true
1818
s.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => "OPTIMIZELY_SDK_VERSION=@\\\"#{s.version}\\\"" }
19-
s.dependency 'OptimizelySDKShared', '2.0.2-beta2'
19+
s.dependency 'OptimizelySDKShared', '2.0.2-beta3'
2020
end

OptimizelySDKDatafileManager/OptimizelySDKDatafileManager.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@
816816
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
817817
OPTIMIZELY_SDK_VERSION_MINOR = 0;
818818
OPTIMIZELY_SDK_VERSION_PATCH = 2;
819-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
819+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
820820
SDKROOT = iphoneos;
821821
SWIFT_VERSION = 4.2;
822822
TARGETED_DEVICE_FAMILY = "1,2";
@@ -887,7 +887,7 @@
887887
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
888888
OPTIMIZELY_SDK_VERSION_MINOR = 0;
889889
OPTIMIZELY_SDK_VERSION_PATCH = 2;
890-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
890+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
891891
SDKROOT = iphoneos;
892892
SWIFT_VERSION = 4.2;
893893
TARGETED_DEVICE_FAMILY = "1,2";

OptimizelySDKEventDispatcher.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OptimizelySDKEventDispatcher"
3-
s.version = "2.0.2-beta2"
3+
s.version = "2.0.2-beta3"
44
s.summary = "Optimizely server-side testing event dispatcher framework."
55
s.homepage = "http://developers.optimizely.com/server/reference/index.html?language=objectivec"
66
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
1616
s.framework = "Foundation"
1717
s.requires_arc = true
1818
s.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => "OPTIMIZELY_SDK_VERSION=@\\\"#{s.version}\\\"" }
19-
s.dependency 'OptimizelySDKShared', '2.0.2-beta2'
19+
s.dependency 'OptimizelySDKShared', '2.0.2-beta3'
2020
end

OptimizelySDKEventDispatcher/OptimizelySDKEventDispatcher.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@
692692
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
693693
OPTIMIZELY_SDK_VERSION_MINOR = 0;
694694
OPTIMIZELY_SDK_VERSION_PATCH = 2;
695-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
695+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
696696
SDKROOT = iphoneos;
697697
SWIFT_VERSION = 4.2;
698698
TARGETED_DEVICE_FAMILY = "1,2";
@@ -765,7 +765,7 @@
765765
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
766766
OPTIMIZELY_SDK_VERSION_MINOR = 0;
767767
OPTIMIZELY_SDK_VERSION_PATCH = 2;
768-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
768+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
769769
SDKROOT = iphoneos;
770770
SWIFT_VERSION = 4.2;
771771
TARGETED_DEVICE_FAMILY = "1,2";

OptimizelySDKShared.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OptimizelySDKShared"
3-
s.version = "2.0.2-beta2"
3+
s.version = "2.0.2-beta3"
44
s.summary = "Optimizely server-side testing shared framework."
55
s.homepage = "http://developers.optimizely.com/server/reference/index.html?language=objectivec"
66
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
1818
s.ios.library = "sqlite3"
1919
s.requires_arc = true
2020
s.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => "OPTIMIZELY_SDK_VERSION=@\\\"#{s.version}\\\"" }
21-
s.dependency 'OptimizelySDKCore', '2.0.2-beta2'
21+
s.dependency 'OptimizelySDKCore', '2.0.2-beta3'
2222
end

OptimizelySDKShared/OptimizelySDKShared.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@
11311131
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
11321132
OPTIMIZELY_SDK_VERSION_MINOR = 0;
11331133
OPTIMIZELY_SDK_VERSION_PATCH = 2;
1134-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
1134+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
11351135
SDKROOT = iphoneos;
11361136
SWIFT_VERSION = 4.2;
11371137
TARGETED_DEVICE_FAMILY = "1,2";
@@ -1204,7 +1204,7 @@
12041204
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
12051205
OPTIMIZELY_SDK_VERSION_MINOR = 0;
12061206
OPTIMIZELY_SDK_VERSION_PATCH = 2;
1207-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
1207+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
12081208
SDKROOT = iphoneos;
12091209
SWIFT_VERSION = 4.2;
12101210
TARGETED_DEVICE_FAMILY = "1,2";

OptimizelySDKTVOS.podspec

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OptimizelySDKTVOS"
3-
s.version = "2.0.2-beta2"
3+
s.version = "2.0.2-beta3"
44
s.summary = "Optimizely server-side testing framework for tvOS."
55
s.homepage = "http://developers.optimizely.com/server/reference/index.html?language=objectivec"
66
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.framework = "Foundation"
1717
s.requires_arc = true
1818
s.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => "OPTIMIZELY_SDK_VERSION=@\\\"#{s.version}\\\"" }
19-
s.dependency 'OptimizelySDKEventDispatcher', '2.0.2-beta2'
20-
s.dependency 'OptimizelySDKUserProfileService', '2.0.2-beta2'
21-
s.dependency 'OptimizelySDKDatafileManager', '2.0.2-beta2'
19+
s.dependency 'OptimizelySDKEventDispatcher', '2.0.2-beta3'
20+
s.dependency 'OptimizelySDKUserProfileService', '2.0.2-beta3'
21+
s.dependency 'OptimizelySDKDatafileManager', '2.0.2-beta3'
2222
end

OptimizelySDKTVOS/OptimizelySDKTVOS.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@
673673
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
674674
OPTIMIZELY_SDK_VERSION_MINOR = 0;
675675
OPTIMIZELY_SDK_VERSION_PATCH = 2;
676-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
676+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
677677
SDKROOT = appletvos;
678678
SWIFT_VERSION = 4.2;
679679
TARGETED_DEVICE_FAMILY = 3;
@@ -774,7 +774,7 @@
774774
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
775775
OPTIMIZELY_SDK_VERSION_MINOR = 0;
776776
OPTIMIZELY_SDK_VERSION_PATCH = 2;
777-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
777+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
778778
SDKROOT = appletvos;
779779
SWIFT_VERSION = 4.2;
780780
TARGETED_DEVICE_FAMILY = 3;

OptimizelySDKUniversal/OptimizelySDKUniversal.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@
19511951
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
19521952
OPTIMIZELY_SDK_VERSION_MINOR = 0;
19531953
OPTIMIZELY_SDK_VERSION_PATCH = 2;
1954-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
1954+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
19551955
RESOURCES_TARGETED_DEVICE_FAMILY = "";
19561956
SDKROOT = iphoneos;
19571957
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator appletv appletvsimulator";
@@ -2023,7 +2023,7 @@
20232023
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
20242024
OPTIMIZELY_SDK_VERSION_MINOR = 0;
20252025
OPTIMIZELY_SDK_VERSION_PATCH = 2;
2026-
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta2";
2026+
OPTIMIZELY_SDK_VERSION_SUFFIX = "-beta3";
20272027
RESOURCES_TARGETED_DEVICE_FAMILY = "";
20282028
SDKROOT = iphoneos;
20292029
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator appletv appletvsimulator";

OptimizelySDKUniversal/generated-frameworks/Release-iOS-universal-SDK/OptimizelySDKiOS.framework/Headers/OPTLYClient.h

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* Copyright 2016-2017, Optimizely, Inc. and contributors *
2+
* Copyright 2016-2018, Optimizely, Inc. and contributors *
33
* *
44
* Licensed under the Apache License, Version 2.0 (the "License"); *
55
* you may not use this file except in compliance with the License. *
@@ -35,7 +35,15 @@
3535
/// Optimizely X Mobile Default Attributes
3636
@property (atomic, strong, readwrite, nullable) NSDictionary *defaultAttributes;
3737

38-
+ (nonnull instancetype)init:(nonnull OPTLYClientBuilderBlock)builderBlock;
38+
+ (nonnull instancetype)init:(nonnull OPTLYClientBuilderBlock)builderBlock
39+
__attribute((deprecated("Use OPTLYClient initWithBuilder method instead.")));
40+
41+
/**
42+
* Init with OPTLYClientBuilder object
43+
* @param builder The OPTLYClientBuilder object which has datafile, event handler, event dispatcher, and other configurations to be set.
44+
* @return OPTLYClient instance
45+
*/
46+
- (instancetype)initWithBuilder:(OPTLYClientBuilder *)builder;
3947

4048
- (OPTLYNotificationCenter *_Nullable)notificationCenter;
4149

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/****************************************************************************
2+
* Copyright 2018, Optimizely, Inc. and contributors *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"); *
5+
* you may not use this file except in compliance with the License. *
6+
* You may obtain a copy of the License at *
7+
* *
8+
* http://www.apache.org/licenses/LICENSE-2.0 *
9+
* *
10+
* Unless required by applicable law or agreed to in writing, software *
11+
* distributed under the License is distributed on an "AS IS" BASIS, *
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13+
* See the License for the specific language governing permissions and *
14+
* limitations under the License. *
15+
***************************************************************************/
16+
17+
#import <Foundation/Foundation.h>
18+
19+
// An optional bucketing ID may be provided in attributes via a
20+
// key-value pair
21+
// OptimizelyBucketId : bucketId
22+
// to accomplish decoupling bucketing from user identification so
23+
// that a group of users that have the same bucketing ID are put
24+
// into the same variation.
25+
// A Bucketing ID allows equivalence relation on user IDs. A group
26+
// of users with the same bucketing ID defines an equivalence class
27+
// of user IDs that all map to the same experiment variation.
28+
extern NSString * _Nonnull const OptimizelyBucketId;
29+
extern NSString * _Nonnull const OptimizelyBotFiltering;
30+
extern NSString * _Nonnull const OptimizelyUserAgent;

OptimizelySDKUniversal/generated-frameworks/Release-iOS-universal-SDK/OptimizelySDKiOS.framework/Headers/OPTLYDatafileConfig.h

+14-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,23 @@
1515
***************************************************************************/
1616
#import <Foundation/Foundation.h>
1717

18-
extern NSString * const OPTLY_DATAFILE_URL;
18+
extern NSString * const DEFAULT_HOST;
19+
extern NSString * const OPTLY_PROJECTID_SUFFIX;
20+
extern NSString * const OPTLY_ENVIRONMENTS_SUFFIX;
1921

2022
@interface OPTLYDatafileConfig : NSObject
23+
- (nullable id)initWithProjectId:(NSString *)projectId withSDKKey:(NSString *)sdkKey withHost:(NSString *)host;
2124
- (nullable id)initWithProjectId:(NSString *)projectId withSDKKey:(NSString *)sdkKey;
2225
- (NSURL *) URLForKey;
2326
- (NSString *) key;
2427
@end
28+
29+
@interface OPTLYDatafileConfig(OPTLYHelpers)
30+
+ (NSString *)defaultProjectIdCdnPath:(NSString *)projectId;
31+
+ (NSString *)defaultSdkKeyCdnPath:(NSString *)sdkKey;
32+
/*
33+
* Test if string s can be an Optimizely SDK key string.
34+
*/
35+
+ (BOOL)isValidKeyString:(NSString*)s;
36+
37+
@end

OptimizelySDKUniversal/generated-frameworks/Release-iOS-universal-SDK/OptimizelySDKiOS.framework/Headers/OPTLYDatafileKeys.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* Copyright 2017, Optimizely, Inc. and contributors *
2+
* Copyright 2017-2018, Optimizely, Inc. and contributors *
33
* *
44
* Licensed under the Apache License, Version 2.0 (the "License"); *
55
* you may not use this file except in compliance with the License. *
@@ -25,7 +25,6 @@ extern NSString * const OPTLYDatafileKeysAccountId;
2525
extern NSString * const OPTLYDatafileKeysProjectId;
2626
extern NSString * const OPTLYDatafileKeysVersion;
2727
extern NSString * const OPTLYDatafileKeysRevision;
28-
extern NSString * const OPTLYDatafileKeysAnonymizeIP;
2928
extern NSString * const OPTLYDatafileKeysExperiments;
3029
extern NSString * const OPTLYDatafileKeysEvents;
3130
extern NSString * const OPTLYDatafileKeysAudiences;

OptimizelySDKUniversal/generated-frameworks/Release-iOS-universal-SDK/OptimizelySDKiOS.framework/Headers/OPTLYDatafileManager.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
* @param builderBlock The builder block containing the datafile fetch interval.
4545
* @return an Optimizely Datafile Manager instance.
4646
*/
47-
+ (nullable instancetype)init:(nonnull OPTLYDatafileManagerBuilderBlock)builderBlock;
47+
+ (nullable instancetype)init:(nonnull OPTLYDatafileManagerBuilderBlock)builderBlock
48+
__attribute((deprecated("Use OPTLYDatafileManagerDefault initWithBuilder method instead.")));
49+
50+
/**
51+
* Init with OPTLYDatafileManagerBuilder object
52+
* @param builder The OPTLYDatafileManagerBuilder object containing the datafile fetch interval.
53+
* @return an Optimizely Datafile Manager instance.
54+
*/
55+
- (instancetype)initWithBuilder:(OPTLYDatafileManagerBuilder *)builder;
4856

4957
@end

OptimizelySDKUniversal/generated-frameworks/Release-iOS-universal-SDK/OptimizelySDKiOS.framework/Headers/OPTLYDecisionService.h

-11
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@
2020
#import <OptimizelySDKCore/OPTLYJSONModelLib.h>
2121
#endif
2222

23-
// An optional bucketing ID may be provided in attributes via a
24-
// key-value pair
25-
// OptimizelyBucketId : bucketId
26-
// to accomplish decoupling bucketing from user identification so
27-
// that a group of users that have the same bucketing ID are put
28-
// into the same variation.
29-
// A Bucketing ID allows equivalence relation on user IDs. A group
30-
// of users with the same bucketing ID defines an equivalence class
31-
// of user IDs that all map to the same experiment variation.
32-
extern NSString * _Nonnull const OptimizelyBucketId;
33-
3423
@class OPTLYExperiment, OPTLYVariation, OPTLYFeatureFlag, OPTLYFeatureDecision;
3524

3625
@interface OPTLYDecisionService : OPTLYJSONModel

OptimizelySDKUniversal/generated-frameworks/Release-iOS-universal-SDK/OptimizelySDKiOS.framework/Headers/OPTLYEventBuilder.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* Copyright 2016, Optimizely, Inc. and contributors *
2+
* Copyright 2016,2018, Optimizely, Inc. and contributors *
33
* *
44
* Licensed under the Apache License, Version 2.0 (the "License"); *
55
* you may not use this file except in compliance with the License. *
@@ -25,7 +25,6 @@
2525

2626
// --- Event URLs ----
2727
NS_ASSUME_NONNULL_BEGIN
28-
extern NSString * const OptimizelyBucketIdEventParam;
2928
extern NSString * const OptimizelyActivateEventKey;
3029
extern NSString * const OPTLYEventBuilderEventsTicketURL;
3130
NS_ASSUME_NONNULL_END

OptimizelySDKUniversal/generated-frameworks/Release-iOS-universal-SDK/OptimizelySDKiOS.framework/Headers/OPTLYEventDispatcher.h

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* Copyright 2016, Optimizely, Inc. and contributors *
2+
* Copyright 2016-2018, Optimizely, Inc. and contributors *
33
* *
44
* Licensed under the Apache License, Version 2.0 (the "License"); *
55
* you may not use this file except in compliance with the License. *
@@ -67,7 +67,16 @@ typedef void (^OPTLYEventDispatcherResponse)(NSData * _Nullable data, NSURLRespo
6767
* @param builderBlock The builder block with which to initialize the Optimizely Event Dispatcher object
6868
* @return An instance of OPTLYEventDispatcher
6969
*/
70-
+ (nullable instancetype)init:(nonnull OPTLYEventDispatcherBuilderBlock)builderBlock;
70+
+ (nullable instancetype)init:(nonnull OPTLYEventDispatcherBuilderBlock)builderBlock
71+
__attribute((deprecated("Use OPTLYEventDispatcherDefault initWithBuilder method instead.")));
72+
73+
/**
74+
* Initializer for Optimizely Event Dispatcher object
75+
*
76+
* @param builder The OPTLYEventDispatcherBuilder object with which to initialize the Optimizely Event Dispatcher object
77+
* @return An instance of OPTLYEventDispatcher
78+
*/
79+
- (nullable instancetype)initWithBuilder:(nullable OPTLYEventDispatcherBuilder *)builder;
7180

7281
/**
7382
* Dispatch an impression event.

0 commit comments

Comments
 (0)