Skip to content

Sharing the Matter folder #36

@TheMisfit68

Description

@TheMisfit68

I was wondering if it might be better (and certainly more maintainable) to store the Matter directory, which is present in each example, in a shared common location to avoid code redundancy.
I'm trying to add some new cluster types of my own and find myself copying/extending the code from the Matter directory for every new POC/example.

It is also a bit confusing that the examples are not organised into targets and that the sources directory does not contain any actual code. Even if the examples or not build using SPM, you could still use SPM for source management.
This could easily be resolved by specifying
sources: ["Empty.swift"]
for each of the example targets in the package manifest.
The Matter-folder can become a target in itself with the example targets depending on it.
Adding that dependency in the package manifest would even serve some documentation purposes at the same time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions