Skip to content

Commit dd704d4

Browse files
authored
prepare 3.0.0 release (#377)
* fix changelog * fix changelog and tests * merge readme fix * fix unexported script to use Lagacy Build System * fix changelog * fix date * fix date and link PRs
1 parent bf5b2b9 commit dd704d4

File tree

74 files changed

+906
-1254
lines changed

Some content is hidden

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

74 files changed

+906
-1254
lines changed

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
# Optimizely Objective-C SDK Changelog
22

3+
## 3.0.0
4+
February 14th, 2019
5+
6+
The 3.0 release improves event tracking and supports additional audience targeting functionality.
7+
8+
### New Features:
9+
* Event tracking ([#359](https://github.com/optimizely/objective-c-sdk/pull/359)):
10+
* The Track method now dispatches its conversion event _unconditionally_, without first determining whether the user is targeted by a known experiment that uses the event. This may increase outbound network traffic.
11+
* In Optimizely results, conversion events sent by 3.0 SDKs are automatically attributed to variations that the user has previously seen, as long as our backend has actually received the impression events for those variations.
12+
* Altogether, this allows you to track conversion events and attribute them to variations even when you don't know all of a user's attribute values, and even if the user's attribute values or the experiment's configuration have changed such that the user is no longer affected by the experiment. As a result, **you may observe an increase in the conversion rate for previously-instrumented events.** If that is undesirable, you can reset the results of previously-running experiments after upgrading to the 3.0 SDK.
13+
* This will also allow you to attribute events to variations from other Optimizely projects in your account, even though those experiments don't appear in the same datafile.
14+
* Note that for results segmentation in Optimizely results, the user attribute values from one event are automatically applied to all other events in the same session, as long as the events in question were actually received by our backend. This behavior was already in place and is not affected by the 3.0 release.
15+
* Support for all types of attribute values, not just strings ([#309](https://github.com/optimizely/objective-c-sdk/pull/309)).
16+
* All values are passed through to notification listeners.
17+
* Strings, booleans, and valid numbers are passed to the event dispatcher and can be used for Optimizely results segmentation. A valid number is a finite number in the inclusive range [-2⁵³, 2⁵³].
18+
* Strings, booleans, and valid numbers are relevant for audience conditions.
19+
* Support for additional matchers in audience conditions ([#337](https://github.com/optimizely/objective-c-sdk/pull/337)):
20+
* An `exists` matcher that passes if the user has a non-null value for the targeted user attribute and fails otherwise.
21+
* A `substring` matcher that resolves if the user has a string value for the targeted attribute.
22+
* `gt` (greater than) and `lt` (less than) matchers that resolve if the user has a valid number value for the targeted attribute. A valid number is a finite number in the inclusive range [-2⁵³, 2⁵³].
23+
* The original (`exact`) matcher can now be used to target booleans and valid numbers, not just strings.
24+
* Support for A/B tests, feature tests, and feature rollouts whose audiences are combined using `"and"` and `"not"` operators, not just the `"or"` operator.
25+
* Datafile-version compatibility check: The SDK will remain uninitialized (i.e., will gracefully fail to activate experiments and features) if given a datafile version greater than 4.
26+
* Updated Pull Request template and commit message guidelines.
27+
* Support for empty bucketing IDs when evaluating feature rollouts ([#367](https://github.com/optimizely/objective-c-sdk/pull/367)).
28+
29+
### Breaking Changes:
30+
* Previously, notification listeners were only given string-valued user attributes because only strings could be passed into various method calls. That is no longer the case. The `ActivateListener` and `TrackListener` interfaces now receive user attributes as `NSDictionary<NSString *, NSObject *> * _Nullable` instead of `NSDictionary<NSString *,NSString *> * _Nonnull`.
31+
* The Localytics integration now relies on the user profile service to attribute events to the user's variations.
32+
* Drops support for the `variableBoolean`, `variableDouble`, `variableInteger`, and `variableString` APIs. Please migrate to the Feature Management APIs which were introduced in the 2.x releases.
33+
34+
### Bug Fixes:
35+
* Experiments and features can no longer activate when a negatively targeted attribute has a missing, null, or malformed value.
36+
* Audience conditions (except for the new `exists` matcher) no longer resolve to `false` when they fail to find an legitimate value for the targeted user attribute. The result remains `null` (unknown). Therefore, an audience that negates such a condition (using the `"not"` operator) can no longer resolve to `true` unless there is an unrelated branch in the condition tree that itself resolves to `true` ([#355](https://github.com/optimizely/objective-c-sdk/pull/355)).
37+
* Support for empty user IDs ([#356](https://github.com/optimizely/objective-c-sdk/pull/356)).
38+
* Updated `JSONModel` definitions ([#329](https://github.com/optimizely/objective-c-sdk/pull/329)).
39+
40+
## 2.1.6
41+
January 25th, 2019
42+
43+
This includes a fix for revenue and metrics. Numbers 0 and 1 were evaluated as false and true causing us to drop them from the event.
44+
45+
### New Features
46+
* No new features for this patch release.
47+
48+
### Bug Fixes:
49+
* Check for BOOL type but allow number values 0 and 1 in revenue and metrics to go to results.
50+
* Only remove old variation assignments from the user profile service when there are >= 100 persisted assignments.
51+
352
## 2.1.5
453
December 6th, 2018
554

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>

OptimizelySDKCore.podspec

Lines changed: 1 addition & 1 deletion
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.1.4"
3+
s.version = "3.0.0"
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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,9 +2264,9 @@
22642264
MODULEMAP_FILE = OptimizelySDKCore/OptimizelySDKCore.modulemap;
22652265
MTL_ENABLE_DEBUG_INFO = NO;
22662266
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
2267-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
2268-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
2269-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
2267+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
2268+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
2269+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
22702270
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
22712271
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME)";
22722272
SDKROOT = iphoneos;
@@ -2554,9 +2554,9 @@
25542554
MTL_ENABLE_DEBUG_INFO = YES;
25552555
ONLY_ACTIVE_ARCH = YES;
25562556
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
2557-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
2558-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
2559-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
2557+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
2558+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
2559+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
25602560
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
25612561
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME)";
25622562
SDKROOT = iphoneos;

OptimizelySDKDatafileManager.podspec

Lines changed: 2 additions & 2 deletions
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.1.4"
3+
s.version = "3.0.0"
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.1.4'
19+
s.dependency 'OptimizelySDKShared', "3.0.0"
2020
end

OptimizelySDKDatafileManager/OptimizelySDKDatafileManager.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,9 @@
740740
MODULEMAP_FILE = OptimizelySDKDatafileManager/OptimizelySDKDatafileManager.modulemap;
741741
MTL_ENABLE_DEBUG_INFO = NO;
742742
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
743-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
744-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
745-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
743+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
744+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
745+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
746746
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
747747
SDKROOT = iphoneos;
748748
SWIFT_VERSION = 4.2;
@@ -811,9 +811,9 @@
811811
MTL_ENABLE_DEBUG_INFO = YES;
812812
ONLY_ACTIVE_ARCH = YES;
813813
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
814-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
815-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
816-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
814+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
815+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
816+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
817817
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
818818
SDKROOT = iphoneos;
819819
SWIFT_VERSION = 4.2;

OptimizelySDKEventDispatcher.podspec

Lines changed: 2 additions & 2 deletions
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.1.4"
3+
s.version = "3.0.0"
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.1.4'
19+
s.dependency 'OptimizelySDKShared', "3.0.0"
2020
end

OptimizelySDKEventDispatcher/OptimizelySDKEventDispatcher.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,9 @@
685685
MODULEMAP_FILE = OptimizelySDKEventDispatcher/OptimizelySDKEventDispatcher.modulemap;
686686
MTL_ENABLE_DEBUG_INFO = NO;
687687
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
688-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
689-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
690-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
688+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
689+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
690+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
691691
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
692692
SDKROOT = iphoneos;
693693
SWIFT_VERSION = 4.2;
@@ -758,9 +758,9 @@
758758
MTL_ENABLE_DEBUG_INFO = YES;
759759
ONLY_ACTIVE_ARCH = YES;
760760
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
761-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
762-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
763-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
761+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
762+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
763+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
764764
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
765765
SDKROOT = iphoneos;
766766
SWIFT_VERSION = 4.2;

OptimizelySDKShared.podspec

Lines changed: 2 additions & 2 deletions
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.1.4"
3+
s.version = "3.0.0"
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.1.4'
21+
s.dependency 'OptimizelySDKCore', "3.0.0"
2222
end

OptimizelySDKShared/OptimizelySDKShared.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,9 +1128,9 @@
11281128
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
11291129
MTL_ENABLE_DEBUG_INFO = NO;
11301130
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
1131-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
1132-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
1133-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
1131+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
1132+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
1133+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
11341134
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
11351135
SDKROOT = iphoneos;
11361136
SWIFT_VERSION = 4.2;
@@ -1201,9 +1201,9 @@
12011201
MTL_ENABLE_DEBUG_INFO = YES;
12021202
ONLY_ACTIVE_ARCH = YES;
12031203
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
1204-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
1205-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
1206-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
1204+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
1205+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
1206+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
12071207
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
12081208
SDKROOT = iphoneos;
12091209
SWIFT_VERSION = 4.2;

OptimizelySDKTVOS.podspec

Lines changed: 4 additions & 4 deletions
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.1.4"
3+
s.version = "3.0.0"
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.1.4'
20-
s.dependency 'OptimizelySDKUserProfileService', '2.1.4'
21-
s.dependency 'OptimizelySDKDatafileManager', '2.1.4'
19+
s.dependency 'OptimizelySDKEventDispatcher', "3.0.0"
20+
s.dependency 'OptimizelySDKUserProfileService', "3.0.0"
21+
s.dependency 'OptimizelySDKDatafileManager', "3.0.0"
2222
end

OptimizelySDKTVOS/OptimizelySDKTVOS.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,9 @@
670670
MTL_ENABLE_DEBUG_INFO = YES;
671671
ONLY_ACTIVE_ARCH = YES;
672672
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
673-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
674-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
675-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
673+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
674+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
675+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
676676
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
677677
SDKROOT = appletvos;
678678
SWIFT_VERSION = 4.2;
@@ -771,9 +771,9 @@
771771
MODULEMAP_FILE = OptimizelySDKTVOS/OptimizelySDKTVOS.modulemap;
772772
MTL_ENABLE_DEBUG_INFO = NO;
773773
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
774-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
775-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
776-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
774+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
775+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
776+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
777777
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
778778
SDKROOT = appletvos;
779779
SWIFT_VERSION = 4.2;

OptimizelySDKUniversal/OptimizelySDKUniversal.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,9 +1949,9 @@
19491949
MTL_ENABLE_DEBUG_INFO = YES;
19501950
ONLY_ACTIVE_ARCH = YES;
19511951
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
1952-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
1953-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
1954-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
1952+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
1953+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
1954+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
19551955
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
19561956
RESOURCES_TARGETED_DEVICE_FAMILY = "";
19571957
SDKROOT = iphoneos;
@@ -2022,9 +2022,9 @@
20222022
MODULEMAP_FILE = "";
20232023
MTL_ENABLE_DEBUG_INFO = NO;
20242024
OPTIMIZELY_SDK_VERSION = "$(OPTIMIZELY_SDK_VERSION_MAJOR).$(OPTIMIZELY_SDK_VERSION_MINOR).$(OPTIMIZELY_SDK_VERSION_PATCH)$(OPTIMIZELY_SDK_VERSION_SUFFIX)";
2025-
OPTIMIZELY_SDK_VERSION_MAJOR = 2;
2026-
OPTIMIZELY_SDK_VERSION_MINOR = 1;
2027-
OPTIMIZELY_SDK_VERSION_PATCH = 4;
2025+
OPTIMIZELY_SDK_VERSION_MAJOR = 3;
2026+
OPTIMIZELY_SDK_VERSION_MINOR = 0;
2027+
OPTIMIZELY_SDK_VERSION_PATCH = 0;
20282028
OPTIMIZELY_SDK_VERSION_SUFFIX = "";
20292029
RESOURCES_TARGETED_DEVICE_FAMILY = "";
20302030
SDKROOT = iphoneos;

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* Copyright 2016, Optimizely, Inc. and contributors *
2+
* Copyright 2016,2018-2019, 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. *
@@ -32,9 +32,14 @@
3232
/// The audience name
3333
@property (nonatomic, strong) NSString *audienceName;
3434
/// Audience evaluator conditionals
35-
@property (nonatomic, strong) NSArray<OPTLYCondition> *conditions;
35+
@property (nonatomic, strong) NSArray<OPTLYCondition *><OPTLYCondition> *conditions;
3636

3737
/// Override OPTLYJSONModel set conditions
3838
- (void)setConditionsWithNSString:(NSString *)string;
39+
- (void)setConditionsWithNSArray:(NSArray *)array;
40+
- (void)setConditionsWithNSDictionary:(NSDictionary *)dictionary;
41+
42+
/// Returns conditions string
43+
- (NSString *)getConditionsString;
3944

4045
@end
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* Copyright 2016, Optimizely, Inc. and contributors *
2+
* Copyright 2018-2019, 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. *
@@ -14,38 +14,20 @@
1414
* limitations under the License. *
1515
***************************************************************************/
1616

17-
#import <Foundation/Foundation.h>
1817
#ifdef UNIVERSAL
19-
#import "OPTLYJSONModelLib.h"
18+
#import "OPTLYJSONModelLib.h"
2019
#else
21-
#import <OptimizelySDKCore/OPTLYJSONModelLib.h>
20+
#import <OptimizelySDKCore/OPTLYJSONModelLib.h>
2221
#endif
22+
#import "OPTLYCondition.h"
2323

24-
/**
25-
* This class is a representation of an Optimizely live variable scoped within a project:
26-
* "variables": [
27-
* {
28-
* "id": "6384881128",
29-
* "key": "someString",
30-
* "type": "string",
31-
* "defaultValue": "defaultStringValue"
32-
* },
33-
* ...
34-
* ]
35-
*/
36-
37-
@protocol OPTLYVariable
24+
@protocol OPTLYAudienceBaseCondition
3825
@end
3926

40-
@interface OPTLYVariable : OPTLYJSONModel
27+
@interface OPTLYAudienceBaseCondition : NSObject <OPTLYCondition>
4128

42-
/// The variable's ID.
43-
@property (nonatomic, strong) NSString *variableId;
44-
/// The variable's Key.
45-
@property (nonatomic, strong) NSString *variableKey;
46-
/// The variable's type.
47-
@property (nonatomic, strong) NSString *type;
48-
/// The variable's default value.
49-
@property (nonatomic, strong) NSString *defaultValue;
29+
@property (nonatomic, strong, nonnull) NSString *audienceId;
30+
+(BOOL)isBaseConditionJSON:(nonnull NSData *)jsonData;
5031

5132
@end
33+

0 commit comments

Comments
 (0)