Skip to content

Commit d84c5cd

Browse files
Merge branch 'master' into muzahid/update-license-year
2 parents 2033065 + 62ae49b commit d84c5cd

28 files changed

+812
-346
lines changed

.github/workflows/integration_tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ jobs:
2020
path: 'home/runner/travisci-tools'
2121
ref: 'master'
2222
- name: set SDK Branch if PR
23+
env:
24+
HEAD_REF: ${{ github.head_ref }}
2325
if: ${{ github.event_name == 'pull_request' }}
2426
run: |
25-
echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
27+
echo "SDK_BRANCH=$HEAD_REF" >> $GITHUB_ENV
2628
- name: set SDK Branch if not pull request
29+
env:
30+
REF_NAME: ${{ github.ref_name }}
2731
if: ${{ github.event_name != 'pull_request' }}
2832
run: |
29-
echo "SDK_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
30-
echo "TRAVIS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
33+
echo "SDK_BRANCH=$REF_NAME" >> $GITHUB_ENV
34+
echo "TRAVIS_BRANCH=$REF_NAME" >> $GITHUB_ENV
3135
- name: Trigger build
3236
env:
3337
SDK: swift

.github/workflows/swift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
description: release
1818

1919
env:
20-
VERSION: 3.10.4
20+
VERSION: 4.1.0
2121

2222
jobs:
2323

.github/workflows/unit_tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,17 @@ jobs:
5454
# macos version and supported simulator_xcode_versions are all related to this xcode_version, so be careful when you upgrade this.
5555
xcode-version: 14.1
5656
- name: set SDK Branch if PR
57+
env:
58+
BASE_REF: ${{ github.base_ref }}
5759
if: ${{ github.event_name == 'pull_request' }}
5860
run: |
59-
echo "BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
61+
echo "BRANCH=$BASE_REF" >> $GITHUB_ENV
6062
- name: set SDK Branch if not pull request
63+
env:
64+
REF_NAME: ${{ github.ref_name }}
6165
if: ${{ github.event_name != 'pull_request' }}
6266
run: |
63-
echo "BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
67+
echo "BRANCH=$REF_NAME" >> $GITHUB_ENV
6468
- id: unit_tests
6569
env:
6670
SCHEME: ${{ matrix.scheme }}
@@ -89,7 +93,7 @@ jobs:
8993
Scripts/prepare_simulator.sh
9094
Scripts/run_unit_tests.sh
9195
- name: Check on failures (Archive Test Results)
92-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@v4
9397
if: steps.unit_tests.outcome != 'success'
9498
with:
9599
name: build-logs-${{ matrix.device }}-${{ matrix.os }}

CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
11
# Optimizely Swift SDK Changelog
22

3+
## 4.1.0
4+
November 8, 2024
5+
6+
### New Features
7+
* Batch UPS lookup and save calls in decideAll and decideForKeys methods ([#559](https://github.com/optimizely/swift-sdk/pull/559/)).
8+
9+
## 4.0.0
10+
Jan 18, 2024
11+
12+
### New Features
13+
14+
The 4.0.0 release introduces a new primary feature, [Advanced Audience Targeting]( https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting) enabled through integration with [Optimizely Data Platform (ODP)](https://docs.developers.optimizely.com/optimizely-data-platform/docs) ([#455](https://github.com/optimizely/swift-sdk/pull/455), [#470](https://github.com/optimizely/swift-sdk/pull/470), [#471](https://github.com/optimizely/swift-sdk/pull/471), [#477](https://github.com/optimizely/swift-sdk/pull/477),[#512](https://github.com/optimizely/swift-sdk/pull/512)).
15+
16+
You can use ODP, a high-performance [Customer Data Platform (CDP)]( https://www.optimizely.com/optimization-glossary/customer-data-platform/), to easily create complex real-time segments (RTS) using first-party and 50+ third-party data sources out of the box. You can create custom schemas that support the user attributes important for your business, and stitch together user behavior done on different devices to better understand and target your customers for personalized user experiences. ODP can be used as a single source of truth for these segments in any Optimizely or 3rd party tool.
17+
18+
With ODP accounts integrated into Optimizely projects, you can build audiences using segments pre-defined in ODP. The SDK will fetch the segments for given users and make decisions using the segments. For access to ODP audience targeting in your Feature Experimentation account, please contact your Customer Success Manager.
19+
20+
This version includes the following changes:
21+
22+
* New API added to `OptimizelyUserContext`:
23+
24+
- `fetchQualifiedSegments()`: this API will retrieve user segments from the ODP server. The fetched segments will be used for audience evaluation. The fetched data will be stored in the local cache to avoid repeated network delays.
25+
26+
- When an `OptimizelyUserContext` is created, the SDK will automatically send an identify request to the ODP server to facilitate observing user activities.
27+
28+
* New APIs added to `OptimizelyClient`:
29+
30+
- `sendOdpEvent()`: customers can build/send arbitrary ODP events that will bind user identifiers and data to user profiles in ODP.
31+
32+
- `createUserContext()` with anonymous user IDs: user-contexts can be created without a userId. The SDK will create and use a persistent `VUID` specific to a device when userId is not provided.
33+
34+
For details, refer to our documentation pages:
35+
36+
* [Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting)
37+
38+
* [Client SDK Support](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-for-client-side-sdks)
39+
40+
* [Initialize Swift SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/initialize-sdk-swift)
41+
42+
* [OptimizelyUserContext Swift SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/optimizelyusercontext-swift)
43+
44+
* [Advanced Audience Targeting segment qualification methods](https://docs.developers.optimizely.com/feature-experimentation/docs/advanced-audience-targeting-segment-qualification-methods-swift)
45+
46+
* [Send Optimizely Data Platform data using Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/docs/send-odp-data-using-advanced-audience-targeting-swift)
47+
48+
### Breaking Changes
49+
50+
* `ODPManager` in the SDK is enabled by default. Unless an ODP account is integrated into the Optimizely projects, most `ODPManager` functions will be ignored. If needed, `ODPManager` can be disabled when `OptimizelyClient` is instantiated.
51+
52+
### Bug Fixes
53+
* Adds a check to only save valid datafile in cache. ([#514](https://github.com/optimizely/swift-sdk/pull/514))
54+
* Remove redundant post request body in upload task. ([#521](https://github.com/optimizely/swift-sdk/pull/521/)).
55+
* Privacy manifest file value for required reason API fixed. ([#541](https://github.com/optimizely/swift-sdk/pull/541))
56+
* Add coccoapods support for privacy manifest. ([#542](https://github.com/optimizely/swift-sdk/pull/542))
57+
* Add SPM support added to process privacy manifest. ([#544](https://github.com/optimizely/swift-sdk/pull/544))
58+
59+
### Functionality Enhancement
60+
* Adds support to override sdkName and sdkVersion for events. ([#512](https://github.com/optimizely/swift-sdk/pull/512))
61+
* Swift async-await support. ([#513](https://github.com/optimizely/swift-sdk/pull/513))
62+
* Update Github Issue Templates. ([#516](https://github.com/optimizely/swift-sdk/pull/516))
63+
* Handle duplicate keys in experiment ([#523](https://github.com/optimizely/swift-sdk/pull/523/)).
64+
* Add privacy manifest file ([#522](https://github.com/optimizely/swift-sdk/pull/522/)).
65+
366
## 3.10.4
467
December 8, 2023
568

OptimizelySwiftSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "OptimizelySwiftSDK"
33
s.module_name = "Optimizely"
4-
s.version = "4.0.0-beta"
4+
s.version = "4.1.0"
55
s.summary = "Optimizely experiment framework for iOS/tvOS/watchOS"
66
s.homepage = "https://docs.developers.optimizely.com/experimentation/v4.0.0-full-stack/docs"
77
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }

0 commit comments

Comments
 (0)