Skip to content

[FEATURE REQUEST] Generate OCClasseSettings documentation automatically #755

@mneuwert

Description

@mneuwert

UPDATE: The part regarding the AppConfig spec file has been split out and moved to #842.


Is your feature request related to a problem? Please describe.
In ownCloud app we have a comprehensive set of settings which can be used for branding, MDM, configuration during development. Documentation as well as AppConfig spec files are maintained manually. When new setting is added in the code, I think it is not really ensured that all other artefacts are updated accordingly.

Describe the solution you'd like
Would be nice to be able to extract OCClassSetting information from the code for example using Apple's SourceKit framework. There is also interesting framework / command line tool which abstracts SourceKit called SourceKitten - https://github.com/jpsim/SourceKitten which e.g. can create an XML file describing structure from an Objective-C source file.

So, we could create a small tool run by a custom build phase in Xcode which could generate the artefacts we need.

May be we would need to augment the definition of our settings by adding special comments describing the setting and e.g. also adding tags: mandatory, nice-to-have, supported, development etc.

TASKS

  • Research (if needed)
  • Create branch feature/feature_name
  • Development tasks
    • Implement whatever
    • ...
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/feature_name into master

PR

  • App
  • Library (if needed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:MDMall kind of MDM / EMM related features

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions