Skip to content

Releases: statsig-io/swift-on-device-evaluations-sdk

1.7.0 - Add more data on exposure events

09 Dec 23:34
3469ec2
Compare
Choose a tag to compare

New Features

  • Add support for strict typing. (See the example here and here)

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

21 Oct 23:57
aa95210
Compare
Choose a tag to compare

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 during Statsig.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

20 Sep 19:05
d6b76c9
Compare
Choose a tag to compare

New Features

  • Adds ability to override the values returned for a given StatsigUser via the new LocalOverrideAdapter
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

08 Aug 00:02
d8ba2ae
Compare
Choose a tag to compare

New Features

  • Evaluation with exposure logging disabled (disableExposureLogging in GetFeatureGateOptions, GetDynamicConfigOptions, GetExperimentOptions, GetLayerOptions)

Included In This Release

  • 06fd1cc kenny-statsig
    • Merge pull request #45 from statsig-io/disable-exposure-logging
  • e8f4383 Kenny Yi
    • evaluation with exposure logging disabled

Full Changelog: 1.3.3...1.4.0

1.3.3 - Fix Custom Version Comparison

16 May 19:00
6e70124
Compare
Choose a tag to compare

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

  • aff5058 Weihao Ding
    • Merge pull request #43 from statsig-io/fix-cast-string-to-number
  • 9d59df8 weihao-statsig
    • fix test
  • 266b5ab weihao-statsig
    • add cast string to double

Full Changelog: 1.3.2...1.3.3

1.3.2 - Add PrivacyInfo.xcprivacy

24 Apr 15:25
3c7ec4d
Compare
Choose a tag to compare
  • Adds privacy file in compliance with Apple standards

Included In This Release

  • 331ad70 Daniel
    • Merge pull request #41 from statsig-io/xc-privacy
  • 65b90c0 Daniel
    • chore: add PrivacyInfo.xcprivacy

Full Changelog: 1.3.1...1.3.2

1.3.1 - Make Layer Fields Public

26 Mar 16:23
b9dc217
Compare
Choose a tag to compare

Makes layer fields accessible by making them public

Included In This Release

  • c04d416 sroyal-statsig
    • Merge pull request #38 from statsig-io/make-layer-values-public
  • f0cd9a8 Stephen Royal
    • Make Layer Values Public

Full Changelog: 1.3.0...1.3.1

1.3.0 - Persisted evaluations for Layers

20 Mar 16:16
5e54de9
Compare
Choose a tag to compare
  • 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

29 Feb 19:05
72ae162
Compare
Choose a tag to compare
  • 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

15 Feb 04:14
77acfdf
Compare
Choose a tag to compare

Adds an accessor for the groupName for experiments

Full Changelog: 1.0.0...1.1.0