Support dynamic initialization of optional dependencies
:recycle: Current situation & Problem
Optional dependencies are already supported by Spezi. However, they lack the ability to dynamically supply a default value. Currently, you can only declare an optional dependency and check if it was configured e.g. by the user. But it wasn't possible to provide a default value (e.g., behind some runtime check) yourself.
:gear: Release Notes
Add support to dynamically provide a default value for optional dependencies.
:books: Documentation
Documentation was added and updated.
:white_check_mark: Testing
Extensive testing was added for the new initializer, testing all possible combinations of initialization.
:pencil: Code of Conduct & Contributing Guidelines
Support dynamic initialization of optional dependencies
:recycle: Current situation & Problem
Optional dependencies are already supported by Spezi. However, they lack the ability to dynamically supply a default value. Currently, you can only declare an optional dependency and check if it was configured e.g. by the user. But it wasn't possible to provide a default value (e.g., behind some runtime check) yourself.
:gear: Release Notes
:books: Documentation
Documentation was added and updated.
:white_check_mark: Testing
Extensive testing was added for the new initializer, testing all possible combinations of initialization.
:pencil: Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: