• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / swift-sdk / 40523052414
94%

Build:
DEFAULT BRANCH: master
Ran 27 Oct 2026 02:50PM UTC
Jobs 1
Files 77
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Oct 2026 02:38PM UTC coverage: 93.939% (+0.01%) from 93.929%
40523052414

push

github

web-flow
[FSSDK-12251] feat: allow custom directory for DataStoreFile and DefaultEventDispatcher (#668)

* refactor: Added optional directory parameter to DataStoreFile

* refactor: Added ability to inject file data store directory into DefaultEventDispatcher

* test: Added test for DataStoreFile custom directory

* refactor: Updated to syntax supported by Swift 5.8 and lower

* Fixed build issues

* Fixed failing test

* [FSSDK-12251] fix: keep custom data store directory API source-compatible

Rework #612 so it adds API without breaking 6.x users:
- Restore `DataStoreType.file` (no associated value) so `.file` and `==` keep compiling
- Keep `DataStoreFile.init(storeName:async:)` designated so subclasses can call super.init
- Expose the directory via new convenience inits on DataStoreFile and DefaultEventDispatcher
  (new designated inits on open classes are flagged by diagnose-api-breaking-changes)
- Add a test for the dispatcher custom-directory path

Co-authored-by: artesmichael <michael.artes@icloud.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* [FSSDK-12251] fix: create custom data store directory if missing

Application Support isn't guaranteed to exist on iOS, and Data.write
doesn't create parent directories, so writes failed and saveItem
swallowed the error, silently dropping queued events.

Resolve the directory with url(for:in:appropriateFor:create: true).
If creation fails, the store keeps its default location.

Tests no longer pre-create the directory; add a test against a
directory that doesn't exist yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: artesmichael <michael.artes@icloud.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

2 of 2 new or added lines in 2 files covered. (100.0%)

1147 of 1221 relevant lines covered (93.94%)

9431.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40523052414.1 27 Oct 2026 02:50PM UTC 77
93.94
GitHub Action Run
Source Files on build 40523052414
  • Tree
  • List 77
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40523052414
  • b48c2415 on github
  • Prev Build on master (#39253703058)
  • Next Build on master (#40689936353)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc