Stanford Spezi ↔ one sec integration module
This Swift package implements the Stanford Spezi integration for the one sec app's Digital Interventions Outcome study.
See the SpeziOneSecIntegrationInterface package for setup and usage instructions.
In order to support an overall deployment target of iOS 15, this project needs to be split up into 2 separate Swift packages:
- SpeziOneSecIntegrationInterface
- package deployment target: iOS 15
- defines the interface of the integration
- the app defines a dependency on this package, and adds it to its "link binary with libraries" build phase in Xcode
- on launch, the app calls this package's
initializefunction, which, if possible, will dynamically
- SpeziOneSecIntegration (this package)
- package deployment target: iOS 17
- implements the interface defined in SpeziOneSecIntegrationInterface
- the app defines a dependency on this package, but does not add it to its "link binary with libraries" build phase
- instead, the app should add the "SpeziOneSec" target to its "target dependencies" and its "embed frameworks" build phases
- this ensures that the package won't get linked automatically, which would crash on pre-iOS 17 devices
- the app never directly imports this package; instead, all interactions with it go through the interface package
Contributions to this project are welcome. Please make sure to read the contribution guidelines and the contributor covenant code of conduct first.
This project is licensed under the MIT License. See Licenses for more information.

