Releases: statsig-io/swift-on-device-evaluations-sdk
Releases · statsig-io/swift-on-device-evaluations-sdk
1.7.0 - Add more data on exposure events
New Features
Add data to exposure events
- config version
- rule passed for dynamic configs
Included In This Release
- dccddb0 andre-statsig
- Pass ruleID and rulePassed exposure properties (#63)
- ad3c4b5 Daniel
- refac: update typed interface to be more like android (#62)
- 36ae36a Daniel
- feat: add support for check options is typed apis (#61)
- 9e14d53 Daniel
- feat: add optional support for strict typing (#58)
- c3b5513 Weihao Ding
- feat: add config version to exposures (#60)
Full Changelog: 1.6.0...1.7.0
1.6.0 - Support Background Polling
New Features
Support Post-Init syncing
- manually trigger a specs update
Statsig.update
- manually trigger a specs update from a file
Statsig.updateSync
- scheduling a background update job
Statsig.scheduleBackgroundUpdates
let handle = Statsig.shared.scheduleBackgroundUpdates(intervalSeconds: 100)
// or with the default of 1 hour
Statsig.shared.scheduleBackgroundUpdates()
// at some later point you can cancel (automatically cancelled by `shutdown`)
handle.cancel()
Use Cache when newer than Bootstrap
- Set
StatsigOptions.useNewerCacheValuesOverProvidedValues
to true and the SDK will load and compare against cached values duringStatsig.initializeSync
.
Fixes
- ensure environment is logged with events
Changelog
- 46377c7 Daniel
- feat: add ability to use cache over bootstrap (#56)
- 5d97e56 Daniel
- Merge pull request #55 from statsig-io/background-syncing
- 70a1262 Daniel Loomb
- chore: address feedback
- f69104b Daniel Loomb
- feat: add ability to schedule background syncing
- 3e9fa97 Daniel
- Merge pull request #54 from statsig-io/fix-env-logging
- 1aaf32d Daniel Loomb
- fix: ensure environment is logged
Full Changelog: 1.5.0...1.6.0
1.5.0 - Support Local Overrides
New Features
- Adds ability to override the values returned for a given
StatsigUser
via the newLocalOverrideAdapter
let overrides = LocalOverrideAdapter()
let opts = StatsigOptions()
opts.overrideAdapter = overrides
let user = StatsigUser(userID: "testUser")
overrides.setGate(user, "overridden_gate", FeatureGate.create("overridden_gate", true))
Statsig.shared.initialize("client-sdk-key", options: opts) { _ in
let gate = statsig.checkGate("overridden_gate", user) // <- Returns overridden value
}
Improvements
- Remove redundant segment exposures
Included In This Release
- bfae4ab Daniel
- Merge pull request #51 from statsig-io/test-objc-overrides
- 4ca9d61 Daniel
- chore: remove redundant name arg in local override
- c76aed2 Daniel
- test: ensure local overrides work in objc
- dc24a05 kenny-statsig
- Merge pull request #49 from statsig-io/local-overrides
- 510cd9b Daniel
- chore: remove segments from secondary expos
- 6b579d6 Kenny Yi
- local overrides
- 17cecb6 kenny-statsig
- Merge pull request #48 from statsig-io/fix-secondary-exposures
- c6b6b45 Kenny Yi
- log secondary exposures even if SDK store does not have gate
Full Changelog: 1.4.0...1.5.0
1.4.0 - Evaluation with exposure logging disabled
New Features
- Evaluation with exposure logging disabled (
disableExposureLogging
inGetFeatureGateOptions
,GetDynamicConfigOptions
,GetExperimentOptions
,GetLayerOptions
)
Included In This Release
Full Changelog: 1.3.3...1.4.0
1.3.3 - Fix Custom Version Comparison
Fix
- Fix the issue that we do not cast string number to numbers when we do greater than or equal to version comparison
Included In This Release
Full Changelog: 1.3.2...1.3.3
1.3.2 - Add PrivacyInfo.xcprivacy
- Adds privacy file in compliance with Apple standards
Included In This Release
Full Changelog: 1.3.1...1.3.2
1.3.1 - Make Layer Fields Public
Makes layer fields accessible by making them public
Included In This Release
Full Changelog: 1.3.0...1.3.1
1.3.0 - Persisted evaluations for Layers
- Added support for persisted evaluation of layers
- Updated schema of persisted storage data to be standardized across SDKs
- Added
groupName
for Layers
Included In This Release
- ed1b30c kenny-statsig
- Merge pull request #36 from statsig-io/fix-persisted-layers
- 5ea0539 Kenny Yi
- swap typealias with struct
- 93909db kenny-statsig
- Merge pull request #33 from statsig-io/persisted-layers
- 122a16b Kenny Yi
- persisted layer evaluations
- 13873d4 kenny-statsig
- Merge pull request #32 from statsig-io/standardize-sticky-schema
- 936d115 Kenny Yi
- Standardize schema for sticky values
- abcc8d0 sroyal-statsig
- Merge pull request #31 from statsig-io/layer-group-name
- 4b4c87e Stephen Royal
- Add Group Name for Layer
Full Changelog: 1.2.0...1.3.0
1.2.0 - Treat ip_based and ua_based configs as user_field
- No longer returns unsupported for ip/ua based configs.
- Exposes userPersistedValues on GetExperimentOptions
Included In This Release
- 38fe753 Daniel
- Merge pull request #29 from statsig-io/fix-get-exp-opts-visibility
- ff70841 Daniel Loomb
- expose userPersistedValues on GetExpOpts
- 624f220 Daniel
- Merge pull request #28 from statsig-io/support-ip-ua-based
- 2c01c3b Daniel Loomb
- test_many_rules now passes
- fb82309 Daniel Loomb
- treat ip_based and ua_based as user_field
Full Changelog: 1.1.0...1.2.0
1.1.0 - Expose groupName on DynamicConfigs/Experiments
Adds an accessor for the groupName for experiments
Full Changelog: 1.0.0...1.1.0