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

Make default availability inheritance behaviour customizable. #1024

Commits on Sep 11, 2024

  1. Make default availability inheritance behaviour customizable.

    Added a new info.plist key `CDInheritDefaultAvailability` that allows customization on DocC logic for using default availability as the availability information for symbols.
    
    `CDInheritDefaultAvailability` allows two values:
    - `platformAndVersion` (deafault): This value adds both the platform and the semantic version as a fallback value for symbols that don't define explicit availability information for the given platform.
    - `platformOnly`: This value only adds the platform name (removes the version) to the symbols that don't define an explicit availability annotation for the given platform.
    
    rdar://132980711
    sofiaromorales committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    610bddc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6055aa9 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Implement DefaultAvailabilityOptions.

    `DefaultAvailabilityOptions` is a new info plist key that contains a dictionary of options to customise the logic of the default availbaility.
    
    The only option for now is `InheritVersionNumber` that lets you add the version into the symbols availability that don't define explicit availability annotation. The default is true.
    sofiaromorales committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    fbc3ead View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    4ba25c1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3150da7 View commit details
    Browse the repository at this point in the history