Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support output directories for active tasks #20

Merged
merged 5 commits into from
Mar 5, 2024

Conversation

Supereg
Copy link
Member

@Supereg Supereg commented Mar 3, 2024

Support output directories for active tasks

♻️ Current situation & Problem

Currently, there is no way to specify an output directory for ResearchKit tasks that require an output directory. This PR automatically creates a temporary directory and deletes it after the task result got delivered.

⚙️ Release Notes

  • Automatically create an output directory of active tasks with file results.

📚 Documentation

A Documentation tip was added to document the behavior.

✅ Testing

TBA

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

Copy link
Member

@PSchmiedmayer PSchmiedmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding the CI support and the output directory management! 🚀

Sources/ResearchKitSwiftUI/ORKOrderedTaskView.swift Outdated Show resolved Hide resolved
Supereg added a commit that referenced this pull request Mar 5, 2024
…21)

# Fix access to UIWindow when delegate doesn't implement that property

## ♻️ Current situation & Problem
Currently, ResearchKit assumes that the `window` property is implemented
by every `UIApplicationDelegate`. However, if you refer to the
documentation of
[window](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623056-window)
the property is only required if you are using UIKit with Storyboard
files. The automatic synthesis the documentation refers to doesn't seem
to work according to our experience.
This issue impacted, e.g., CS342/2024-PICS#43.

This PR fixes this issue by checking first, if the respective delegate
instance responds to the window selector.

This PR also addresses an issue in the CI setup where artifact names
where not unique and therefore failed the CI run.


## ⚙️ Release Notes 
* Fixes a crash where `window` is not implemented for an
UIApplicationDelegate.


## 📚 Documentation
--


## ✅ Testing
This will be verified within #20. However, the PR requires to compiled
ResearchKit xcfamework first.


### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
@Supereg Supereg merged commit e6454a5 into main Mar 5, 2024
11 checks passed
@Supereg Supereg deleted the feature/output-directory branch March 5, 2024 20:20
@Supereg Supereg added the enhancement New feature or request label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants