Skip to content

Spezi-based Package for the Integration into the one sec Study

License

Notifications You must be signed in to change notification settings

StanfordBDHG/OneSecStudySpeziIntegration

SpeziOneSec

Build and Test codecov DOI

Stanford Spezi ↔ one sec integration module

Overview

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.

Project Structure

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 initialize function, 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

Contributing

Contributions to this project are welcome. Please make sure to read the contribution guidelines and the contributor covenant code of conduct first.

License

This project is licensed under the MIT License. See Licenses for more information.

Spezi Footer Spezi Footer

About

Spezi-based Package for the Integration into the one sec Study

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •